Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
JokeRe: Problem of Dll Pin
Rajkumar R8-May-08 21:41
Rajkumar R8-May-08 21:41 
AnswerRe: Problem of Dll Pin
Nitheesh George8-May-08 21:38
Nitheesh George8-May-08 21:38 
AnswerRe: Problem of Dll Pin
Nitheesh George8-May-08 22:39
Nitheesh George8-May-08 22:39 
QuestionFind the specified string and increment Pin
manju#1238-May-08 20:36
manju#1238-May-08 20:36 
AnswerRe: Find the specified string and increment Pin
Nitheesh George8-May-08 21:19
Nitheesh George8-May-08 21:19 
GeneralRe: Find the specified string and increment Pin
manju#1238-May-08 23:08
manju#1238-May-08 23:08 
AnswerRe: Find the specified string and increment Pin
Nitheesh George8-May-08 21:28
Nitheesh George8-May-08 21:28 
GeneralRe: Find the specified string and increment Pin
manju#1238-May-08 23:34
manju#1238-May-08 23:34 
QuestionIs there any method to check for a valid hwnd from an another thread? Pin
namaskaaram8-May-08 19:44
namaskaaram8-May-08 19:44 
AnswerRe: Is there any method to check for a valid hwnd from an another thread? Pin
Stephen Hewitt8-May-08 19:52
Stephen Hewitt8-May-08 19:52 
AnswerRe: Is there any method to check for a valid hwnd from an another thread? Pin
asrelu10-May-08 22:52
asrelu10-May-08 22:52 
QuestionHow to Save Text File in SDI application Pin
phanindra varma8-May-08 19:05
phanindra varma8-May-08 19:05 
QuestionRe: How to Save Text File in SDI application PinPopular
Rajesh R Subramanian8-May-08 19:20
professionalRajesh R Subramanian8-May-08 19:20 
GeneralRe: How to Save Text File in SDI application Pin
Rajkumar R8-May-08 20:07
Rajkumar R8-May-08 20:07 

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.