Can somebody help me showing me how do I create two differente types of view. My project is using ATL/WTL and is a MDI. What I need is to be able to show two Childwindows with different content. One of them has to show my sales and the other my clients catalog.
Jose Cruz
Posts
-
How do I create Different view derived class ? -
passing a pointer aroundSo you think every body is like you
-
passing a pointer aroundMy main problem is how do I pass a pointer of my connection object to the childviews, where the pointer is a public member of my childframe. Is there some way from my view that I could get a reference of the parent childframe? Can somebody please help me.
-
Using CTreeViewCtrlThe main reason of asking this in this forum, was because I found that the message handling of the events is handled in diferent ways. So the way is handled in MFC projects is not the same as in WTL projects. So I rather be asking this to people of this forum because my project is an WTL/ATL project.
-
Using CTreeViewCtrlCan somebody show me how do I implement in my view the event on item expanding using a CTreeViewCtrl derived class. Thanks:(
-
ClassWizard databaseDoes anybody knows how can I solved the following problem. When I make a ATL Project with the ATL/WTL AppWizard and I try to use the ClassWizard, I get the following error: The ClassWizard database c:\app\app.clw does not exist. Would you like to build it from your sorce files? After selecting my source files, it won't rebuildem. Does anybody knoes how can I correct(prevent) this problem. This happens also in my first time Visual C++ installation.
-
How do I work with CComPtrCan somebody show me how should I work with an CComPtr pointer. Are there any web links wich I can follow.
-
Help with ErrorCan you please tell me how do I do that. Thank you:zzz:
-
Help with ErrorCan somebody help me eliminate the following error. I get this error when I compile for Release and not for debug. --------------------Configuration: esContaX - Win32 Release-------------------- Linking... LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/esContaX.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. esContaX.exe - 2 error(s), 0 warning(s) I Know this error is related to that the function _main is somehow unrichable. But why could this happen only in release mode. :confused:
-
How do I convert a double to char:confused:I´m trying to convert a float to a char with the following code: double Total; char buffer[50]; Total = GetDouble(dbf, 2) + GetDouble(dbf, 3) + GetDouble(dbf, 4); _gcvt(Total,10,buffer); But the result is allways the same, even if the value of Total equals cero. Can some body help me.
-
How do I call the choose folder dialogYes, I have the following Function wich calls the BROWSEINFO API, but when I run this on Win98 I get an exception, but on winME everything works OK. Can somebody help me solve this problem.:confused: BOOL folderDialog(const HWND parent, const char *topic, char *result, const bool allowNew, const int extraFlags) { // CoInitialize must be called to support BIF_USENEWUI. OleInitialize(NULL); LPMALLOC pMalloc = NULL; LPITEMIDLIST pidl = NULL; BROWSEINFO bi; ZeroMemory(&bi, sizeof(BROWSEINFO)); // set the bi's default values bi.hwndOwner = parent; bi.lpszTitle = topic; bi.ulFlags = BIF_STATUSTEXT | extraFlags; if (!allowNew) { bi.ulFlags = bi.ulFlags; } pidl = SHBrowseForFolder(&bi); if(pidl != NULL) { SHGetPathFromIDList(pidl, result); // free memory if (FAILED(SHGetMalloc(&pMalloc))) { throw "SHGetMalloc Failed!"; } pMalloc->Free(pidl); pMalloc->Release(); OleUninitialize(); return (BOOL)strlen(result); } OleUninitialize(); return FALSE; }
-
How do I call the choose folder dialogI´m trying to show the Folder dialog. Does any body knows where can I get a sample ATL/WTL project with this.
-
Combo heigth problemThakn you for your answer. Seems like everything it`s dificult not knowing how to do it
-
Combo heigth problemThe problem is when I click on the combos down arrow, it won`t display the list. The list does contains some items. But I can`t see them.
-
How to creat an Object from with a pointerFirst I appreciate your answer. But What I really want to know is, if it is a good idea to use a Grid that resides in a DLL. And if so How do I create an Object of it. I did this but with MFC and the autogenerated wrapper classes and everything works OK but I don`t know how to use it in a ATL/WTL project. This is because if I try to use the generated class I get some error about undefined class.:omg:
-
How to creat an Object from with a pointerI have this code wich creates a Grid, this works using a wrapper class. CdxDBGrid m_grid; m_grid.Create(_T("TestGrid"),WS_CHILD|WS_VISIBLE, CRect(1, 2, 3, 4), this, 1); So the question How do I achive the same as above but with a pointer. Or how do I create a View with my pointer. IdxDBGridPtr m_pGrid:((
-
Combo heigth problemHow do I set my combos height wich resides in a DialogBox:zzz:
-
How do I work with the '\'Ok this is the complete code CString strSection = "Files"; CString strStringItem = "DataFiles"; m_strAppPath= theApp.GetProfileString(strSection, strStringItem); // the value of m_strAppPath Now is = C:\esContaX\Archivos\TblPols.dbf TRACE(m_strAppPath.GetBuffer(m_strAppPath.GetLength())); //so trace shows C:\esContaX\Archivos\TblPols.dbf m_strAppPath.TrimRight('\\'); TRACE(m_strAppPath.GetBuffer(m_strAppPath.GetLength())); //Now trace shows the same value C:\esContaX\Archivos\TblPols.dbf return TRUE;
-
How do I work with the '\'My problem is: I´m trying to replace my file name from the CString wich value is "C:\esContaX\Archivos\TblPols.dbf" to finish with something like this: "C:\esContaX\Archivos\" using the following code: m_strAppPath.TrimRight('\'); , but I get the following errors: --------------------Configuration: esContaX - Win32 Debug-------------------- Compiling... esContaX.cpp C:\esContaX\esContaX.cpp(230) : error C2001: newline in constant C:\esContaX\esContaX.cpp(232) : error C2143: syntax error : missing ')' before 'return' C:\esContaX\esContaX.cpp(232) : warning C4305: 'argument' : truncation from 'const int' to 'char' C:\esContaX\esContaX.cpp(232) : warning C4309: 'argument' : truncation of constant value Error executing cl.exe. esContaX.exe - 2 error(s), 2 warning(s) Can somebody help me showing me how can I acomplish this.
-
LOW speed in opening Access database !MSDE stands for Microsoft Desktop engine. It´s a light version of SQL Server, this version comes without the graphical administrative tools. Follow the Link: http://www.codeproject.com/useritems/JetMSDE.asp