Only chance for you is Modaless dialog. instead of calling DoModal() call Create() example MyClass *obj; obj = new MyClass(); obj->Create(IDD_DIALOG1,this); obj->ShowWindow(SW_SHOW);
vallikumar
Posts
-
How do we hide Modal Dialog Boxes? -
Change IconSelect the resource->Bitmap->IDB_ATLCON Here you can draw a new Bitmap or import a bitmap file. And delete the existing IDB_ATLCON and give the same name to new Bitmap. regards Vallikumar A
-
CRichEditView in a Property PageHi I don't know what do you want exacty? Property page is similar than Dialog window. So the same way you can add frames and controls inside the property page also. then you should add all the property pages to property sheet class. regards Vallikumar A
-
Japanese EUC to UNICODEhi refer the links http://www.codeproject.com/cpp/unicode.asp http://www.codeguru.com/forum/showthread.php?t=326350 regards Vallikumar A
-
How to set The Path?Hi, If you have a file other than your application's folder, then you should tell the exact path statically to your application. If you are storing the file in your application or temporary or system folders then you can use functions to get the file's folder. :cool: regards Vallikumar A
-
Modal dialog - Close - ESCHi While pressing ESC key by default ID_CANCEL(OnCancel) message is calling. So write code inside OnCancel() to prevent this. Check the keypressed and if it is ESC key then dont call CDialog::OnCancel(); regards Vallikumar A
-
Progress bar implementation for recursive directory deletionHi pls send your mail id to dingudikka@yahoo.com I will send the sample source code to count the no:of files and folders in a drive regards Vallikumar A
-
how to retrieve dll function parameter variables?Hi, I hope if you have release version of DLL(Only DLL file no others like lib,def etc), then you cannot see the funtions and paremeters of DLL. If your DLL is Debug version, then you have a chance to reengineering the DLL and get source code. Using this we can see what's inside the DLL. Best of luck regards Vallikumar A
-
error C2011: 'CDataGrid' : 'class' type redefinitionUse preprossor if condition to check datagrid.h file included already or not. mean you have to write the datagrid.h codes inside the #define directive. Example.. #if !defined(DATAGRID_H__INCLUDED_) #define DATAGRID_H__INCLUDED_ ...... #endif // DATAGRID_H__INCLUDED_ regards Vallikumar A
-
Unions Vs Struct.Members of unions cannot have an incomplete type, type void, or function type. Therefore members cannot be an instance of the union but can be pointers to the union type being declared. A union type declaration is a template only. Memory is not reserved until the variable is declared. If a union of two types is declared and one value is stored, but the union is accessed with the other type, the results are unreliable. For example, a union of float and int is declared. A float value is stored, but the program later accesses the value as an int. In such a situation, the value would depend on the internal storage of float values. The integer value would not be reliable.
-
SetWindowPosHi, I am not clear about your problem. Any how, I'll tell you what I feel about this If nFlags is nonzero in ModifyStyleEx, then the fuction calls the Win32 function SetWindowPos and redraw the window. So please take a look into all the parameters in ModifyStyleEx function call. better remove the function calls of ModifyStyleEx and use only SetWindowPos. Once after getting correct try to add the above three function calls of ModifyStyleEx on by one. :cool: regards Vallikumar A
-
Class to Class data transferI think your m_Edit variable declared as public. otherwise make it public. then you should create an object for class A, inside class B. Like this A objA; then do the assignment statement... CString str = objA.m_Edit; :cool: regards Vallikumar A
-
Share namesIf you want to access the information from your machine then no need to give the share name(Server) with \\. Instead this give NULL. This will get the information from your local machine. regards Vallikumar A
-
Share namesIf the share name does not exist, then system will return NERR_NetNameNotFound error message. So please check your share name exactly with the shared device in the server. And also server name should begins with \\. If this parameter is NULL, the local computer is used. best of luck regards Vallikumar A
-
How to inerface with COM Objects?Hi, To start COM application, you have to know some thing about COM and Interfaces. In VC++, we can do it two ways 1. Using MFC and 2) Using ATL libraries. ATL is simple and wizard faced. All interfaces creation and registration take care by ATL wizards. But in case if MFC, you have to inherit a class from CCmdTarget and create a interface also from IUnknown and IDispatch based upon your need. If you are going to work with on languages like VC++, VB etc then IUnkonwn is enough. But if your COM should support with script languages like VB script, Jscript then You shound use IDispatch. To create simple MFC COM, please go through the below MSDN link.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncomg/html/msdn\_house2.asp best of luck regards Vallikumar A
-
unit test caseBefore start writing the test cases, you should know your software well. You should proficient and Should have step by step knowledge of your project. what are the previous step, next step, input and output etc. try to go through some existing test cases of your project. I think this will helps you.. best of luck. regards Vallikumar A
-
Link errorHi, I had the same link error. I feel the problem is inclusion of your header files(#include "Libr.h") in side the Doc.h. Try to include the header files inside the .cpp files, not inside the .h files. If you want exactly inside the .h file, then include inside of #define. otherwise system will produce runtime error because of multiple inclution. in your case you included "#include "Libr.h" inside your doc.h and doc.h is included inside view.h and etc.. try to avoid this and "#include "Libr.h" should be inside your doc.cpp Dont include .cpp file. .h file will take care everythings of .cpp best of luck,, regards Vallikumar A