Delphi .NET (2) Database (71) Delphi IDE (90) Network (37) Printing (3) Strings (11) VCL (83) Windows with Delphi (241)
Exchange Links Links to us 
|
General :: Programming :: Delphi :: .NET
Starting in .NET or already familiar but having a question? You might find it answered here!
Articles:
Featured Article
hInstance is no longer defined in Delphi 8 .NETQuestion:
It seems that the global variable hInstance is no longer defined in .NET. How do I obtain the instance handle now?
Answer:
HInstance provides a unique instance handle for the application or library. It indicates the handle for a module.
You need to add unit WINUTILS to your uses clause to make the following code work:
 | |  | | h := SysInit.hInstance;
uses
WinUtils;
..
h := Borland.Vcl.WinUtils.hInstance();
| |  | |  |
|
|
|