I just discovered that when Language Extensions are disabled in MSVC, you get this error if you try to include boost/thread/thread.hpp:
fatal error C1189: #error : "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
It seems that when Boost detects that language extensions are disabled (_MSC...
I have automatic generated code (around 18,000 lines, basically a wrap of data) and other about 2,000 lines code in a C++ project. The project turned on the link-time-optimization operation. /O2 and fast-code optimization. To compile the code, VC++ 2008 express takes incredibly long time (around 1.5 hours). After all, it has only 18,000 ...
my mfc application created in visual studio 5 running on windows server 2000 sp4, i create a release for it and try running it win xp slp2. it gives me application failed to initialize properly (0xc0150002)
i have tried following things
-Install Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) the one that comes within the ...
Hi; I'm trying to build a C++/CLI executable to which I statically link ffmpeg (libavcodec, libavformat, libavutil & swscale). It works fine if I build it normally (without /clr, so no CLR support), it works. However, when I add CLR support, it won't start up with a 0xc000007b. A "Hello World" C++/CLI app runs fine, though.
Supposedly t...
Hi,
First of all I want to make clear that 'm all new to C++, so this might be a simple and somewhat obvious question. In the C++ book I'm reading called C++ Primer, a class is defined by writing:
class classname{
public:
private:
};
However, in VS2008 the compiler didnt like this. But by adding public ref before class, as in:
pub...
Windows 7 has Heap randomization and Stack randomization features. How could I manage it? How they are affects performance of my application? Where I could find more information on how it works?
I'm using Visual Studio 2008 for developing C++ programs. I can't find any compiler's options for that features.
...
I must be missing something really obvious, but for some reason, the command-line version of the Microsoft C++ compiler (cl.exe) does not seem to support reporting just its version when run. We need this to write makefiles that check the compiler version a user of our tool has installed (they get makefiles with code they are to compile ...
Python rather stupidly has a pragma directive in its include files that forces a link against python26_d.lib when the DEBUG preprocessor variable is defined. This is a problem because the python installer doesn't come with python26_d.lib! So I can't build applications in msvc in debug mode. If i temporarily #undef DEBUG for just one file...
I'm working on a command prompt roguelike in VisualC++ 2008, and everything compiles all fine and dandy, but there's one glaring issue that I have with it.
Why is it that if I change the name of the exe, the program fails completely? I don't think that's supposed to happen with most programs
...
As you might know, Microsoft recently deployed a security update for Visual Studio: KB971090.
Among other things, this updated the Visual C Runtime DLL from version 8.0.50727.762 to 8.0.50727.4053.
So after this update, everything I compile that uses the runtime dynamically linked, gets their dependencies updated to the new runtime.
O...
Hi All,
We are migrating our software system developed in C++, MFC, ATL/COM (VS 2008 IDE) from WinXP to Windows Vista. Can anybody please provide any reference material that details information on the possible code issues that could arise during the migration? I found one at the DDJ site
http://www.ddj.com/windows/199001130;jsessionid=...
For a C++ project that I'm developing in Visual Studio 2005, I would like to disable the TRACE output option while running the code in debug mode. I have searched the internet about how to achieve this, but no luck. Is this even easily achievable? If so, how? Thanks in advance.
Update #1:
#define USETRACE 0
#if !USETRACE && DEBUG
...
Say I have a static C++ lib, static.lib and I want to call some functions from a C++ shared lib, say shared.lib. Is it possible?
Now assume that I have another shared lib, say shared2.lib which links to static.lib but does not link to shared.lib. Does the linker automatically link shared2.lib to shared.lib in this case?
I am using Micr...
I am using a external library of libharu-2.0.8, this is a open source pdf library.
This lib have a lib file called libhpdf.lib and few header files
I have written a simple code to use this library. I am getting following errors.
libhpdf.lib(hpdf_streams.obj) : error LNK2001: unresolved external symbol _deflateEnd
libhpdf.lib(hpdf_st...
My company uses MSVC6 for all development. I've recently been involved in a project to upgrade to VS2008, so I haven't touched the older compiler in several weeks. This morning, I updated the old compiler's SVN checkout and ran a build, and suddenly every time it finishes building a project, it beeps the PC speaker. This is rather ann...
I have a class called MODEL in which public static int theMaxFrames resides. The class is defined in its own header file. theMaxFrames is accessed by a class within the MODEL class and by one function, void set_up(), which is also in the MODEL class. The Render.cpp source file contains a function which calls a function in the Direct3D.cp...
Hello :)
I'm getting started with Boost::Test driven development (in C++), and I'm retrofitting one of my older projects with Unit Tests. My question is -- where do I add the unit test code? The syntax for the tests themselves seems really simple according to Boost::Test's documentation, but I'm confused as to how I tell the compiler to...
HI,
Once we accept an input from a keyboard, How can we add that character into a string in VC++?
Can anyone help me with this?
...
I'm trying to create a text editor in vc++, without using mfc's edit class. I've managed to capture the key pressed using WM_CHAR message, but now how can i add it into a string(or any character handling data type) so that i can display it in my client area using TextOut() or functons similar to it???
...
I have requirement to print log data continuously whenever an event trigger (Without showing print dialog, using default printer). Event may occur twice a second or minit or hour. Also i don`t bother about printer status. example out of paper, communication problem. Printer should not leave empty page. Example event 1 have 4 lines of dat...