So I've searched all over the place and can't find a single example of any of the dozens and dozens of STR_x bind context parameters being used that don't expect an interface.
Like STR_FILE_SYS_BIND_DATA expects the IUnknown parameter to point to a class implementing IFileSystemBindData. And that's no problem to do.
But many others, like STR_DONT_RESOLVE_LINK, don't have an associated interface to pass. So what am I supposed to pass for the IUnknown object? Tried passing Nothing, runtime error. Tried passing an uninitialized IUnknown variable, runtime error. Is there some other way to specify null, or do I need to just create a class implementing IUnknown? Would I actually have to do something in it, or just throw E_NOTIMPL for everything?
Unbelievable how there's not a single example of this to be found anywhere, yet tons for any string needing an interface.
Currently defined as
Edit: Creating a dummy class that implements IUnknown seems to be a problem itself too. Looks like I'd have to create a new version without the void*
Like STR_FILE_SYS_BIND_DATA expects the IUnknown parameter to point to a class implementing IFileSystemBindData. And that's no problem to do.
But many others, like STR_DONT_RESOLVE_LINK, don't have an associated interface to pass. So what am I supposed to pass for the IUnknown object? Tried passing Nothing, runtime error. Tried passing an uninitialized IUnknown variable, runtime error. Is there some other way to specify null, or do I need to just create a class implementing IUnknown? Would I actually have to do something in it, or just throw E_NOTIMPL for everything?
Unbelievable how there's not a single example of this to be found anywhere, yet tons for any string needing an interface.
Currently defined as
Code:
HRESULT RegisterObjectParam(
[in] LPWSTR pszKey,
[in] stdole.IUnknown*punk);