- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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 copiado
3 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Correct!
Leo
Leo

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora