visual-c++

My program doesn't work on a friend's machine

Hello! I wrote a game in C++ + SFML using Visual Studio 2010 Express. I packed in all libraries like msvcr100.dll, opengl32.dll etc. but some pepole can run my game, and others can't :/ I don't know why, because I added everything that is necessary to run the game. People that can't run game get messages like : "The procedure entry point...

Why do certain things never crash whith debugger on?

My application uses GLUTesselator to tesselate complex concave polygons. It randomly crashes when I run the plain release exe, but it never crashes if I do start debugging in VS. I found this right here which is basically my problem: The multi-thread debug CRT (/MTd) masks the problem, because, like Windows does with processes sp...

error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT??

Hi, what is this Error, and how to resolve it? I am using Visual studio 2005 for Smart device MFC developement, Is upgrading to 2008 can solve my problem. Error 85 error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT Thanks ...

debug settings in vc++ 2005

While debugging following VC++ simple code, for ( int i = 0; i < 100; i++ ) { // do something } I want breakpoint should hit the loop when "i = 50". Where are the setting for this in vc++ 2005 IDE? ...

GoldMine 8.0 API GMW_LoadAPI fails

GMW_LoadAPI(checked all the parameters , they are correct) is failing to load and returns --4 . Please help me for this issue. Thanks in advance. ...

Unable to find an entry point named * in dll

I have a C++ project with the following definition in the header file: typedef enum /* Set operation type */ { GPC_DIFF, /* Difference */ GPC_INT, /* Intersection */ GPC_XOR, /...

COM interface disappears from ROT

I have two applications, both of which I have written. AppA was written in C++ using MFC. During startup it registers a CSingleDocTemplate and creates a document. The document provides a COM interface and registers itself in the ROT: LPUNKNOWN punk = GetInterface(&IID_Welder); // doesn't AddRef ::RegisterActiveObject(punk, CLSID_Int...

MSVC: Implicit Template Instantiation, though templated constructor not used

Hello, I am trying to compile Flusspferd on Windows using MSVC, but it fails due to a template instantiation problem. For the ease of explanation I rewrote the problem in simpler terms: #include <boost/utility/enable_if.hpp> #include <boost/type_traits/is_convertible.hpp> class UndefinedType; class A { }; class TestClass { public: ...

How to assign icon/image to a tbbuttoninfo?

How can I assign a new image for my TBBUTTONINFO button? help me.. ...

How to assign icon to IE toolbar button?

Here is my code. I still cannot assign the icon to my toolbar button. void CRebarHandler::setButtonMenu(){ TBBUTTONINFO inf; inf.cbSize=sizeof(inf); inf.dwMask = TBIF_IMAGE; inf.fsStyle= BTNS_AUTOSIZE; HINSTANCE module = _AtlBaseModule.GetResourceInstance(); //if(module) //MessageBox(NULL, L"module is OK ", MB_ICONAS...

c++ programs developed and compiled with visual studio

I have Visual c++ 2010 express installed. I develop some apps with it (mainly console based for now). I usually compile via the cl.exe command line option. Does these apps that I compiled with Visual C++ require .net framework to run? Also what exactly is the object code file? Lastly, I know that mono has Windows Form 2.0 fully imple...

draw on child canvas

Create an SDI application that incorporates the following object hierarchy. CVeiw<-(Class derived from CWnd) • The CWnd class should response to all size notifications and resize accordingly. It should maximize itself to utilise the entire client area. • The class should be able to support the following interfaces. • ShowRectangle() - A...

How to get the handle of Internet explorer's toolbar imagelist handle?

How to get the handle of Internet explorer's toolbar imagelist handle? This is because I want to add an icon to the current imagelist. ...

C++ Function Pointer Syntax

I am trying to create a function in VC++ that takes a function pointer but I keep getting syntax errors. The declaration in my header file looks like this: void ApplyFuncToCellsInSelection(void(*func)(CPoint, *CSpreadWnd)); Here is the definition: void CSpreadWnd::ApplyFuncToCellsInSelection(void(*func)(CPoint, *CSpreadWnd)) { ... ...

Missing resource runtime exception when form tries to load picturebox

Hey guys. I'm trying to put a picture in one of my forms. I dragged a picturebox onto the screen and clicked "Choose Image" and picked my image from the dialog box. When I run it, however, I get a runtime error: An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional...

Regarding Windows Programming Using C++

There are many functions available in Windows API for usage, is there any book which would act as a comprehensive reference for the APIs available in windows? I mean the books i have been reading give a basic idea of there usage. I would need something comprehensive, like we have The Standard C library by Plauger. I need something like...

template function specialization default argument

template <typename T> void function(T arg1, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) { } template <> void function<int>(int arg1, int min,int max) { } int main(int argc,char* argv[]) { function<int>(1); } it give syntax error C2689 and C2059 on function default argument line on :: tok...

Some question to distinguish c++.net cli Managed C++

Is C++.Net (not Visual C++), CLI, Managed C++ is the same ? Is they need a framework to run Managed C++ is CLI or MFC ? ...

porting MSVS proj files to makefiles ?

Does anyone know if/how to automatically generate makefiles from a .sln/.vcproj files of a C++ application in MSVS to be used to compile and build this application on Linux ? Thanks, --Yariv ...

precompiled .libs for boost on 64 bit VC++ 2010

Are there precompiled .libs for boost on 64 bit VC++ 2010? ...