|
CComPtr Hello everyone, In the book ATL Internals, it is mentioned, the properties of CComPtr is, -------------------- Release the encapsulated interface pointer when the class destructor executes; Automatically releases its interface pointer during exception handling, ... -------------------- They both means inv... 4 Apr 2008 03:35
A2WBSTR Hello everyone, 1. BSTR is always wide character buffer. I do not know why the name of the macro A2WBSTR is so special and add a needless 'W'? For others dealing with BSTR, since it is already wide character buffer, 'W' is no need. Like W2BSTR, and A2WSTR. 2. What is differences between A2WBSTR and... 4 Apr 2008 04:09
How to eliminate CR (carriage return) character We are trying to output a file with LF (line feed) only (ascii char 10), but we get also the CR (carriage return) character (ascii char 13). Here is our program: int _tmain(int argc, _TCHAR* argv[]) { FILE *fp = fopen("tmp.bin", "w"); char c1 = 10; fprintf(fp, "line1 %c line2", c1 ); return ... 5 Apr 2008 19:23
symbolic 'link name' and ordinal number - the same? I am exporting a number of functions from a plain vanilla Win32 DLL. The consumer (a kinda interpreter) expects the symbol name of the exported function to be provided. Now, the problem is that I am exporting my functions by ordinal number, and with no name - I have not come accross the term 'symbolic link nam... 3 Apr 2008 06:18
msvcrtd.dll, msvcrt.dll I compiled a project in debug and release mode, and checked what dll's are appended in each case using process explorer. While mfcXXu.dll is replaced by mdfXXud.dll in debug mode, msvcrt.dll is still attached to debug mode process and additional msvcrtd.dll is attached. Is it correct behavior? Why doesn't msvcrtd... 7 Apr 2008 09:20
cout why when I use cout, I must put - using std::cout; #include <iostream> using std::cout; if i look at iostream, it seem cout is defined in iostream - __PURE_APPDOMAIN_GLOBAL extern _CRTDATA2 ostream cout; I also see _STD_BEGIN _STD_END are those label in C++? ... 7 Apr 2008 09:20
<string> vs <string.h> it seem to me that when doing include - #include <string.h> - is CRT #inlcude <string> - is C++ standard library Is that true those header with .h extension is CRT and those without extension <string> is C++ standard library headers? ... 3 Apr 2008 02:23
Init COM interfaces * Alex: The only documentation I have is some example in VB: Dim oI As Object oI = CreateObject("SomeCOM.SomeInterface") oI.Init() [snip] But this VB example doesn't give me any idea about this COM class name. So my question is - do I have to ask this COM distributors for some additional ... 2 Apr 2008 19:07
partial specialization Given: template<typename T1, typename T2> struct A { void foo() {} }; we can specialize the A::foo() as follow: template<> void A<double, int>::foo() { } or we can partially specialize A template<typename T> struct A<T, double> { void foo() {} }; Yet, according to VC8 and comeau, we can... 4 Apr 2008 14:04
check file opened or not? Hello everyone, On Windows platform, which API could be used to check whether a file is opened (either by other thread or process or even the same thread) or not? C++ is fine. thanks in advance, George ... 4 Apr 2008 03:35 |