When switching from MSVS 6 to MSVS 2008, what major differences should I look for when testing the software? I'm coming from more of a QA perspective. We have two programs that work closely together that were originally compiled in Visual C++ 6. Now one of the programs has been compiled in Visual C++ 2008 in order to use a specific CD wr...
A straight compilation of example http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio/tutorial/tutdaytime3/src.html results in a runtime null pointer exception. Stack trace points to the buffer_debug_check destructor which contains this comment:
// MSVC's string iterator checking may crash in a std::string::iterator
// object's d...
When building an app. VS will complain of exceeded error count:
fatal error C1003: error count exceeds 100; stopping compilation
Is there a way to increase the limit?
Thanks in advance,
- Oleksii Skidan
...
I know that boost or compiler should be last to blame, but I can't see another explanation here.
I'm using msvc 2008 SP1 and boost 1.43.
In the following code snippet execution never leaves third BOOST_FOREACH loop
typedef Graph<unsigned, unsigned>::VertexIterator Iter;
Graph<unsigned, unsigned> g;
g.createVertex(0x66);
// works fin...
Hi,
Is it possible to run MATLAB functions from within Python?
I search the internet, I could only find PyMat. The bad thing is the compiled version only supports Python2.2 and I am using 2.6. So I tied to download the source code, so I can compile it for myself. But I cannot compile it, VC++ express seems not to have the necessary funct...
Im using:
bool GetOS(LPTSTR pszOS)
{
OSVERSIONINFOEX osve;
BOOL bOsVersionInfoEx;
ZeroMemory(&osve, sizeof(OSVERSIONINFOEX));
osve.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osve)) )
return false;
TCHAR buf[80];
StringCchPrintf( buf, 80, TEXT("%...
I'm using VisualAssistX for some refactoring tasks in VC++2008.
When I autorename a class, I want the filename to also be updated automatically. Any addon that does that?
(Yes, I do only put one class per cpp/h pair)
...
An exception got thrown from a lib I use in my project. As I looked at the callstack, I clicked at the lib function that threw the exception. An "Open File" dialog popped up, prompting me to tell it where the lib source is located. Now clearly something is wrong. This should happen automatically somehow. How do I tell VS where to look fo...
Suppose I'm writing a template function foo that has type parameter T. It gets an object of type T that must have method bar(). And inside foo I want to create a vector of objects of type returned by bar.
In GNU C++ I can write something like that:
template<typename T>
void foo(T x) {
std::vector<__typeof(x.bar())> v;
v.push_b...
I have a few global vars I need to set the value to, should I set it into the main/winmain function? or should I set it the first time I use each var?
...
hello!
what i'm trying to do is get the free amount of physical memory allocate it and than manage it ( resizing it or delete it ) depending on what further calls to GlobalMemoryStatusEx return.
and the problem : it works on 2 PCs with win 7 x64 one with 2G Ram ( on witch i was able to allocate like 1.3 GB) , the other has one 1GB RAM...
Hopefully someone can tell me what's going on here. I'm trying to link to gdiplus.lib and I tried to go to "Properties - Linker - Input - Additional Dependencies" to add the library but I do NOT have that section. I'm using Visual C++ 2008. Here's what I see:
Common Properties
Framework and References
Configuration Properties
Gen...
I am using this code to get the windows version:
#define BUFSIZE 256
bool config::GetOS(LPTSTR OSv)
{
OSVERSIONINFOEX osve;
BOOL bOsVersionInfoEx;
ZeroMemory(&osve, sizeof(OSVERSIONINFOEX));
osve.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osve)) )
ret...
I am trying to encapsulate my Win32 application into a class. My problem occurs when trying to initiate my primary window for the application below is my declaration and implementation... I notice the issue within my class method InitInstance();
declaration
#pragma once
#include "stdafx.h"
#include "resource.h"
#define MAX_LOADSTRING 1...
I am reading a book and I am not sure if its a mistake or I am misunderstanding the quote. It reads...
Nowadays every PC you can buy has
hardware that can render images with
at least 16.7 million individual
colors. Rather than have an array with
thousands of color entries, the images
instead contain explicit color values
...
Possible Duplicate:
how many color combinations in a 24 bit image
I am reading a book and I am not sure if its a mistake or I am misunderstanding the quote. It reads...
Nowadays every PC you can buy has
hardware that can render images with
at least 16.7 million individual
colors. Rather than have an array with
thou...
Hi,
I'm having a weird problem when trying to register the .dll i created using regsvr32.
During development everything went fine, the debug version registers and works fine. Now i wanted to create a Release version, but that Version does not register anymore.
regsvr32 comes up with the following error:
The module "mpegsplitter.dll" ...
I am trying to create my render target view but I get this error from direct X
A RenderTargetView cannot be created from a NULL Resource
To my knowledge it seems that I must fill the rendertarget pointer with data before passing it. But I am having trouble figure out how. Below is my declaration and implementation
declaration
#prag...
I'm using MSVC 2010 and I want to use NedMalloc as a separate dll. But I don't know how to compile it for x64 target. Pls help.
...
I have a very simple C++ code here:
char *s = new char[100];
strcpy(s, "HELLO");
delete [] s;
int n = strlen(s);
If I run this code from Visual C++ 2008 by pressing F5 (Start Debugging,) this always result in crash (Access Violation.) However, starting this executable outside the IDE, or using the IDE's Ctrl+F5 (Start without Debuggin...