Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDialog application Pin
tom groezer8-May-08 22:28
tom groezer8-May-08 22:28 
AnswerRe: Dialog application Pin
Matthew Faithfull8-May-08 22:42
Matthew Faithfull8-May-08 22:42 
AnswerRe: Dialog application Pin
CPallini8-May-08 22:43
mveCPallini8-May-08 22:43 
AnswerRe: Dialog application Pin
toxcct8-May-08 23:13
toxcct8-May-08 23:13 
GeneralRe: Dialog application Pin
tom groezer9-May-08 2:34
tom groezer9-May-08 2:34 
GeneralRe: Dialog application Pin
toxcct9-May-08 3:03
toxcct9-May-08 3:03 
QuestionTo find MMC's version on a system Pin
Mushtaque Nizamani8-May-08 22:04
Mushtaque Nizamani8-May-08 22:04 
AnswerRe: To find MMC's version on a system Pin
Hamid_RT9-May-08 0:25
Hamid_RT9-May-08 0:25 
QuestionVirtual Constructor Pin
Anandi.VC8-May-08 21:49
Anandi.VC8-May-08 21:49 
AnswerRe: Virtual Constructor Pin
Rajkumar R8-May-08 21:53
Rajkumar R8-May-08 21:53 
AnswerRe: Virtual Constructor Pin
fefe.wyx8-May-08 21:54
fefe.wyx8-May-08 21:54 
AnswerRe: Virtual Constructor Pin
toxcct8-May-08 21:59
toxcct8-May-08 21:59 
AnswerRe: Virtual Constructor Pin
jhwurmbach9-May-08 3:05
jhwurmbach9-May-08 3:05 
QuestionDefaultIcon Pin
john56328-May-08 21:14
john56328-May-08 21:14 
Questionxp home editon problem Pin
followait8-May-08 20:42
followait8-May-08 20:42 
AnswerRe: xp home editon problem Pin
Rajkumar R8-May-08 20:51
Rajkumar R8-May-08 20:51 
GeneralRe: xp home editon problem Pin
followait8-May-08 23:02
followait8-May-08 23:02 
GeneralRe: xp home editon problem Pin
Rajkumar R8-May-08 23:10
Rajkumar R8-May-08 23:10 
GeneralRe: xp home editon problem Pin
followait9-May-08 7:35
followait9-May-08 7:35 
AnswerRe: xp home editon problem Pin
Rajesh R Subramanian8-May-08 23:37
professionalRajesh R Subramanian8-May-08 23:37 
AnswerRe: xp home editon problem Pin
toxcct8-May-08 21:58
toxcct8-May-08 21:58 
QuestionProblem of Dll Pin
Abhijit A8-May-08 20:40
Abhijit A8-May-08 20:40 
Hello friend,
I am using VC6.0 IDE.
I have created MyDll.dll and write one exported function as below.

#ifdef TNS_EXPORTS
#define MyDll_API __declspec(dllexport)
#else
#define MyDll_API __declspec(dllimport)
#endif
...DllMain()....

extern "C" MyDll_API int CALLBACK DLLPRoc(char *pMsg,int nVal)
{
MessageBox(NULL,"DLLPRoc","MyDll_API",MB_OK);

return 1;
}

Inside Main.cpp
typedef int (CALLBACK *MYPROC)(char *pMsg,int nVal);

int Proc(char *pMsg,int nVal)
{
ret
}
int main(int argc, char* argv[])
{
HINSTANCE hIns=LoadLibrary("..MyDll\\Release\\MyDll.dll");
if(hIns==NULL)
return 0;

MYPROC pProc=(MYPROC)GetProcAddress(hIns,"DLLPRoc");
pProc=&Proc;
}
My problem is Proc doesn't receive acknowlegement.

I want the Proc will continuosly run as a callback procedure and receive the messages inside DLLProc in MyDLL.

Please give me suggestion and if po
ssible give some sample application

abhi

AnswerRe: Problem of Dll Pin
Cedric Moonen8-May-08 20:52
Cedric Moonen8-May-08 20:52 
AnswerRe: Problem of Dll [modified] Pin
Rajkumar R8-May-08 20:59
Rajkumar R8-May-08 20:59 
AnswerRe: Problem of Dll Pin
Nitheesh George8-May-08 21:36
Nitheesh George8-May-08 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.