How can I create a map file with line numbers in Visual C++ 2005?
I can find information to do what I want in VC++ 6.0 at codeproject.com, but the options it suggests (e.g. /mapinfo:lines) are not supported in VC++ 2005. ...
I can find information to do what I want in VC++ 6.0 at codeproject.com, but the options it suggests (e.g. /mapinfo:lines) are not supported in VC++ 2005. ...
Hi all, in C# it is possible by using reflection to determine parameter types of some method as well as class members (method, properies..). I suppose that this is possible because of IL and .NET technology, right ? If so is it possible to use reflection or some similar technique for C/C++ writen under Visual studio 2005/2008/2010 .NET...
Im trying to compile but im getting these errors: 1>.\item.cpp(123) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) 1>.\commands.cpp(1372) : error C2057: expected constant expression 1>.\commands.cpp(1372) : error C2466: cannot allocate an array of constant size 0 1>.\commands.cpp(1372) : error C2...
Hey, I've got some problems with a pointer void getPartOfString(const TCHAR * wholeString) { const TCHAR * pPointer = NULL; pPointer = _tcsstr(wholeString, searchedString); //searching for a special string in string pPointer += _tcslen(searchedString); //set pointer to the beginning of the string wanted //here I want t...
Hi, I would like to have this x86 ASM code ported to C or C++, as I don't understand ASM =) Searching Google it seams Relogix and IDA Pro can do it. But I don't suppose they are cheap, given I only have this one source. Understanding the math or the algorithm how it works would be just as good, as I am going to use OpenGL anyway. Are...
I'm having trouble including standard header files like iostream.h and fstream.h. On my system, under usr/include/c++/4.3, none of the files have the ".h" extension (for example, it's just "iostream" not "iostream.h"). That would be fine and dandy, but I'm trying to use another library, DCMTK, which does things like #include<iostream.h>....
Hello, I have a small question about static variable and TypeObjects. I use the API C to wrap a c++ object (let's call it Acpp) that has a static variable called x. Let's call my TypeObject A_Object : typedef struct { PyObject_HEAD Acpp* a; } A_Object; The TypeObject is attached to my python module "myMod" as "A". I have defined ...
In the below code the fputs(...) throws an assert when running on Windows Server 2008. I don't have this problem on a Vista or XP machine. I'm at a loss as to what is causing it? The assert is: Stream != NULL It seems to be random too, as sometimes it seems to succeed... as the log files get created. Can anybody help? void DLog::L...
Is the a way to compare two CGPDFDictionaries? There is a function memcmp, but it doesn't work for me, because dictionaries are in different memory cells. ...
I am reading a program which contains the following function, which is int f(int n) { int c; for (c=0;n!=0;++c) n=n&(n-1); return c; } I don't quite understand what does this function intend to do? ...
Dear Sir I have written a driver, it works fine in Administrator account on Win XP. But my final product is to run on non admin account. I am running it on non admin account for testing. But driver is not able to load. CreateFile() function returns error no 6. which means INVALID_HANDLE. Please reply ASAP. ...
I recently read in a magazine that there is a new commercial developer tool for Windows which monitors a C++ program's execution and creates traces for visual inspection. I, however, cannot remember the tool's name (it is not Insure++ and also not BugTrapper). In the resulting trace, you see every code line that was visited, you can see ...
I have a C# method that is calling a C++ method. The C++ method uses WMI, so it calls CoInitializeEx(0, COINIT_MULTITHREADED) and then CoInitializeSecurity etc... before making the WMI select. My Problem, CoInitializeEX if failing with code 2147417850 (RPC_E_CHANGED_MODE) I tried to create a new STA thread from c# and call the c++ meth...
I have the following code. #include<iostream> using namespace std; int main() { int result=0; _asm { mov eax,2 mov eax,result; } cout<<result<<endl; return 0; } I know assembler well but why doesn't the program output 2 to the screen? ...
Hi, So I'm using the class Mat from opencv in a program I'm writing. Mat looks something like this: class Mat { public: Mat(int width, int height, int type); template <typename T> T getElt(int x, int y); int depth(); ... } The type in the constructor specifies whether elements in the Mat are float...
while calling and defining a function how to use a 2-dimensional matrix in that function? ...
I'm looking for a pattern to organize header files for multiple platforms in C++. I have a wrapper .h file that should compile under both Linux and Win32. Is this the best I can do? // defs.h #if defined(WIN32) #include <win32/defs.h> #elif defined(LINUX) #include <linux/defs.h> #else #error "Unable to determine OS or current OS is n...
I'm working on a section of code that has many possible failure points which cause it to exit the function early. The libraries I'm interacting with require that C-style arrays be passed to the functions. So, instead of calling delete on the arrays at every exit point, I'm doing this: void SomeFunction(int arrayLength) { shared_ptr...
Hello! I was looking for some suitable 2D element container. What I want is the ability to iterate through every element of the container using, for example BOOST_FOREACH and I also would like to have an ability to construct subview (slices / subranges) of my container and, probably iterate through them too. Right now I am using boost:...
I'm working on a program that automates the use of this piece of software, EPIX XCAP. In Capture(), it snaps a picture, opens up the File menu, open up the save dialog, but then with it reaches the Tabs (to navigate to the file name box in the save dialog) it doesn't do them. I can tab through it manually well enough, and I tested the ...