Oct 31, 2001 #1 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
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
Oct 31, 2001 #2 IonelBurtan Programmer May 25, 2001 601 RO 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... http://www20.brinkster.com/ionelb Upvote 0 Downvote
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... http://www20.brinkster.com/ionelb