Click here to Skip to main content
15,890,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to read byte array sent by api from managed c++ Pin
hasansheik18-May-04 3:47
hasansheik18-May-04 3:47 
GeneralFile's length over HTTP Pin
Hans Ruck18-May-04 3:37
Hans Ruck18-May-04 3:37 
GeneralRe: File's length over HTTP Pin
Michael Dunn18-May-04 4:55
sitebuilderMichael Dunn18-May-04 4:55 
GeneralRe: File's length over HTTP Pin
Hans Ruck18-May-04 5:00
Hans Ruck18-May-04 5:00 
QuestionHow to use mutex in a dll Pin
yingkou18-May-04 2:49
yingkou18-May-04 2:49 
AnswerRe: How to use mutex in a dll Pin
Diddy18-May-04 4:46
Diddy18-May-04 4:46 
GeneralRe: How to use mutex in a dll Pin
yingkou18-May-04 14:08
yingkou18-May-04 14:08 
GeneralRe: How to use mutex in a dll Pin
Diddy18-May-04 23:40
Diddy18-May-04 23:40 
Change it to:

m_hmutex=OpenMutex(MUTEX_ALL_ACCESS,FALSE,"timemutex");

Also, in BOOL __declspec(dllexport)__stdcall installhook(HWND hCallProc)


Change:

hHook=SetWindowsHookEx(WH_GETMESSAGE,(HOOKPROC)GetMsgProc,hins,0);

To:

hHook=SetWindowsHookEx(WH_GETMESSAGE,(HOOKPROC)GetMsgProc,AfxGetInstanceHandle(),0);


If that doesn't fix it - all I can suggest is its the way you are calling the GetLastEventTime function from your EXE - how are you declaring the exported functions in the EXE? Like this:

BOOL __declspec(dllimport)__stdcall installhook(HWND hCallProc);
BOOL __declspec(dllimport)__stdcall UnHook();
BOOL __declspec(dllimport) __stdcall GetLastEventTime(char* pBuf,int size)

??

Or are you calling via loadlibray/getprocaddress?

GeneralRe: How to use mutex in a dll Pin
yingkou19-May-04 2:26
yingkou19-May-04 2:26 
GeneralRe: How to use mutex in a dll Pin
Diddy19-May-04 2:45
Diddy19-May-04 2:45 
GeneralRe: How to use mutex in a dll Pin
yingkou19-May-04 3:55
yingkou19-May-04 3:55 
GeneralRe: How to use mutex in a dll Pin
Diddy19-May-04 10:08
Diddy19-May-04 10:08 
GeneralUnreferenced memory Pin
krugger18-May-04 2:28
krugger18-May-04 2:28 
GeneralRe: Unreferenced memory Pin
Cedric Moonen18-May-04 2:37
Cedric Moonen18-May-04 2:37 
GeneralRe: Unreferenced memory Pin
David Crow18-May-04 3:14
David Crow18-May-04 3:14 
GeneralRe: Unreferenced memory Pin
valikac18-May-04 6:22
valikac18-May-04 6:22 
GeneralRe: Unreferenced memory Pin
Anonymous18-May-04 6:41
Anonymous18-May-04 6:41 
GeneralModeless CDialogbar Pin
krugger18-May-04 1:55
krugger18-May-04 1:55 
GeneralRe: Modeless CDialogbar Pin
Maximilien18-May-04 2:27
Maximilien18-May-04 2:27 
Generalmodal dialog Pin
Jiten D. Gandhi18-May-04 1:48
Jiten D. Gandhi18-May-04 1:48 
GeneralRe: modal dialog Pin
David Crow18-May-04 2:21
David Crow18-May-04 2:21 
GeneralRe: modal dialog Pin
Mahendra_78619-May-04 21:48
Mahendra_78619-May-04 21:48 
GeneralSending message to window Pin
Imtiaz Murtaza18-May-04 1:34
Imtiaz Murtaza18-May-04 1:34 
GeneralRe: Sending message to window Pin
jmkhael18-May-04 1:41
jmkhael18-May-04 1:41 
GeneralRe: Sending message to window Pin
Imtiaz Murtaza18-May-04 1:44
Imtiaz Murtaza18-May-04 1:44 

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.