visual-c++

Build a DLL (without entry point) from the command line with MSVC.

Hi, I want to use MSVC compiler to build a DLL file. The problem is that the DLL doesn't have a main entry point. It's supposed to be a shared DLL used as a plug-in by an application. I can compile it using GCC this way: gcc -c plugin.c gcc -shared -o plugin.dll plugin.o interface.def The DEF file is to evade name mangling in a functi...

SQL Server as Prerequisite in VS Setup Project error in Windows Vista

Hello. I'm having problems installing SQL Server as prerequisite on my Visual Studio Setup application on Windows Vista. I' able to install it if I install Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) and then run the setup, but that's not what I need because I need that the Microsoft Visual C++ 2008 SP1 Redistributable P...

Can a app built with Visual C++ 6 use a DLL built with Visual Studio 2008?

I'm developing an SDK, and we have clients that are still coding with VC++ 6, while others use Visual Studio 2005 and others with 2008. Currently, we build several flavors of our SDK, where we build the exact same source code with each of those compilers. I want to find out if that is really necessary. Is it safe to build our SDK (whic...

MFC: disable New File and Save File features in SDI application

What would be the easiest way of using commands in the code to programatically disable these two features in an application? Thanks in advance. ...

Visual Studio 2008 C++ language support?

I've been developing a couple of C# tools recently, but primarily working with a lot of legacy Visual Basic 6.0 code (I know, I know...). For the C# development, I've been using Visual Studio 2008 Professional edition that I downloaded using our MSDN subscription here at work. But, as a change of pace over the weekend, I was going t...

Link errorLNK2005 in VC++

I have a programme I which I want to implement button class. I have declared all my variable in button.h and defined all methods in button.cpp and I am calling these functions in WINMAIN the following error appears. keylogger.obj : error LNK2005: "struct HBITMAP__ * hOldBmp" (?hOldBmp@@3PAUHBITMAP__@@A) already defined in Button.obj Th...

dialogbox in a MFC program

i have written the following application using MFC in visual c++ that includes two resources (a menu and a dialogbox) (created using the resource editor)...the program works absolutely fine except that it displays only one resource ie. it displays only the menu but it does not display the dialogbox... what to do?? this is the code... #i...

Gettig started with Tao OpenGL on windows form application in VC++

Hello, I added SimpleOpenglControl Component Of Tao Opengl Framework on windows form application. I drew 3d object and could display it on SimpleOpenglControl.But I want to rotate it using mouse. It will rotate according to the mouse move on 3d object .And object's rotate velocity and direction depend on mouse move velocity. Unfortu...

Can I compile visual studio solutions (.sln) without installing visual studio

Can I compile visual studio solutions (.sln) without installing visual studio. Can I install something like a VS SDK to do this? The solution is a VC++ one. ...

Can I use the VC++ 2005 compiled DLL in not DOT-net application i,e compiled in VC++ 6.0 ?

I have a application developed using VC++ 6.0, I want to use some DLL's which are complied in VC++2005 (visual studio 2005), is this possible to use these dll in tat application? I can port my application to 2005 but there are few issues which need some time to fix, I want a fast release, Can anyone tell me is this possible to do this? ...

Visual C++: Where can I get a list of all errors & warnings?

Is there some place where I can get a list of all Visual C++ compiler/linker errors/warnings? I am looking for both the error/warning number and the error/warning text that is displayed by the compiler. MSDN has them all, but they are linked to on individual pages. ...

Windows 7 Action Center

I would appreciate it if someone can guide me to the new MS APIs necessary for modifying/controlling the Windows 7 Action Center. What I need to do is integrate the Backup notification messages in my application which is a backup application in the Action Center. In other words, I want Windows to show that the backup operation was succes...

How can we create a roundrect button using win32 API in vc++

I am creating skinned application in which I want a skinned roundrect button, can someone help me out in solving this problem. ...

Boost Include Files in VC++

For the last few years, I have been exclusively a C# developer. Previously, I developed in C++ and have a C++ application that I built about 3 years ago using VS2005. It made extensive use of the Boost libraries. I recently decided to brush off the old app and rebuild it in VS2008 with the latest version of Boost (the latest version w...

Build Boost-powered solution in VS

Boost rocks, it is great and extremely powerful, but I hate it everytime I build solution in my Visual Studio 7.1. It seems Boost has impact on build time (not positive). I cannot remove all Boost usage from my project to compare build times but I tried it on small projects and the difference is meaningful. I guess the problem is tha...

Visual C++ Precompiled Headers errors

Update: What are the effects of including stdafx.h in my header files? I started on a C++ project in Linux/Eclipse CDT and imported it into Visual C++/Windows. In Visual C++, I started using precompiled headers to speed up compilation and defined stdafx.cpp and stdafx.h. Here's my stdafx.h #pragma once #include <string> #includ...

Getting motherboard unique ID number thru vc++ programming

Is there any Unique ID or OEM (Original Equipment Manufacturer) number for Motherboard, if it is there , how can i get it thru vc++ programming? any hint or help is appreciated. ...

odbc native client api

Hi, We are working in task for replacing db-library in vc++ 6.0 by migrating to vc++ 9.0 and replacing db-library with sql native client odbc. It would be really helpful if some one can please let me know, which apis can be used in odbc instead of the following apis(in dblibrary) DBSETLHOST DBSETLUSER DBSETLPWD DBSETLAPP ...

Parse DICOM files in VC++

How can I parse DICOM files in VC++? How to edit the DICOM tags? ...

What do I need to do in order to distribute a vc++ exe that embeds a jetty web-app?

Hi, I have a pretty basic vc++/vs question, but the googles are failing me. I've seen this question posed before, but none of the proposed solutions work for me. I come from a very high-level language background (java/c#), so these pesky linking issues are alien to me. I appreciate your patience... My problem is that when I send my e...