|
Add the /GZ[^] option to your debug build. It's good form to do a build with this option from time to time even when you haven't got a release only bug.
Steve
|
|
|
|
|
Actually we have ported an application from vc to vc.net. The application is working fine in vc release mode but crashing in vc.net release mode. Thank you for your earlier suggestion.
|
|
|
|
|
arunperi wrote: Actually we have ported an application from vc to vc.net.
Have you tried to debug your application.. at what point it is failing.. as it very difficult to tell exactly where is problem is..
I too face similiar problem.. More Info[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I dont known how to use file dialog controls.Give me the example how to use the control.
|
|
|
|
|
What control in the File dialog do you wish to use?
Owner drawn
Jesus Loves
|
|
|
|
|
i wish to use open dialog control .so give me the code in api.please help me.
|
|
|
|
|
There is no Open Dialog Control.
But I guess you would like to use the CFileDialog class.
CFileDialog cfd(TRUE);
if(cfd.DoModal() == IDOK)
MessageBox(cfd.GetPathName());
Owner drawn
Jesus Loves
|
|
|
|
|
This is how we do it with OPENFILENAME :
From MSDN:
OPENFILENAME ofn;
char szFile[260];
HWND hwnd;
HANDLE hf;
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hwnd;
ofn.lpstrFile = szFile;
ofn.lpstrFile[0] = '\0';
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0";
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
if (GetOpenFileName(&ofn)==TRUE)
::MessageBox(NULL, ofn.lpstrFile, "File Open", MB_OK);
Owner drawn
Jesus Loves
|
|
|
|
|
U can use CFileDialog MFC class, just search google to find example of CFileDialog
|
|
|
|
|
i wanted to use open dialog control in api.
|
|
|
|
|
hello
In my mfc vc6 program, I COM connect to msn messenger sink via advise and also can disconnect with unadvise. All is well and I can control MSN very well.
However, if in taskmgr you kill MSN IM, how does my program detect if its connection is "lost" with msn IM (since it was killed) and if so detected, doing an unadvise wont work for the msn sink is now gone.
Any adive?
Thank you
|
|
|
|
|
Hi all!
I want to write a application for " Connecting to a HTTPS server with SSL". I use Visual C++ 6.0 programing language.
Please give me a way connecting to a HTTPS server with SSL by VC++ 6.0
Please answer me soon. Thanks all.
Huynh Ngo Phuoc Tuyen - Vietnamese
|
|
|
|
|
Try this
http://www.codeproject.com/internet/wininet_ssl___certificate.asp
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
XMinds
|
|
|
|
|
Hello all,
I create a Bitmap GDI+ object using an HBITMAP passed into the contructor. I assume this creates a PixelFormat24bppRGB bitmap. How do I convert this to PixelFormat32bppARGB? I assume you use Bitmap::ConvertFormat but don't know how to do this?
Can anyone help?
Thanks,
-Mike
|
|
|
|
|
Hi, I need something like a CFileDialog (where you can let the user select a file and then see the path to it) but for folders. So the user would find a folder, and click ok and the the path to that folder would be available to the program, does anyone know if there is something like that. Thanks
|
|
|
|
|
|
try this if it suits you
As far as my perception goes you need the folderpath where the file is contained.
So why don't you Trim the string by the file name.
In this way you would be able to get the path of the folder.
This is a crude way. You may get some even better ways of doing this
Wishes.
Anshuman Dandekar
Dare to Dream,
Care to Achieve.............
|
|
|
|
|
Thanks guys. I was already trimming file path before and was just trying to find a better way.
I went to http://www.codeproject.com/dialog/cfolderdialog.asp, found out and then learned how to use SHBrowsefolder and my thing works. thanks for your help
|
|
|
|
|
how can i decompile a dll file to see what is used to call it?
|
|
|
|
|
you can't decompile a DLL..though you can use a tool "Dependency Walker" to know the list of exported funtion names
"Every morning I go through Forbes list of 40 richest
people in the world. If my name is not in there, I go to
work..!!!" -- modified at 23:26 Tuesday 7th February, 2006
|
|
|
|
|
Use DUMPBIN.EXE from command line
|
|
|
|
|
How can I resume a FTP broken download in C API? I'm working in Visual Studio 5.0. Please show me how to do this. Thank you very much!
Sincerely
Thangnvhl
|
|
|
|
|
Create a simple single-dialog based MFC application by using MFC application wizard in VC++ 6. For the EXE program generated, would it possible to let the EXE take in CmdLine parameters like switches e.g. "-t", "-a" etc?
|
|
|
|
|
use GetCommandLine API & try with WinExec()
-- modified at 0:20 Wednesday 8th February, 2006
|
|
|
|
|
How do i extract text from Microsoft Words or convert MS word file to a text file? Does anyone have a ready source project? if have, pls send to hl8476@gmail.com. Thanks
|
|
|
|