I'm trying to use messages to communicate within a program (I'm following the article "Interprocess communication tutorial By Alex Farber") but am running into a problem. I've followed the first few steps of his little tutorial, and run into the following error when i try to build the application: error C2065: 'OnMessageTextChanged' : undeclared identifier with regards to this line in programDlg.cpp : ON_REGISTERED_MESSAGE(wm_Message, OnMessageTextChanged) I thought that: afx_msg LRESULT OnMessageTextChanged(WPARAM wParam, LPARAM lParam); in programDlg.h was the proper way to declare this. Any ideas on what I may be doing wrong? Thanks greg
briefcase
Posts
-
afx_message -
ShellExecute()hmm... alright, what am i doing wrong? ShellExecute( NULL, "open", "myhelp.hlp", NULL, NULL, //dir SW_SHOW ); myhelp.hlp exists in the same dir as the calling program.
-
ShellExecute()I'm sorry for the generalization, but I need help using the ShellExecute() function (to launch a .hlp file). ShellExecute( ?, "open", "Helpfile.hlp", NULL, ?, //dir SW_SHOW ); I put a '?' where I don't know what I should put :) The first is the window handle thingy, I really don't want the opened file attached to anything, how do i do this? The second ? is the directory... I have no idea what to set this too. If it's the programs current dir, how do i find that? Thanks
-
*.hlp fileswhats the lpDirectory param supposed to be with shellexecute()?
-
*.hlp filesHow can I launch .hlp files from my application? (IE user clicks "help" button it luanches the help file). Thanks
-
str to double?How can i put the contents of a string into a double? 100000000000000000000000000000000 for instance? :) atoi works up to the max value of a int, then it craps out... Thanks
-
Double to stringHow can you specify the accuracy (places after the decimal place) with str.Format()? Thanks Greg