I am trying to get and set the following information from File/Open save dialog of Microsoft Office 2000/2003/2007
1.Retrieve the currently displayed/selected folder path and also the file name that is selected if any.
2. Retrieve the selected file path, when the user clicks the open or save button.
3.Set a pre-defined string path within the file-name combo box.
I have been able to do the above task in case of File Open/Save common controls dialog(used by WordPad ,Notepad,
Acrobat Reader etc.) by using the dialog functions depicted in MSDN. But it is not working with Microsoft Office Dialog and I have found no MSDN documentation that depicts the internal messages of Microsoft Office Dialogs.
Microsoft Office doesn't use the common dialog for file open/save AFAIK.
The Office dialogs may well be undocumented. From our point of view, the
MS Office suite of applications are proprietary 3rd-party applications, not part of the
operating system, so there's no reason the dialogs and their functionality should be
You may get a reply here from someone with the info you need.
In the meantime, here's a couple links you may or may not have been to already:
so then the "regular dll that uses MFC" can't contain classes? for instance, if i wanted to put a dialog and associated functions in a dll, i would use the extension dll whereas if i were only creating functions that say, operated on a CString, i could do that in a "regular dll that uses MFC" ?
so then the "regular dll that uses MFC" can't contain classes?
it can contain them, sure. you can even export them: (for example).
but if you want to export C++ classes, you'll really should use an MFC extension DLL. most importantly, this ensures that the app and the DLL are using the same heap for memory allocation - don't want to pass a CString which has allocated memory into a DLL which is looking at a different heap...
or, as MS puts it: "If you need to pass an MFC or MFC-derived object pointer to or from an MFC DLL, the DLL should be an extension DLL."
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
::GetClassLong(GetSafeHwnd(), GCL_STYLE) | CS_DROPSHADOW/*0x00020000*/
return TRUE; // return TRUE unless you set the focus to a control
Note that CS_DROPSHADOW requires a Windows version >= XP.
Note that after this code is run ALL dialogs will have shadows!
I'm implementing an simulator and the user interacts with an image reflected in a mirror. How can I do this reflection, how can I flip or change this 3d world?
I'm using C++ language with Opengl and OpenHaptics (Phantom Omni library).
I am trying to debug a dll project on VC++ 6.0. Dll file is loading dynamically in the executable (Win32 Console Application) by LoadLibrary API and calling functions by using function pointers. How can I debug this DLL file?
Senior SAP R/3 Basis and Development Consultant
In MSDEV take Build->Start Debug->Attach To Process. You can see the running process, from which u can select the application which loaded ur dll. open the cpp of ur dll and u can insert breakpoint and can debug.
Another way: On Process tab of Task manager right the exe application, which load the dll, and select debug. MsDEV will open, then u can insert break point on ur dll's cpp file and can debug.