Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : THandle as OleVariant under windows 2000
| Subject: | THandle as OleVariant under windows 2000 |
| Posted by: | "Tobias" (tobias_..@hotmail.com) |
| Date: | Tue, 8 May 2007 16:45:31 |
Hello, I'am having problem with assigning a THandle to Olevariant under
Windows 2000.
I'am using Delphi 5.
I'am receiving a Invalid handle value when trying to uses the vHandle why?
Under winXP this works.
procedure AssignHandle(AHandle : THandle);
var
vHandle : OleVariant;
begin
//AHandle is a handle to a form or a Panel.
vHandle := AHandle; //vHandle is not a valid handle value.
//do some stuff with vHandle.
end;