Hi there,
I need to check a FTP server for RFC conformance. Can anybody tell me if some standard procedure is defined to proceed to that check ?
Thanks for advice !
If all your objects are accessed through a IDispatch based interface, it makes sense. Otherwise, you'd better use LPUNKNOWN (ie IUnknown *) which works with any interface.
Hello,
I noticed that the best translation from the IDL declaration
[out] BSTR *pbstrEtc... was BSTR **pbstrEtc in the C++ method declaration.
The drawback is that, in the class view tree, the method is no longer related to the interface node, but surprisingly, it suits the actual parameter...
how do you create the arrays ? if it is whith something like "myArr = new myType[mySize]", then you must use
"delete[] myArr" and not "delete myArr".
If you use "calloc", then you should use "free", and so on.
Hi,
The simplest way is to use arithmetics :
unsigned char char1 = (unsigned char) (theShort & 0xFF);
unsigned char char2 = (unsigned char) ((theShot & 0xFF00) >> 8);
Or use an union this way :
union
{
short theShort;
unsigned char theChars[2];
} theUnion;
theUnion.theShort =...
Debug MFCs fills memory bytes with 0xDC when space is allocated (e.g. before calling the constructor of an object)
and with 0xDD when memory is freed (e.g. after the destructor of the object exits.)
maybe, check your objects life cycle ?
...or flame me if you don't use MCFs :)
Hope it helps...
I'd rather write :
while (strcmp(trans.name, "exit") != 0)
{
// my code
}
or
do {
// My code
} while (strcmp(trans.name, "exit") != 0);
but it's hair cutting...;)
I once solved this problem (found the clue in MSDN).
You must add some extra control character for that, like \r.
Wait until tomorrow, I'll get the sample code from an archive...
As far as I know, VC++ fully deals with ANSI C++ code, and the MSDN doc explicitly emphatizes what is "Microsoft Specific".
If you want to write portable C++ code in VC++, just take care of the MFC use. Apart of that, it is a good VC++ compiler and integrated environment.
(Written by...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.