Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CPU stimulation C++ Pin
124212-Nov-08 6:54
124212-Nov-08 6:54 
QuestionProblem with IDispatch::GetTypeInfo Pin
mvkvibin11-Nov-08 17:44
mvkvibin11-Nov-08 17:44 
QuestionConvert doc/txt file to PDF using C++. Pin
Subrat 470826611-Nov-08 17:26
Subrat 470826611-Nov-08 17:26 
AnswerRe: Convert doc/txt file to PDF using C++. Pin
bob1697211-Nov-08 18:32
bob1697211-Nov-08 18:32 
GeneralRe: Convert doc/txt file to PDF using C++. Pin
Saurabh.Garg11-Nov-08 22:41
Saurabh.Garg11-Nov-08 22:41 
GeneralRe: Convert doc/txt file to PDF using C++. Pin
bob1697212-Nov-08 3:18
bob1697212-Nov-08 3:18 
AnswerRe: Convert doc/txt file to PDF using C++. Pin
Cedric Moonen11-Nov-08 20:32
Cedric Moonen11-Nov-08 20:32 
QuestionHow to pass data from MFC to Win 32 Console through windows messaging [modified] Pin
Darrel Q Pham11-Nov-08 15:45
Darrel Q Pham11-Nov-08 15:45 
Hi everyone, I have been trying to send data through windows messaging from a dialog to a windows service, both of which I have created. I can send data from the service to the dialog fine, I just let OnCopyData handle it. My windows service, with my limited knowledge, doesn't have anything like that, I think. I created a thread in my windows service to look for messages. I know I can't cast the datastructure to a LPARAM or cast back the LPARAM to my datastructure, the code below just shows as an example what I want to do. If there is a way, please let me know. I look forward to be educated by you.

void myMessageThread( VOID *) 
{
	
	MSG l_msgMessage;	
        //Create hidden window for the dialog to capture the hwnd
	hWndMain = ::CreateWindow( _T("STATIC"), _T("Sample"), 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);	
	CString c_CopyDataMessage;
	l_msgMessage.hwnd = hWndMain;
	//Data structure I want to receive
	PCOPYDATASTRUCT l_newdata; 
        //Loop forever
	while( GetMessage(&l_msgMessage, hWndMain, 0, 0) !=100	){
		if( l_msgMessage.message == WM_myCopyData ){
			l_newdata = (PCOPYDATASTRUCT)l_msgMessage.lParam;		
		}
		TranslateMessage( &l_msgMessage );
		DispatchMessage( &l_msgMessage );
	}
}


modified on Monday, November 17, 2008 9:30 PM

AnswerRe: How to pass data from MFC to Win 32 Console through windows messaging Pin
Darrel Q Pham17-Nov-08 15:34
Darrel Q Pham17-Nov-08 15:34 
QuestionNeed help converting raw PCM data into streaming audio Pin
lavagoblin11-Nov-08 12:42
lavagoblin11-Nov-08 12:42 
AnswerRe: Need help converting raw PCM data into streaming audio Pin
enhzflep11-Nov-08 14:00
enhzflep11-Nov-08 14:00 
AnswerRe: Need help converting raw PCM data into streaming audio Pin
Mark Salsbery11-Nov-08 15:35
Mark Salsbery11-Nov-08 15:35 
QuestionPull Downs Menu Items Pin
BobInNJ11-Nov-08 11:33
BobInNJ11-Nov-08 11:33 
AnswerRe: Pull Downs Menu Items Pin
lavagoblin11-Nov-08 11:59
lavagoblin11-Nov-08 11:59 
GeneralRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 12:24
BobInNJ11-Nov-08 12:24 
GeneralRe: Pull Downs Menu Items Pin
lavagoblin11-Nov-08 13:01
lavagoblin11-Nov-08 13:01 
GeneralRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 14:09
BobInNJ11-Nov-08 14:09 
GeneralRe: Pull Downs Menu Items Pin
lavagoblin12-Nov-08 4:18
lavagoblin12-Nov-08 4:18 
GeneralRe: Pull Downs Menu Items Pin
Mark Salsbery11-Nov-08 15:42
Mark Salsbery11-Nov-08 15:42 
AnswerRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 13:00
BobInNJ11-Nov-08 13:00 
QuestionGet parent process command line in 64 bit Pin
Jack Rong11-Nov-08 10:23
Jack Rong11-Nov-08 10:23 
QuestionHow to select an initial entry when Virtual List is first displayed? Pin
AmVal11-Nov-08 8:11
AmVal11-Nov-08 8:11 
QuestionRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery11-Nov-08 8:41
Mark Salsbery11-Nov-08 8:41 
AnswerRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal11-Nov-08 11:25
AmVal11-Nov-08 11:25 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery11-Nov-08 12:39
Mark Salsbery11-Nov-08 12:39 

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.