I have built the Boost library from these instructions:
http://stackoverflow.com/questions/3529163/install-boost-library-in-visual-c-2008
Directory of the unzipped Boost folder is C:\Users\David\Desktop\boost_1_44_0. I have called Visual C++ 2010. How to use Boost in a program?
I mean I want the following.
#include<boost>
...
Hi,
I am working in a migration project from VC++6 to VC++9. I am using Custom Enum in a VC++9 project causes a compilation error as it is duplicating with mfc base class winuser.h.
Sample code:-
enum CHKTYPE{ INPUT, READER, BOTH_IR };
Error:-
error C2365: 'INPUT' : redefinition; previous definition was 'typedef'.
c:\program fi...
Hey all,
I recently ported a project from Visual Studio .NET 2003 to Visual Studio 2010. The problem here is that my code uses the built-in VC++7.1 _input. _input is used in a function which simulates the functionality of GNU glibc's vsscanf().
I realize that VS2010 provides _input_l as a replacement, however this function crashes con...
I want to break the dependency on the system clock in my application as it can be tampered with. I found this for JAVA. Can anyone point me to something like this or something that helps me achieve this for c++?
...
ok i when it try to insert two values in two different vectors it won't work the first one will work but the second won't be setted.
// Xstrike.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "Xstrike.h"
#include <vector>
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; ...
Possible Duplicate:
Name mangling problems when using GNU linker to link to VC++ compiled library.
In asking this question, I'm looking for either better understanding of the situation or preferably a solution.
I'm created C++ code and I would like to be able to use the Eclipse CDT IDE rather than Visual Studios, (my workplac...
i have to event that should insert values in two vectors but when event get called for the first time it inserts the values successfully but when it get called again it will insert the values in the first vector but not in the second vector than when another event get called the second vector's values will be deleted.
here is the full co...
I have such .H file (from here)
/*
FFmpeg simple Encoder
*/
#ifndef __VIDEO_ENCODER_H__
#define __VIDEO_ENCODER_H__
#include "ffmpegInclude.h"
#include <Windows.h>
#include <string>
class VideoEncoder
{
private:
// output file name
std::string outputFilename;
// output format.
AVOutputFormat *pOutFormat;
// form...
I have an array of a large structure that I am trying to output to hard drive. I seem to be able to write to hard drive just fine (though it's difficult to verify by looking at the binary data), however when I try to read it back, I always end up with a garbled mess. Any ideas what I'm doing wrong?
here's the structure configuration:
c...
There are a lot of C++ libraries (most?) that come with special binaries built for each Visual C++ version (2003, 2005, 2008, 2010).
What's the problem about linking a C++ library built for Visual C++ 2008 with Visual C++ 2010?
...
I compiled libmad for sox. When I try to read an mp3 I get this message:
sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer".
Did I compile the project incorrectly?
...
i am trying to create map using two array here is code
#include <algorithm>
#include <iostream>
#include <map>
#include <utility>
#include <iterator>
#include <string>
using namespace std;
using std::transform;
int main(){
const char* word[]={"A","B","C","D","E"};
const char * clue[]={"a","b","c","d","e"};
map<string,strin...
im trying to see if the cursor is inside my game not on the menue or the border inside the game. i don't konw what function should i use? i thought of using GetcursorPos() but is there better function?
...
How to receive strings from C# in Visual-C++ based .net DLL?
In C++ (using clr) I have this code:
#include "stdafx.h"
##include <Windows.h>
#include <string>
#include <windows.h>
namespace NSST
{
public ref class Wrapper
{
public:
Wrapper() {}
static void init_1(std::string a, std::string b){}
static void init_2(){}...
So i work in clr, creating .net dll in visual c++.
I tru such code:
static bool InitFile(System::String^ fileName, System::String^ container)
{
return enc.InitFile(std::string(fileName), std::string(container));
}
having encoder that normaly resives std::string. but here the compiler (visual studio) gives me C2664 error if I str...
Possible Duplicate:
How to find whats new in VC++ v10?
Visual-C++ 2008 vs Visual-C++ 2010 - what has changed? What are + and - of new VC++?
...
I have a function that want to receive sbyte* buffer how to create such in C# from scratch and from existing byte[]?
...
What is the C++ (and or visual-C++) analog of C# byte[]?
...
Instead of creating 4 different libs (one for MT, MTd, MD, MDd) I want to create a lib that does not specify its dependency on C runtime library (CRTs).
I tried to pass "/c /Zl" option to vc10 compiler, then /NODEFAULTLIB to lib command. Later when I use such lib I still have errors when I compile my program with switch different than d...
I saw IsInRole method but I can't find information on how to use it with C++.
...