- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A section in the doc discusses getting hInst in dllmain for dialog boxes. I;d like to know if this also applies to COM servers and if so, where in the general scheme of files does the Dllmain go?
Thanks, Tim
Thanks, Tim
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it does apply to DLL COM servers. Dllmain is in a file generated by the wizard, DLLMAIN.F90. That routine saves the hinst in a module, DllGlobal, in a variable named ghinst. In your code, you should be able to USE DllGlobal and get the value from ghinst.
Leo
Leo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, this seems a little 'too" easy! so I have to check:
So all one needs is to stick in a "use dllglobal" in wherever needed and use the variable ghinst in the for hInst.
Thanks,
Tim
So all one needs is to stick in a "use dllglobal" in wherever needed and use the variable ghinst in the for hInst.
Thanks,
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct!
Leo
Leo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page