visual-c++

fatal error LNK1104: cannot open file 'ATL9ProPS.def'

Hi all, I have a VC++ project. When i compile the project in VS2008 i get the following linker error: *Error 1 fatal error LNK1104: cannot open file 'ATL9ProPS.def' * I have been compiling this same code since a year (with minor changes here and there) now but never saw this error. Also, my project does not refer to any file by name '...

Current Directory in XML

Hi, I am converting some environment variables to property sheets for some C++ projects. This way when the projects are used from the branch or the trunk in SVN we don't have to use a junction to switch between the branch and trunk. My property sheet, paths.vsprops, is in this format: <?xml version="1.0" encoding="Windows-1252"?> <Visu...

LoadLibrary Module Not Found - DLL Hell After Office 2007 Install

Unfortunately this is going to be a pretty open-ended question, but I am at my wit's ends and I thought I would reach out for some advice. This is a Visual C++ MFC app using Visual Studio 2008 SP1. A coworker and I both had Office 2007 installed and we have both had strange DLL loading problems with our app since. Specifically, LoadL...

Strange error for member function declaration

Below is something that did happen to me and I couldn't get what's wrong. My coworker and me screwed our heads around this. It was in a cross-platform library using the cross-platform toolkit wxWidgets on Windows #include <wx/wx.h> class Graph { public: // ... // main1.cpp:4:10: error: expected identifier before '(' token double...

Adding Preprocessor directive dynamically from commandline build VS2008

Hi all, I am using VS2008, and developing C/C++ projects. I am using .bat file to build my projects from commandline (VC2k8 command prompt). I need a way to include preprossor directive dynamically at build time. I am using devenv to build from command line. >devenv my\project\path\myproject.sln /build release > logs\build.log Actua...

Problem with Drag Drop in VC++

Hi, I am working for the first time on Drag-Drop in MFC and I am stuck very badly.. I see some format being used for intra-list drag-drop and its value is 49391 always. I have no idea where this number is coming from. I have registered only two formats viz CF_HDROP and another private format [ who value does not match with this ].. can ...

c++ set a cursor using SetCursor

ok im setting a cursor in a loop it works but when i move the cursor it just changes back to the way it was. im using win32 api and i used SetCursor(LoadCursor(hInstance, MAKEINTRESOURCE(IDC_PROTECTED))); any idea ...

Transparent Section of Images on VC++ .NET

I would want to display two button images on an application, bot images are irregular in shape (a circle and moon shape images). Since bitmaps doesn't supports transparency, this buttons looks like they are overlapping each other even when the exact design doesn't. SO I would like to ask: Is there a way to display a PNG image on VC++ MF...

Going from Dev-C++ to VC++

Yes, it's a noob question... I have been using Dev-C++ for all my projects so far, but it is incredibly outdated, and so where the libraries. So I opened up my copy of Visual C++ and copied the code. When I compile, a million errors pop up, as if every second line of my code is shit. I would hate to start the project again from scratch....

[WinAPI] Is there any way to have ASYNC MessageBox?

Or do I have to use threads? (C++) ...

Reserved class name Visual C++

Hello! I want to create in my project class "Screen", "Graphics", "Font" and "Environment", but when I type these names and hit enter I get message: "Screen" is reserved class name or "Environment" is reserved class name. I don't want to make CScreen or ScreenC or something like that :/ I have Visual Stuido 2010. Is there any way to fix...

What are main difrences between * ^ and & in visual-C++ 2010?

What are main difrences between * ^ and & in visual-C++ 2010? ...

How to bound 2 variables in C++ one with other so when one changes changes another?

How to bound 2 variables in C++ one with other so when one changes changes another? for example I created Int A and Int B bound one to another and than when I change A one using some function another one will automatically change to new value of A. I am intrested in version for C++ .net 4th version. ...

C++ cursor changes to hour glass using WM_SETCURSOR

OK i have a game when person loses ill set a different cursor. i used the setcursro with loadcusor and WM_SETCURSOR. the problem is that my default cursor which i hae set it where i register my window, it changes to hour glass until the person loses than it changes to the cursor i have set it to. i found that when i use the WM_SETCURSOR ...

Global array in C header?

Okay, strange question time! I'm refactoring some old C++ code that declares a bunch of arrays like so: static SomeStruct SomeStructArray[] = { {1, 2, 3}, {4, 5, 6}, {NULL, 0, 0} } And so forth. These are scattered about in the source files, and are used right where they're declared. However, I would like to move them in...

c++ set cursor size over 32

im trying to set a cursor. the width and the height of the cursor is bigger than 32 px. but it just scale it down to 32px when i set it. any idea? ...

c++ using too much cpu

ok im creating a game but it uses too much cpu but it doesn't uses too much memory. the cpu does increase and decrease. i have too many timers in my game, i kill the timer when i don't use it any more so that should cause a problem but what i think that causes the problem is there is too many messages in my message qeue. i have new lapt...

c++ repaint part of window

i know how to repaint the full window but i don't know how to repaint a pieace of window like i draw a squre using gdi+ than i want to change it's coordinates so i want to repaint the squre not the whole window anyidea? i also tried this RECT rect2; rect2.left=0; rect2.top=100; rect2.right=225; rect2.bottom=300; InvadiateRect(hwnd, &...

visual c++ 2010 debugging problem

When I debug the my game, it works. But if I open my game's exe file that is stored in my project debug file, it shows as being 3 days old. The file is not getting updated. Any ideas why? ...

c++ high cpu usage

Possible Duplicate: c++ using too much cpu my game uses over 50% of cpu. i found way to reduce the cpu to be 40-50% but i can't find any other way to reduce it. i tried to use Code analyst profiler but it doesn't give me any good information in my code where im using my cpu. here is my code // Xstrike.cpp : Defines the entr...