Depends on what you want to do. How about describing your problem from a different angle? Instead of picking a specific implementation/layout maybe tell instead about the wanted functionality and user experience.
Is there a way to remove the maximize box from the view title bar in a multidoc app? I used DeleteMenu(*) or ModifyStyle(*) to disable the maximize button but these do not remove the button from the title bar. Thanks in advance.
When you create the window dont set the WS_MAXIMIZEBOX style, if your using MFC check under the CWnd::PreCreateWindow method of your windows class and you can change the style from there before the window is created.
I'm using VC 6++ and MFC. The project has some fortran modules in it.
I get linker errors like these:
dfor.lib(matherr.obj) : error LNK2005: __matherr already defined in msvcrtd.lib(merr.obj)
libc.lib(fpinit.obj) : error LNK2005: __ldused already defined in a previous module
libc.lib(fpinit.obj) : error LNK2005: __fltused already defined in a previous module
BUBBC.OBJ : error LNK2001: unresolved external symbol _THEPAR@4
BUBBC.OBJ : error LNK2001: unresolved external symbol _EXPARG@4
BUBBC.OBJ : error LNK2001: unresolved external symbol _BDOSE@8
The fortran modules are just .for text files that reside in the project. They aren't compiled separately and linked. If I make a win32 console app and include these .for files as source files, the app compiles, links and runs fine. I have Visual Fortran on the machine and Visual Studio seem to know what to do in the case of a win32 app. But for an MFC app, it gives linker errors. I dont have a separate fortran project.
Is this correct? What i am attempting to ensure is that the arrErrCode[i]var is being passed by reference to the TestMyStuff method. The question is by using a LPTSTR vs. an &, i should get the same result correct?
For (int 1= 0; i<2; i++)
arrErrCode[i] = new TCHAR;
ZeroMemory(arrErrCode[i], 16 * sizeof(TCHAR))
//do something here with arrErrCode[i]
A LPTSTR is a pointer to a char array. So you don't need to pass it by reference unless you want to change it size (in fact, allocating a new array). If you only wants to modify the contents, then you can pass the pointer.