i know you can make two objects equal to each other when one of them is being declared. i tested this in my program. but when i went to use a assignment statement it freaked out. Can you make two objects equal to each other with a assignment statement or can you only do that when one object is being declared?
...
Hi all,
I have a structure and a member of it is char* * (2d pointer). I allocate space from EXE1 and call EXE2 with the data. I use memcpy to get all data on EXE2. The memory address on both EXE is the same (lets say 0x013740b0), though the data of char** on EXE2 are not present. How can I retrieve the data on EXE2?
Thanks in advance...
Can you suggest what factors can cause an C++ Builder's 2009 linker error "Unresolved external '__fastcall System::TObject::NewInstance(System::TMetaClass *)' referenced from XXX.obj"?
We have a set of Delphi files (pas) and set of C++ Builder files (hpp and obj), which was generated from these pas files.
Set of files is copied to anot...
Does it? If yes, where can I get the documentation for it... if not, then which would be the best alternative?
...
What's the difference between the following two declarations?
virtual void calculateBase() = 0;
virtual void calculateBase();
I read the first one (=0) is a "pure abstract function" but what does that make the second one?
...
I am trying to build a JVMTI agent using the g++ command on Snow Leopard and I get the following error:
$ g++ -o agent.so -I `/usr/libexec/java_home`/include agent.cpp
Undefined symbols: "_main", referenced from: start in crt1.10.6.o ld:
symbol(s) not found collect2: ld returned 1 exit status
I am a total novice when it comes to gcc...
I've been learning C at Varsity for just shy of 2months now, and next year we'll be moving on to C++.
Are there any habits I should get into with my C programming which will aid a transition to C++ in the future, or is it best to think of them completely separately ?
When you learnt C then C++, did the way you coded in C change in an...
I'm currently writing a wrapper library for windows mobile in C/C++. I have to implement and export the following functions:
void start_scanning();
int wait_for_scanning_result();
void stop_scanning();
start_scanning() is called to start the scanning process. wait_for_scanning_result() will wait until a result is available and return ...
I am converting an extremely large and very old (25 years!) program from C to C++.
In it there are many (very very many) places where I access a global one dimensional UBYTE array using a variety of integer indexes. Occasionally this index may be negative.
I sometimes, but not always, trapped this case and made sure nothing went wrong,...
I run my NT service on an Intel Core2 based Win2k3 machine where I need to iterate through all logical CPUs (all bits in process affinity). To do so I call GetProcessAffinityMask() to retrieve the system affinity mask and then switch the process to each processor in turn:
DWORD systemMask;
GetProcessAffinityMask( ... &systemMask );
D...
I need to merge pst file with exchange server mailbox.
I want to iterate searchkey over the exchange server mailbox , so that i can able to merge only unavailable mails with exchange server.
Is there any faster method available>???
Am using c++ with mapi for exchange mailbox merging.
I need c++ code for this implementation...
Thanks...
Hello,
I have a webcam pointed at a table at a slant and with it I track markers.
I have a transformationMatrix in OpenSceneGraph and its translation part contains the relative coordinates from the tracked Object to the Camera.
Because the Camera is pointed at a slant, when I move the marker across the table the Y and Z axis is updated, ...
I've never developed using Test Driven Development, and I've never used Mock Objects for unit testing. I've always unit tested simple objects that don't incorporate other aspects of the application, and then moved on to less simple objects that only reference objects that have already been unit tested. This tends to progress until the f...
Will the isSelect-method of QSqlQuery return true when a stored procedure containing a SELECT-statment is executed on sqlserver?
...
I currently have a program where my main code is in a file main.cpp.
Main.cpp includes a header file "class.h" that declares a class that is used within main.cpp.
Also in main.cpp I have function declarations that declare the functions I use within main.cpp.
The code for these functions is in a separate .cpp file fucntions.cpp.
Like ma...
Hi,
How is it possible to draw an overlay over an game with DirectX 9 or 10?
I found code with depricated DirectShow code, but it will not run.
Thanks for tipps.
...
This is a very frustrating error message in Qt Creator: ’XYZ’ does not name a type. This usually means that there is an error in the class XYZ that prevents the compiler from generating the type, but there are no additional hints as to what went wrong.
Any suggestions?
...
Why am I getting this warning in Qt Creator: ` inline function ‘bool Lion::growl ()’ used but never defined?
I double-checked my code, and have a declaration
inline bool growl () in Lion (lion.h)
and the corresponding implementation in lion.cpp:
inline bool Lion::growl ()
What’s going on?
EDIT: My assumption has been that it is l...
I have been programming exclusively in C for 25 years but have never used C++. I now need to learn the basics of C++ programming. Can anyone recommend an online tutorial (or failing that a book) that would be most suitable for me.
Thanks.
Edit: I actually needed the C++ purely for the purposes of adding a couple of dirty hacks to a huge...
There appears to be no easy answer to this, but are there any assumptions that can be safely made about when a static class field can be accessed?
EDIT: The only safe assumption seems to be that all statics are initialized before the program commences (call to main). So, as long as I don't reference statics from other static initializa...