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: *

  • Users: AndyRocks
  • Order by date
  1. AndyRocks

    BSTR to String

    1) Assuming you are doing so in a console application, you can also use the ATL conversion macros: #include <atlbase.h> #include <atlconv.h> ... int main() { USES_CONVERSION; // this is necessary BSTR strHello = SysAllocString(L&quot;Hello&quot;); std::cout<<OLE2CA(strHello)<<std::endl...
  2. AndyRocks

    PROCESSENTRY32 undeclared identifier

    Try putting a #define _WINNT_WIN32 0x500 before the other includes. This makes your program incompatible with Win95/98/NT 4.0 but exposes newly introduced APIs in Win2K. If this works, then this is the way to do it. Cheers, Andy
  3. AndyRocks

    Unicode message

    I am just inquisitive so asking this question. What value does the dataLength property of your message hold? If this is 1 then we have a problem. How are you reading the message. I mean if you use MQFMT_STRING then there might be a problem. But if the dataLength property gives you correct...

Part and Inventory Search

Back
Top