visual-c++

Where can I find a tool to convert a VS solution to a gcc makefile?

I know about CMake and bakefile already, but that is not what I am looking for. Is there a tool that will generate a makefile given a VC project? (or at least a first attempt at one) so I don't have to do all the work by hand? Alternatively, is there a tool that makes CMake files? Edit: Following the link below leads me to this:...

Deciphering errors in upgrading a Visual C++ 6 project to Visual Studio 2008

I wanted to see if I could bring this defunct open source project called MouseTool up to date with Windows Vista. It's a dwell-clicker to help people (like myself) who experience pain when they click the mouse. This software simulates a click when the mouse pauses at a location on the screen. It seems like no one has touched this proje...

What's a "Ch" in MSVC++?

I was thinking about my code, and I accidentally clicked the "Ln 74" at the botton of the MSVC++ window. I got a screen that said "Line number (1 - 136):", and it jumped the cursor to the line I entered. When I click the "Col 1" or "Ch 1" I get the same screen. I know Ln 74 means I'm on line 74, and Col 1 means I'm on column 1, but wh...

What do the Items on the properties tab of MSVC++ mean?

I was playing around with my MSVC++ compiler, and the properties tab for my point class said: IsAbstract - false IsInjected - false IsManaged - false IsSealed - false IsTemplate - false IsValue - false What do these mean, and why were all of them greyed out except IsAbstract and IsSealed? ...

How to use stdext::hash_map?

I would like to see a simple example of how to override stdext::hash_compare properly, in order to define a new hash function and comparison operator for my own user-defined type. I'm using Visual C++ (2008). ...

Win32: Get message notification of other application's close/exit.

Hello , My application needs to monitor all other running applications on the system. Is there some way I could get notified on exit of every application exe? The methods I could find: 1) Use PSAPI functions to get the list of running exes at frequent intervals. At each poll compare with the previous list to find which application/pro...

Is there any way to define several view configuration in visual studio 2008?

Hi , Is there any way to define an IDE Layout in visual studio 2008? Lets say that when I code in C# , I have the properties windows disabled and the output window at the bottom. Now Lets say that when I am in the visual editor of a window , I want the tools and the properties windows on the left and the output window disabled. the pro...

Advice for C++ GUI programming.

I have been writing C++ Consuole/CMD-line applications for about a year now and would like to get into windows GUI apps. For those fo you who have taken a similar step, what advice/tips can you give me. Ex: good readings, tutorials, approach tactics, etc... I know this is a really broad question, but i really don't know how/where to s...

XML atrribute

how do you get the attribute of an element? ...

Struct members alignment in Visual C++ 2008

Visual C++ let's you select the struct members alignemnt in the project's properties page. Problem is, this configuration is being used for all srtructs in the project. Is there any way (VC++ specific, I'd guess) to set a certain struct's member alignment individually? ...

C++ Email/SMTP

Hey, Can you recommend me what C++ library or classes are available for sending email via SMTP in C++. I'm on Windows platform. I need a library which supports attachments and SSL connections. What are the options available. I'm not into implementing my own :) Regards EDIT: Oh I forgot to mention I'm using Visual C++ 6 ...

MSVC equivalent to '__builtin_return_address'

With msvc, is there an equivalent to gcc's "__builtin_return_address"? I'm looking to find the address of the calling function, 1 level deep. ...

Uuencode / Uudecode library for .NET or for Visual C++ 6.0?

I have some files that are uuencoded, and I need to decode them, using either .NET 2.0 or Visual C++ 6.0. Any good libraries/classes that will help here? It looks like this is not built into .NET or MFC. ...

Drawing graphics with Visual C++

Hi, I need to draw a scatter plot into an activex control I'm building using Visual C++. I have looked at ZedGraph but, at first glance, I can't use it as I don't have a frame. I believe the drawing must be done using the c++ drawing contexts. Is there any Visual C++ API which is able to direct its output to a drawing context object? ...

CMenu and Dialog-based applications

Is it possible to put a menu in a dialog based application? How? ...

Microsoft Visual Studio: opendir() and readdir(), how?

I've used this kind of code in my Dev-cpp before: if((dh = opendir(folder)) !== false){ while((file = readdir(dh)) !== false){ // do my stuff } closedir(dh); } But now i am using MSVC++ and i dont know how to add those files there, i tried to copy dirent.h/dir.h/errno.h in there, but it gives another error relating to...

"undeclared identifier" error in simple macro expansion

I have a very simple macro that I use for shorthand when declaring exceptions. When in debug mode it adds the current file and line number. I'm in the process of modifying my code to support unicode, and suddenly I'm getting "undeclared identifier" errors whenever my macro is used. I'm probably missing something really simple, as the ...

Prefast with Visual studio 2008.

Is there any way to enable Prefast in Visual Studio 2008 Professional addition? I am trying to compile native c++ code. I have tried following things, Downloaded Windows SDK Set compiler's Bin / Include / Lib paths to the SDK. Added additional option for c/c++ compilation (/Analyze:WX-) I believe these steps should have set the app...

How to read <object> <PARAM> properties in ActiveX web control with VC++/MFC

Hi, I have ActiveX control done in VC++/MFC. It embeds into html web page. Now I need to be able to configure it by providing parameters in html tag. like: The question is how do I read those parameters during my ActiveX initialization? My research revealed that it has to be done through IPersistPropertyBag interface, but I cou...

Microsoft Visual C++ doesn't respond when building a project

When I Build, VC++ 6 will show "Linking..." and the programs NEVER get linked. I tried pressing STOP but no use. I cant even close VC++ as it says its still bulding a project. How do I fix this? ...