Click here to Skip to main content
15,918,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to detect whether or not the current window is console window. Pin
Truong D. Toan6-May-04 18:14
Truong D. Toan6-May-04 18:14 
AnswerRe: How to detect whether or not the current window is console window. Pin
Abin6-May-04 20:52
Abin6-May-04 20:52 
Questionwhats the CListCtrl's equivalent of SetCurSel ? Pin
Anonymous6-May-04 17:51
Anonymous6-May-04 17:51 
AnswerRe: whats the CListCtrl's equivalent of SetCurSel ? Pin
Anonymous6-May-04 21:30
Anonymous6-May-04 21:30 
QuestionCan anyone help with my code??? Pin
Draco02836-May-04 17:45
Draco02836-May-04 17:45 
AnswerRe: Can anyone help with my code??? Pin
Maxwell Chen6-May-04 19:54
Maxwell Chen6-May-04 19:54 
GeneralRe: Can anyone help with my code??? Pin
Draco02837-May-04 3:05
Draco02837-May-04 3:05 
GeneralRe: Can anyone help with my code??? Pin
Juergen Froehlich7-May-04 11:52
Juergen Froehlich7-May-04 11:52 
in form1.h you define in the class Form 1 the button3_Click method

System::Void button3_Click(System::Object * sender, System::EventArgs * e) {
BOOL CALLBACK DialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
hw = CreateDialog( hInstance , MAKEINTRESOURCE ( 102 ) ,NULL,reinterpret_cast(DialogProc ));
}

This has the parameter sender and e.
Because no parameter hInstance is given as parameter into the method and also there is no class parameter with the name hInstance the parameter hInstance cannot be known to the compiler. Where shall it come from?
In traditional Win32 SDK development this is given to the main function by windows when the application is started and normally will be kept as global variable in the ugly Win32 SDK style. Here you are in the object oriented world of .NET. Possible there are some method in the Form class allowing access to the application object, where one would typically search for the Win32 style instance handle. (I dont know where exactly). It should also work for this case to set NULL instead of the concrete hInstance value of the application.
Generalamplitude demodulation Pin
langzi546-May-04 14:55
langzi546-May-04 14:55 
GeneralRe: amplitude demodulation Pin
Roger Wright6-May-04 20:39
professionalRoger Wright6-May-04 20:39 
GeneralRe: amplitude demodulation Pin
Anonymous6-May-04 20:55
Anonymous6-May-04 20:55 
GeneralRe: amplitude demodulation Pin
Roger Wright7-May-04 2:59
professionalRoger Wright7-May-04 2:59 
QuestionHow to close Handle in MSVC++ 1.52 Pin
Anonymous6-May-04 14:31
Anonymous6-May-04 14:31 
AnswerRe: How to close Handle in MSVC++ 1.52 Pin
Anthony_Yio6-May-04 15:48
Anthony_Yio6-May-04 15:48 
GeneralRe: How to close Handle in MSVC++ 1.52 Pin
Steve S6-May-04 22:33
Steve S6-May-04 22:33 
GeneralRe: How to close Handle in MSVC++ 1.52 Pin
Juergen Froehlich7-May-04 12:08
Juergen Froehlich7-May-04 12:08 
AnswerRe: How to close Handle in MSVC++ 1.52 Pin
Antony M Kancidrowski6-May-04 23:52
Antony M Kancidrowski6-May-04 23:52 
Questionhow to start another application in my application Pin
marmotchen6-May-04 14:10
marmotchen6-May-04 14:10 
AnswerRe: how to start another application in my application Pin
Jarek G6-May-04 14:19
Jarek G6-May-04 14:19 
AnswerRe: how to start another application in my application Pin
David Crow7-May-04 3:05
David Crow7-May-04 3:05 
QuestionWhat is the best way to implement an IP tunneling protocol? Pin
jaybz6-May-04 12:22
jaybz6-May-04 12:22 
GeneralFolder Pin
Ni@m6-May-04 10:26
Ni@m6-May-04 10:26 
GeneralRe: Folder Pin
User 66586-May-04 11:28
User 66586-May-04 11:28 
GeneralCompiler disabling breakpoint Pin
Wheatbread6-May-04 10:23
Wheatbread6-May-04 10:23 
GeneralRe: Compiler disabling breakpoint Pin
Jack Reed6-May-04 10:47
Jack Reed6-May-04 10:47 

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.