visual-c++

Sending Key Strokes to Quake

I have been trying to write a code in VC++ for sending keys to quake game so that I can automatically move the bot. I have tried to use sendkeys functions but it only works for notepad. I have read earlier posts on this issue but none of them seems to help. It seems I have to use directinput api for this but since I never programmed in D...

XMLLite parser hangs

I'm parsing an XML using XMLLite. I notice that when its a relatively large file, the reader's pointers fails to locate the next element(tag) of the file. When i reduced the contents of the file, it could successfully parse. The reader continually shows node type "XmlNodeType_None" and fails to complete parsing, getting stuck in an infi...

Linker error 'unresolved external symbol' : working with templates

I have a template based class [Allotter.h & Allotter.cpp]: template <typename allotType> class Allotter { public: Allotter(); quint32 getAllotment(allotType*); bool removeAllotment(quint32, int auto_destruct = 0); private: QVector<QPair<quint32, allotType*>> indexReg; int init_topIndex; }; and it's usage is shown as [ActiveListe...

OpenCV and include files

Hi - has anyone installed OpenCV 2.0 on windows? Does the installation create directories such as "...\opencv\cxcore\include"? How do you link the libraries in Visual C++ 2008 (Express) and also the include files? In short how do you use OpenCV2.0 with VC++ 2008? Any help greatly appreciated. Max. ...

glDrawElements flicker and crash

I'm getting a fishy error when using glDrawElements(). I'm trying to render simple primitives (mainly rectangles) to speed up drawing of text and so forth, but when I call glDrawElements() the WHOLE screen blinks black (not just my window area) for one frame or so. The next frame it turns back to the same "Windows colors" as before. And ...

How do I copy files and folders using boost and Visual Studio 2005?

I'm trying to use boost::filesystem to copy files and folders (just like a standard copy a folder and paste it in windows explorer). Although I've been to the boost::filesystem documentation, I still don't really know how to go about doing this. Do you have to recursively go though each directory (creating it) and find each file copyi...

Light HTTP Stack for Visual C++ Project

I just want a light HTTP stack. Something similar to WinInet or WinHTTP, with cookie support, etc. Are there any good alternatives to those? Seems like I find a bug or limitation in either one that I end up hung up on. ...

How to create installer in different language using Visual C++ (window programming);

I have a window application in visual c++. I am not using MFC I have to create installer in different languages (French, Italin, German, Dutch, Spanish) can any one help me out in the above task. Thanks in advance. ...

Uses of VC++ these days?

Can someone give examples of some good applications / project that are made in VC++ commercial and non-commercial. What do you use VC++ for these(2008...) days ? Do enterprise application three tier i.e get written in VC++ Is there any use in leaning MFC these days? ...

The procedure entry point _ftol2 could not be located in the dynamic link library msvcrt.dll

I've recently been tinkering with a little gameproject using VC++ 2008. I'm using SDL, OpenGL, Boost and Box2D as included libraries. It works fine on my windows 7 machine, aswell as a friend's w7 machine. How ever it wont work on my second friend's XP sp3 machine, with the vc++ 2008 SP1 redist pack installed. When he starts the .exe he ...

MSVC: inspecting static libraries (fixing unresolved external symbols)

I wanted to ask what tools and techniques you use to fix linker errors in MSVC. My problem is, that I link an executable against a self built static lib and I get a lot of unresolved external symbols (LNK2019). I've tried building my libs with different calling conventions but I didn't succeed. I want to inspect that lib file (it's a de...

Connecting and Fetching a record form sequel server 2005.

I have a windows application in visual C++. I am not using MFC, in this application I have connect to SQL server 2005 and fetch records form a database file. Can any one guide me how this can done. Thanks in advance. ...

How can I simplify my C++ code to reverse characters?

Hello I have this program which reverses letters I enter. I'm using iostream. Can I do it another way and replace iostream and cin.getline with cin >> X? My code: //Header Files #include<iostream> #include<string> using namespace std; //Recursive Function definition which is taking a reference //type of input stream parameter. ...

Why does 'unspecified_bool' for classes which have intrinsic conversions to their wrappered type fail?

I have recently read the safe bool idiom article. I had seen this technique used a few times, but had never understood quite why it works, or exactly why it was necessary (probably like many, I get the gist of it: simply using operator bool () const allowed some implicit type conversion shenanigans, but the details were for me always a ...

Is the Visual Studio 2010 C++ linker faster with large projects?

I know it's still in beta, but I'm still really interested if anyone has seen any improvement on link times of large C++ applications. I did some testing myself, but I didn't get very far: I only got our low-level stuff to compile and run. Mid-level stuff gave weird C++ lib errors that couldn't be fixed by a couple of hours googling and...

How to find & close all open file handles on a removable drive (before ejecting)

I'm trying to eject a (virtual) removable drive, and it fails because there are some file handles open, maybe explorer windows. What's the best way to get all the open handles to files on that drive and close them? Is it also feasible (within user-mode) to find any processes running off that drive, so I can warn the user with the proces...

Visual Studio C++ Implement Interface

Hey Guys, I know in Visual Studio, when programming in C#, if I specify that a class implements an interface, I can right click on the interface and "Implement Interface", which will auto-magically populate my class with the appropriate method signatures. EDIT: Let me apologize for the vagueness of the original question. I'm looking fo...

Getting included header file path in VC++

Environment: I am using MS-VC++ 6.0, I include a group of header file with some data. The header files change often, so on every change I change the path setting and re-compiler A log file is generated based on the included header files For tracking of the header file from the log file, I wish to print the header file path inside the l...

Generic VC++ vs g++ query

I have trouble understanding the compilers. The following code does work in UNIX under g++, but under VC++ it would not even compile. Anyone can provide valid reasons why? #include <stdio.h> #include <iostream> #include <string.h> using namespace std; int main() { string tmp_nw_msg, crc_chksum, buffer; cout << "Enter the str...

PCI Tv Tuner IR Sensor::Visual C++

Hi, Here's the thing. I recently bought a PCI Tv Tuner with a remote control (AverMedia Hybrid 007) and i want to use that remote control to control my PC (maybe create a basic media center application using media players that support slave mode, something like mplayer). The way i see it i have two options: Using the existing driver...