I have a main application in VC++ and have a dll called AdminXA.dll (which is not part of the main project but .sln is available)
The main application calls functions from this AdminXA.dll . How can I debug the functions available in AdminXA.dll from the main app?
Note : AdminXA.dll is COM based and i can see AdminXA.tlh , .tli in Main Application's debug folder . And am able to debug till .tli file
This code works perfect without exceptions when calling it from the main appthread, but when called on a working thread (AfxBeginThread) httpOpenRequest gives a valid handle and the function works but a bunch of exception occures during the call and afterwards GetLastError returns ERROR_INSUFFICIENT_BUFFER.
I know I shouldn't be worried if I get a valid handle but anyway....
// SEND REQUEST
CHECK_BOOL(::HttpSendRequest( hHTTPRequest, // handle by returned HttpOpenRequest
NULL, // additional HTTP header
0, // additional HTTP header length
NULL, // additional data in HTTP Post or HTTP Put 0)); // additional data length
I'm new to C++, but have a solid grasp of pointers and DMA in other languages.
My main issue is that i'm trying to figure out how to do things in an enviroment where i have no base class libraries, and i'm also trying to get my head around the layout of C++ files etc. I have a reasonable grasp of the basics, but am totaly lost as far as collection structures go.
As a learning exercise i am looking to make an arraylist structure. I've had a look around but not found any code that really fills my needs.
* Firstly the structure will contain an array, with count and length data.
* The array will be an array of pointers. (void pointers)
* When the Count value reaches the Length value, a new array is constructed that is scaled up from the origional by a given value.
* The items are shifted across to the new array.
* The origional array is deleted and set to null.
* Add some memory shuffling stuff to add / remove. (I can handle this if i get the rest working)
If anyone can direct me to some source code that will either explain it all or give me enough info to get working on this, that'll be a great help.
Also I've seen some code like this:
*char a; //Or whatever object we are refferencing<br />
//Assign some stuff here<br />
delete a;<br />
a = NULL;<br />
But there seems to be no NULL keyword. I know it's just setting the pointer to nothing, which should genericaly be 0. Is this an actualy keyword in some version of C++, or is it standard practice to have a global constant 'NULL = 0;'?
What you are basically trying to do is a sort of memory heap, right ? C++ coders normally do not handle collection by themselves, this would be reinventing the wheel, though I can understand that it can be educational. We normally use STLs, or collection provided by the windows API (which is not relevant for you, since you do not want to rely on base classes).