Late Edit I tagged this as a C# question as well as C++ because the problem presents itself in both languages, and solution if shown would most likely be in the C# (the majority of the market).
I have been developing an application under .net 2.0 (C++ to be specific, but irrelevant).
This application uses a custom derived datagridview...
If I start my self written app from the explorer it works fine.
If I try to start it in visual studio(F5), it crashes at some point.
It is also not dependant on the working directory!
It is quite annoying, because I cannot debug that way.
(I could try attaching to the process after launch, but....)
Can anyone point me into a direction...
I have made a dll that compiles fine in 32bit mode, but when compiling in 64bit mode (both on a 32bit box cross compiling and on a native 64bit box) I get the above error.
The symbol that it is complaining about are the following:
"struct return_info_ * __cdecl patch_file(char *,char *,char *)"
I am new to C++ but I think I have defin...
Does any one know if there is a way to dump only a chunk of memory to disk using VS? Basically, I want to give it an address and a length, and have it write the memory to disk. That way I can do a binary diff.
Thanks.
...
What setting(s) in a Visual Studio 2005 project could cause the build to not add the /dll argument to the linker command line?
Background:
We have a large VC6 project that I'm porting over to VC 2005. This project contains a number of MFC extension DLLs, and I'm running into the following linker warning when I run a build:
warning LN...
Hi All,
When I try to instantiat a CFileDialog object it shows both the folders and files. How do you create a CFileDialog that browses for folders alone?
Thanks...
...
Hi,
I want to create some report in tabular format in VC++, I thought of using the crystal report
I am using VC++ 6.0 and am not using any database. I just wanted to transfer my program Data into tabular format.
My question are as follows
1>How to install the crystal report in VC6.0?
2>How to transfer the program Data i,e object state t...
How to connect with MySQL from Visual C++ Microsoft Visual Studio 2008 ? I tried googling and found solutions all of which ended with fatal errors like linker errors,... etc. Please explain (or provide a link) step by step, including prerequisites (with links) and all details. I don't need any query examples.. just connecting to MySQL. T...
The documentation tells me that /D command-line switch can be used to do this, like so:
CL /DDEBUG TEST.C
would define a DEBUG symbol, and
CL /DDEBUG=2 TEST.C
would give it the value 2.
But what do I do if I would like to get the equivalent of a string define, such as
#define DEBUG "abc"
?
...
I need to create a combo box in MFC /VC++ in which user can enter or select values in between 0 to 9999 only.
How can I acheive this functionality.
Please Help
...
Hi,
I am trying to build a program using the command scons compiler = msvc. During this action a link error appears: LNK1181: cannot open input file 'QtCore4.lib'. I have installed Qt for Windows from http://qt.nokia.com/downloads (the free version) and tried to find the requested lib file, but only found the same dll file.
Any advice ...
Hi
I have my visualstudio vcproj file at c:\vsproj\example\test\test.vcproj
under this path i have some other files like e test.cpp file and also a dll test.dll is there.
so totally under tha path c:\vsproj\example\test i have
1) test.vsproj 2) test.dll 3) test.cpp
normally to get the cuurent folder path we use ".\" so i have appli...
I am just starting to use Wix and would like to use heat to extract the outputs from my Visual C++ projects to source Wix files. This seems to work great for my C# projects, however, whenever I run heat on a C++ project I get an error:
heat project MyProject.vcproj -pog:Binaries -cg MyGroup -nologo -out MySource.wxs
heat.exe : error HE...
I keep receiving a C2664 conversion error in visual studio
It tells me that it can't convert parameter 1 from const std::string to std::string&. I tried adding/removing the const in the stringToWstring prototype and in the function itself and the error still comes up.
wstring hexval = buff.substr(buff.find(L"hex(2):"));
wstrin...
Does anyone know why MFC's CWnd::CreateControl does not appear to successfully create some ActiveX controls, for example VBA's Label control. (PROGID: "Forms.Label")?
I suspect it can't support windowless ActiveX controls, can anyone confirm this? I have workarounds (ATL), I'd just prefer to use a CWnd.
...
I noticed if a create an ActiveX control with an MFC CWnd and call ShowWindow(SW_HIDE) or SetWindowPos to hide the window the internal m_hWnd of the class is set to NULL.
Debugging into MFC revealed that some sort of "OLE Verb" was being executed on the object, which I think indirectly is nulling out my handle.
Anyone know why?
Modify...
Hi there,
I have an annoying problem with the debug mode of Visual C++ 2005. My scientific program uses FFTW3 library which is a FFT transformation calculation library. Sadly, there is no official VC++ pre-compiled version of FFTW3 library. More sadly, compiling FFTW3 from source code with VC++ 2005 is very hard. The FFTW3 official webs...
I have the convenient object factory template that creates objects by their type id names. The implementation is pretty obvious: ObjectFactory contains the map from std::string to object creator function. Then all objects to be created shall be registered in this factory.
I use the following macro to do that:
#define REGISTER_CLASS(cla...
hi
i have got a ScreenCameraSDK and it comes with a 11kb dll file, it has a documentation too which lists the functions which can be used. It says
ScreenCamera SDK ActiveX Reference Documentation
ActiveX Reference
The ActiveX ID on the system is: ScreenCameraSDK.RemoteControl
Every method on the interface returns FAIL or SUCCES...
Hello,
I obtained three dimensional data from my optical system in Visual C++.And I want to show this profiler on windows form application.Is there any special library you could advise to me?And How can I customize this library in Visual C++.
Could you help me please?
Yours Sincerely....
...