To put it another way, is it possible from a
regular "C" main function to get the hinstance?
Regards
Chris Saunders
chris.s...@sympatico.ca
Ali R.
"Chris Saunders" <chris.s...@sympatico.ca> wrote in message
news:FZXMb.10111$881.1...@news20.bellglobal.com...
To answer the original question, to find the hInstance at any time:
hInstance = GetModuleHandle(NULL);
Regards,
James
--
www.catch22.org.uk
Free Win32 Software, Source Code and Tutorials
"Ali R." <nos...@nospam.com> wrote in message
news:0gYMb.7814$Pb6....@newssvr22.news.prodigy.com...
>Is it possible to get the hinstance of a program
>without having a WinMain function?
>
>To put it another way, is it possible from a
>regular "C" main function to get the hinstance?
HINSTANCE hinst = GetModuleHandle(NULL);
On Win32 platforms I am familiar with, this will always return
0x00400000.
- Sev
"James Brown" <james.brown7_nosp@m_virgin.net> wrote in message
news:40045504$0$2772$cc9e...@news.dial.pipex.com...