|
I am trying to automate word in VC++; the problem is that the api exposed by Word expects me to pass a Variant* of a structure.How can I convert a userdefined type (structure of two long values in this case ) to a VARIANT.
Any clues??
|
|
|
|
|
How do you expect Word to know about your user defined type in any case?
If this is really what you want, usually you pass a binary object that the receiver knows how to interpret. Or in other words you pass a SafeArray with the VARIANT.
--
Roger
It's supposed to be hard, otherwise anybody could do it!
|
|
|
|
|
In VC.NET where multiple projects(solution files are there) are there which on the whole constitute one project, when debuging the breakpoints are getting is getting disabled
i.e
The breakpoint will not currently be hit. No executable code is currently loaded at this location.
Can anyone help please.
Thanks,
---Arun.
|
|
|
|
|
Our application running in debug mode perfectly but is crashing in release mode.
can any one please explain what could be the probelm.
Thanks,
---Arun.
|
|
|
|
|
See here[^] for some clues...
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"
|
|
|
|
|
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.
|
|
|
|
|
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?
|
|
|
|