| Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) |
hInstance is no longer defined in Delphi 8 .NET
Question: 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:
Comments:
| ||||||||||||||||||