First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Template classes with virtual member functions
Hi there, This is a cross posting from the C++.lang.Moderated group, as I've recently got a hunch that this problem may be visual studio specific... So I'd like to hear what you have to say... I'm trying to get the following code to work: [begincode] class ReferenceBase { public: virtual ~Referenc... 11 Mar 2010 23:35
Performance of exported template classes
Hello all, this may be a difficult to explain problem, and I need some assembly to show the difference. In a DLL we export some STL containers to minimize code bloat, like: template class __declspec(dllexport) std::vector<int>; typedef std::vector<int> int_vector; In a simple test probgram I see now a h... 14 Mar 2010 19:54
Binary Diff Utility
I am looking for a microsoft or public domain tool that can diff two binary files (exe, lib or DLL) and able to concur if they are identical or not *ignoring* the header details such as time stamps. The idea is to find if two binary files built during two different time period are identical. The binary files are... 12 Mar 2010 01:47
throwing an exception... on behalf of another thread
Hi all, this is a question specific to windows. we'd like to induce a running thread to throw an exception; the following fragment should give the idea: struct bomb_explosion {}; void explode() { throw bomb_explosion(); } void compute_result() { TIME_BOMB t(60, &explode); // after 60... 11 Mar 2010 19:08
problem with bind
The following doesn't compile in VS2008: #include <functional> struct foo { void operator()() { } }; int main() { foo o; std::tr1::bind(o)(); } Has this been fixed in VS2010? /Leigh ... 8 Mar 2010 13:04
Why doesn't VS2008 detect this warning
A 1993 Borland compiler finds this problem (i>=0 always true) but VS2008 doesn't? for (unsigned i = strlen("test") - 1; i>=0; i--) { .. do stuff.. } ... 8 Mar 2010 01:03
dot net library from unmanaged C++
A vendor has supplied me with a DLL and .LIB of a C++ .NET wrapper around their C API. No header file. My existing app is all unmanaged C++ with no special MS libraries (like ATL and MFC). How do I hook this into my existing solution? With an unmanaged library I'd just #include the header and add the library ... 11 Mar 2010 19:08
Default intialization without default constructor
Hello, Recently I noticed that VC++ 2008 compiler can zero initialize a class instance with the following code: class X { public: int n1; int n2; }; X x1 = X(); // X::n1 and X::n2 are zeroes. However, if at least one member of the class is not public, then no initialization occurs whatso... 4 Mar 2010 18:05
Using pthreads in VS .NET 2003
Hi all, I'm having some problems with my program in VS .NET 2003. I initially wrote a module that uses the pthread library to create a number of threads to process something. This runs correctly in VS .NET 2003. Then this module was used by someone else and integrated into another larger program. I'm not sure ... 3 Mar 2010 22:01
Force loading of DLL
Hi all, as far as I know static variables in a dll are initialized when the dll is loaded. I have the following situation: my executable links with a dll from which I use nothing explicitly. When the statics are initialized, a function is registered with a map in another dll. If I don't call a function from the ... 1 Mar 2010 15:20
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19