Tech Support > Microsoft Windows > Development Resources > GetModuleHandle of Comdlg32.dll
GetModuleHandle of Comdlg32.dll
Posted by avakharia_ibsdev@yahoo.com on December 19th, 2006


Hello all,
I am new to this group.

I want to use "PrintDlgA" function of comdlg32.dll


Now i have win32 dll. so I cant use registered OCX which needs MFC
support.


Other is LoadLibrary this function surely gives me the handle but and
do well but not replaces my function with the Original Address. I dont
know why..


Only GetModuleHandle can gives me that functionality..
Now i have make one sample app. which is MFC and add activex control
than my exe depency includes Comdlg32.dll and gives me the pointer of
PrintDlgA


but my win32 dll which uses Loadlibrary function cant add comdlg32.dll
in my dependency viewer.
one thing I cant load comdlg32.dll using GetModuleHandle it returns
ErrorCode = 126 .means Dll not found..


plz anybody can give any hint on this.


thanks


Similar Posts