Thanks David.
tingu
Posts
-
Identify 32 bit binary or 64 bit binary -
Identify 32 bit binary or 64 bit binaryI am looking for a C++ function which can identify the architecture of an executable file (binary) e.g. whether it is a 32 bit or 64 bit. I heard such a function might be available in imagehlp.dll Can somebody help?
-
timer for 5 seconds.Can somebody send me timer code for 5 seconds? I need to put it so that form can wait to be closed for 5 seconds. I need to show the form for 5 seconds before closing. Here is the code: private void Form1_Load(object sender, EventArgs e) { this.Show(); int ret1 = 0; int ret2 = 0; ret1 = ConfigureSSE1(); ret2 = CreateLogin(); // Add code here to wait for 5 seconds to display the form which has Label, "Configuring..." this.Close(); }
-
this.show() doesn't display controls.Can you send me sample code for timer for 5 seconds? I just want it to display the form for 5 seconds before closing.
-
this.show() doesn't display controls.Label is the control on the form.
-
this.show() doesn't display controls.I need to display form for 5 seconds. I have following code, this.show(); int ret1 = 0; int ret2 = 0; ret1 = Configure1(); ret2 = CreateLogin(); System.Threading.Thread.Sleep(5000); this.Close(); The form displays but it doesn't display the label on the form. Is there any other way to achieve the same?
-
Close the form programmaticaly.I tried this.close() again and got system.objectdisposedexception exception. So I called this.dispose() before this.close(), but still the same exception. What is the proper code for closing the form? Thanks.
-
Close the form programmaticaly.I should Application.Exit() be called in main()? If so I tried it, but shows the same error.
-
Close the form programmaticaly.No, I don't think so. It is a very simple application with 2 functions. Is there a way to figure out if any other thread is running? Thanks.
-
Close the form programmaticaly.I have created a visual C# windows application project with one form. I have removed the close x button by setting ControBox=False. Then if I use this.close() method to close the form I get error. It doesn't show any error message but shows dialog "application has top close...". I was under the impression that it was happening due to Application.Run method. But can anyone please suggest a solution to this?
-
"filename.chm not a windows help file, or the file is corrupted":(When I am trying to launch help file (.chm file) from within x64 release build using winapi htmlhelpa, it gives error "filename.chm not a windows help file, or the file is corrupted". The same code works for win32 release build. Please advise.
-
"Edit" part of MFC menu.Hi, Those Cut/Copy/Paste are not active. Those look deactivated. I am not able to click on it. I have an edit box in the application, where I have typed text. I am not able to copy it using this control. If you have any suggestion, please let me know. Thanks, Harsha
-
"Edit" part of MFC menu.Hi, I have created MFC SDI application. It is working except "Edit" part of the menu. Do I need to modify any code to make it work? I am not able to cut, copy or paste using it. Thanks, Harsha
-
SDI MFC APP -- Change titleHi, I have created MFC SDI application. I see the title as "Untitled App" after execution. How to change it to the desired one? I don't see any caption in the form's properties. I have changed the caption in AboutDialog, but that doesn't help to change to caption of the application. Thank you. Harsha
-
Initialization part in SDI MFC project.Hi, Thank you. I am adding the initialization code related to the controls I have added on IDD_APP_FORM (Dialog). So I guess I should add initialization code to view's OnInitialUpdate() method. In which case document's OnOpenDocument() method is used? Thanks, Harsha
-
Initialization part in SDI MFC project.Hi, I am changing my dialog based MFC application to SDI application. I have the initialization code in TestDlg::OnInitDialog(), in the part //TODO: Add extra initialization here What is the equivalent function in SDI? Where can I add this extra initialization? I see CAppView::OnInitalUpdate() function, but there isn't //TODO: Add extra initialization here comment. Thanks, Harsha
-
Errors: MSVC 6.0, SDI MFC APP.Hi David, I will correct it, but then do you think that I should include afxres.h explicitly in StdAfx.h file? Thank you. Harsha
-
Errors: MSVC 6.0, SDI MFC APP.What do you mean by it? Thanks, Harsha
-
Errors: MSVC 6.0, SDI MFC APP.Hi it looks like this: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_) #define AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include // MFC core and standard components #include // MFC extensions #include // MFC Automation classes #include // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__D535EB41_66D7_43B5_8D02_0D7D90278354__INCLUDED_) Thanks, Harsha
-
Errors: MSVC 6.0, SDI MFC APP.Hi I am creating SDI MFC sample App. I followed the steps given in "http://www.codeproject.com/dialog/mdisdiapps.asp". I have not yet added any of my code. I am getting these 2 errors while compiling: Test_SDI\MainFrm.cpp(55) :error C2065: 'CBRS_GRIPPER' : undeclared identifier Test_SDI\MainFrm.cpp(55) :error C2660: 'CreateEx' : function does not take 3 parameters Any suggestions? Thanks, Harsha