|
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
|
|
|
|
|
You need an automation program. Google for that.
~RaGE();
|
|
|
|
|
Is there any way to get the content of html and save it to a word document?
|
|
|
|
|
open the HTML file in word, click file-> save as... and select .doc as the format
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
I creating an application, and the user is able to load url or html. and extract the content to word via just a click on the convert button. So ur ans is not appropriate. Any other ways?
|
|
|
|
|
You can use COM automation to launch MS Word, open an HTML file and save it as a Word document. Have a look on MSDN under Office Development.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
I'm writing an application and I need to launch Windows Media Player programmatically.
I'd like to do that as simply as entering "wmplayer.exe" in Windows Run utility.
Can someone help?
Thanks,
Allad
----
Navigator - Your best alternative to Windows Explorer
-- modified at 18:46 Tuesday 7th February, 2006
|
|
|
|