How to get User Interface [out] using IDispatch::Invoke
Wed, 6 Feb 2008 13:56:00 -0800
I am using Invoke to call a method that returns a pointer to another
interface (IFoo). The only VARIANT that works is VT_BYREF | VT_UNKNOWN.
However, this returns an IUnknown object, and I must call QI to get the
properly marshalled interface pointer.
Is there a way to get the properly marshalled interfac ...
|
DDE problem under Windows Vista
Wed, 6 Feb 2008 08:47:03 -0800
I hope I'm posting my problem under the correct group. Otherwise I'll be
grateful if you can show me what group to post in.
I have an application developed in TPascal7 (16 bit). The application
communicates with another application window using DDE, under the same
computer.
The application works perfectl ...
|
How to get interface from [out] parameter using IDispatch::Invoke
Tue, 5 Feb 2008 14:24:23 -0800
interface IA;
DispInterface IB
{
void GetObject([out] IA** ppa);
};
In the typelib, the type is a ptr to ptr to VT_USERDEFINED. When setting up
the disp params for Invoke, how should this variable be represented in a
VARIANT?
Thanks. ...
|
How to block activex control to prohibit creating new processes?
Mon, 4 Feb 2008 07:05:49 -0800 (PST)
Hi,
we have an application that runs in a "safe" mode where the user can
only use our application (and only particular features depending on
his user rights) but cannot start other applications.
Our "File open" dialogs are old style and do not allow to change file
names or to delete files.
Now we would lik ...
|
MIDL: How to assign a 0-pointer as default value
Mon, 4 Feb 2008 02:42:02 -0800
[in,defaultvalue(0)] BSTR bstrDefault,
This is one of my MIDL parameter descriptions. I expected this to basically
transform into
bstrDefault = 0;
but when tracing through the code it turned out to result in
bstrDefault = L"0";
Also
[in,defaultvalue(NULL)] BSTR bstrDefault,
is not doing better ...
|
Invest smart
Sat, 2 Feb 2008 14:33:04 -0800
How much profit can you make with one dollar?
Check out this website www.forbuck.com
Without any obligation, registering or other ties make cash!
...
|
How to get the name of a propertyfrom typelib
Fri, 1 Feb 2008 17:21:01 -0800
As a learning exercise, I am writing a simple typelib viewer. Consider the
following interface:
interface IFoo : IUnknown
{
[propget] MyProp([out, retval] BSTR *prop);
[propput] MyProp([in] BSTR prop);
};
I have parsed the typelib and found everything except the name of the
arguments to put_ ...
|
|
|
OleCreateFromFile example
Fri, 1 Feb 2008 15:21:20 +0100
Hi,
could anybody provide me with working piece of code in C++ or better in C#
where I could understand using of OleCreateFromFile function?
Thanks in advance,
Jaroslav
...
|
OleCreateFromFile returns E_NOINTERFACE
Fri, 1 Feb 2008 10:11:31 +0100
Hi,
I need to use following piece (I found on Internet) of code in c#.
**************************************************
*** C++ code
**************************************************
CLSID clsid;
HRESULT hr=GetClassFile(FileName,&clsid);
if(FAILED(hr))
return;
IOleObject* p=0;
IStorage *pStorage ...
|
Invest smart
Thu, 31 Jan 2008 20:14:54 -0800
How much profit can you make with one dollar?
Check out this website www.forbuck.com
Without any obligation, registering or other ties make cash!
...
|