Could anyone tell me how to convert BSTR to string and vice versa?
Also, how can I convert between BSTR and CString?
Is there a way to write an unmanaged wrapper for a managed DLL so that an unmanaged application can call the managed DLL (Without going through COM)?
I am currently outputting integer data to a file using FileWriter. I need to have the data be in hexadecimal format. The problem is I do not know how to do this with the FileWriter::WriteLin...
Hi,
I am having a problem of killing the excel process when I am automating through visual c++ .net. I'm not sure if it matters but I am using microsoft office 2003. The main function t...
I have an VC 6.0 app. In design time, I created a menu on the main dialog. The resource ID is IDR_MAINFRAME. Like many windows programs, this menu has three menus. From left to right, the ...
I'm trying to slowly convert my MFC code to .NET code. My example works fine until I try and use a CString.
Is there a way to do this?
Thanks
I have done a full install of Visual Studio 2005.
Created a new project (MFC) and am attempting to add an event handler for a menu.
I have selected the menu in the resource editor and clicke...
Hi there.
I'm writing a VC++ program, no MFC that makes use of a lot of HRGNs and often combines and checks if they overlap. While I'm running it, my CPU usage goes as high as 70% max sometim...
Hello,
I want to be able to print out certain integer and float values to a textbox with some text before the values so that the user knows whats being printed. I need to print the values in ...
Hello all,
We used to build static linked libraries in Visual C++ 6.0, and then we could link them to other projects such as an ActiveX control project, and after building the project and l...
Hi, I have a sutiation, where I need to update RasPhone.pbk file present under c:\documents and settings\all users\application data\microsoft\network\connections\pbk; Here is my sample RasPho...
Is this possible?
If so, how?
I'd think that this should be simple but I can't seem to find any documentation on how to do this. There are some samples for relatively sophisticated macros. I know that I can record macros a...
hi , i am new in programming in dot net, and when my visual c++ express cannot connect by wizard to sql server 2005 express?
can u help me to know how to connect using a code not by wizard
R...
I try to get the recordset return by a stored procedure, but failed. I check the Database, the insert command has run successfully, but the error raises when I try to read the record set. I tr...
Hi experts!!!
I want to suggestion "VC++ read data from Excel without MFC."
and Use CDaoDatabase with console application???
thank you
When I compile a program in Debug mode, I get an error "unhandled exception in [application name](MFC42D.DLL): Ox0000005: Access Violation" when running the program. How do I resolve this issu...
I passed values for below function:-
HANDLE PortSIP_initialize(SIPCallbackEvent * callbackEvent,
int maxLines,
const char * userName,
const char * authName,
...
I am programming a game on a SDI. The display consists of three rectangles, a small rectangle in a larger rectangle within a larger rectangle. These rectangles are connected by 4 lines, 2 vert...
I have a VC 6 app, and I want to be able to parse an excel spreadsheet from my app. The data in the spreadsheet will always have the same format. The format is as follows: a double precision...
I am getting version information of a file using GetFileVersionInfo. After calling this function I got all the parameters in VS_FIXEDFILEINFO.
In this I am not able to get all the version i...
Hi,
My primary question is, given the attached error message, and assuming that there is no debug info in the exe throwing it, and nothing written to the event log, where can I start trying...
I am trying to compile programs that were made in visual studio 6.0 with the new .net libraries in visual studio 2003.
Everytime I try to compile, most of the files work but one of them kee...
Hi,
I have a user that keeps getting the following error, when she logs off or logs on the computer.
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\Program Files\HP\Pr...
hio=]
i need a buffer to read binary data into .so i will ues this method:
===========================
System.Int32 Read(System.Byte[] buffer, System.Int32 index, System.Int32 count)
...