|
First
|
Prev |
Next
|
Last
Pages: 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
#pragma to control "Use Precompiled Header" option? Is there a way to flag a C++ source file so that the precompiled header is not used? I would like to do this within the file itself, so that I don't have to change the setting for each project that uses the file. Thanks, Frank ... 4 Apr 2008 09:33
I have a VB project, but VC/COM question(s) In short, I need help with using COM in a VB App. But the people in the VB forums, while helpful, are not able to help, so far. I am writing a VB App that is supposed to talk to a VC app (exe) using COM. I do not have access to the VC source code, but I was supplied the VC source code for an example which can... 30 Mar 2008 12:55
compare text on a button, to a string I am using visual c++ 2003 i believe. I created a new win32 application, and put 1 button on the form and changed it's text to "Start". and this code does not work: private: System::Void button1_Click(System::Object * sender, System::EventArgs * e) { if (button1->Text == "Start") ... 27 Mar 2008 14:16
Automatic inclusion of headers in C++ Can anybody explain how to tell what headers from the Standard C++ Library are automatically included with other headers, e.g. when <iostream> is included, you also get <istream> and <ostream>, but I don't see where that is explicitly stated in the MSDN Library. -- J150 ... 27 Mar 2008 14:50
C preprocessor directive #if Greetings, I am using C and in several places I want to select the code to be compiled base on the size of a typedef. Though the snippet below does not work it may illustrate my desire. Thanks, gtb #if sizeof(MY_TYPE) = sizeof(int) #define INT #endif .... .... #ifdef INT //Use int based printf. #el... 27 Mar 2008 11:31
Exception-Safe Copy Assignment Hello everyone, http://www.gotw.ca/gotw/059.htm The reason why we can not write an exception safe copy assignment for class Widget, is because (suppose we assign t1_, then assign t2_) if T1::operator=() does not throw exception, and T2::operator=() throws exception, then since all operations on T1 may thr... 27 Mar 2008 10:24
malloc()-free() and thread affinity Hi, I recently developed a small test application to test multithreaded behavior of malloc and free. The test application has two threads, one allocates memory and the other deallocates that recently allocated memory. I am a little surprised after this test : free() does not actually free the memory which is... 27 Mar 2008 09:50
Utility class that disallows dynamic creation Hello! I've created a class whose purpose is to disallow dynamic creation, sort of like boost::noncopyable. I want to make sure that clients of my classes do not use them in an unsafe way. So I disable operator new and address-of. We have a lot of code here that doesn't use RAII, uses new/delete scattered throug... 27 Mar 2008 05:51
COM message pump Hello everyone, Two questions about message pump in COM STA. 1. The term "message pump", means message queue? Pushing message into the message queue? Or retrieve message from the message queue? 2. What is the impact if the message pump is not alive in STA? It will block method invocation from other apart... 4 Apr 2008 10:40
HRESULT is HRESULT only used in COM interface programming? I see this quite often in a COM module call. ... 31 Mar 2008 14:39 |