Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help On Modeless Dialog Box & Progress Bar Control

Status
Not open for further replies.

raochetan

Programmer
Aug 20, 2001
62
0
0
IN
I have created a simple Win32 Dll (not using MFC) which exposes certain function. When the functions are excuting, i want to display a progress bar. Hence i have created a Dialog Resource with 2 Static Controls and a Progress Bar.
As the dialog has to be modeless dialog box, i am using CreateDialog() function. But for this function, i have to provide the current Instance of the application. Being a Win32 Dll, the DllMain() does not have the application instance as one of its parameters.

Which Win32 API function should be used to get the current Application Instance?

Also, how can I initialize and increment the Progress Bar in the Dialog Box?

Thanks in advance

regards
raochetan
 
No need to worry of instance .You can use NULL or afxgetinstance()...
 
He said he does not use MFC, so he cannot use AfxGetInstance...

But you are right about the NULL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top