Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jpoggio

    FTP conformance testing

    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 !
  2. jpoggio

    Creating a vector of COM object pointers

    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.
  3. jpoggio

    (MSVC/COM) Allocating BSTR strings?

    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...
  4. jpoggio

    Silly pointer question

    Another tip would be using "strdup(...)" : it allocates the exact memory amount to store a null terminated character string an copy it.
  5. jpoggio

    Assertion failures?

    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.
  6. jpoggio

    Date algorithm !!!

    You can convert them into COleDate and use - operator to get the time span as a COleDateSpan object.
  7. jpoggio

    cutting up variables.

    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 =...
  8. jpoggio

    Help with Crazy Error Message

    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...
  9. jpoggio

    Want to use the word exit to break from a while statement

    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...;)
  10. jpoggio

    Main Titel bar without the name of the file that is opened

    If its is a doc/view framework,the the documentxx is generated by the CxxxDoc base class. Just change the document name in the CxxxDoc constructor.
  11. jpoggio

    CString problem

    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...
  12. jpoggio

    Can I use MSVC++ for C++ progects?

    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...

Part and Inventory Search

Back
Top