Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: rllibbyPosted on 2009-02-23 at 06:26:01ID: 23711402
The typecasts would be as follows:
NT_PTR; ointer(h_M enu);
4; ngInt(dwID );
const
VT_INT_PTR = 37;
var
dwID: DWORD;
var1, var2: OleVariant;
h_Menu: HMENU;
begin
FillChar(var1, SizeOf(TVariantArg), 0);
FillChar(var2, SizeOf(TVariantArg), 0);
TVariantArg(var1).vt:=VT_I
TVariantArg(var1).byRef:=P
TVariantArg(var1).vt:=VT_I
TVariantArg(var1).lVal:=Lo
As to the Exec not working, what is the actual HRESULT value from the return? (saying it <> S_OK does not help much)
Regards,
Russell