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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call a function in CMainFrm.cpp of a exe from a function in a d

Status
Not open for further replies.

xzhang

Programmer
Jun 7, 2001
9
US
HI,

Is there any MS article which describes how to repeatly call a function of CMainFrm class in a .exe file from a function of a class in a .dll file?

Thanks.

Xiaoming
 
If you are inside an exe file(inside the project) you can call the function with:

((CMainFrm*)AfxGetMainWnd())->MyFunction();

as many times as you like.

Is that DLL you want to call the function from loaded in the exe memory space? is it external?
Please give some more information...

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top