visual-c++

How do I learn Visual C++?

I'm interested in learning how to program using Microsoft's Visual C++ for Windows. In particular, I want to know how to make applications for the Windows platform. I'm already a professional programmer. I know the C and C++ languages as well as many other languages in depth, I just haven't done any Windows programming before, so I don'...

How to add a Dialog Box Launcher on a Ribbon Panel

I am programming an application with Ribbon Control instead of Menu and Tool Bar. Office 2007 is an example of Ribbon and we can see a small button called "Dialog Box Launcher" on right side of a Ribbon Panel Caption. But I can't find how to add a Dialog Box Launcher on a Ribbon Panel. I am using Visual Studio 2010 Professional C++. Plea...

Visual C++ handling C files as C

Microsoft's IDE handles C files fine, except that it syntax highlights them as C++ and (possibly related?) it shows them under the Source Files list with the C++ icon (even though Windows Explorer correctly uses the C icon). Is that just the way it does things, or does it indicate I'm missing a setting or somesuch someplace? edit: I sp...

directx tutorials c++

im searching for full directx tutorials i found directxtutorial.com but it only gave me the basic. couldn't find others that were full tutorials. have you find any or know any? ...

getting error on executing a program LNK1104

i am using GLUT 3.7.6 with VC++6.0 n on compiling a program i get following error --------------------Configuration: abc2 - Win32 Debug-------------------- Linking... LINK : fatal error LNK1104: cannot open file "abc2.exe" Error executing link.exe. abc2.exe - 1 error(s), 0 warning(s) i have included all the header files ...linked all...

Help needed with container for a generic item in C++

I wonder if it is possible to define a generic C++ container that stores items as follows: template <typename T> class Item{ typename T value; } I am aware that the declaration needs the definition of the item type such as: std::vector<Item <int> > items; Is there any pattern design or wrapper that may solve this issue? ...

DirectX 9 "Loading textures" progress bar

It doesn't need to look like a progress bar. All I need it to say is "Loading images..." while the texture is loading, then saying "Done" when it's done loading. I have no idea, how to do it? ...

Pragma message in Clang?

What's Clang's equivalent to #pragma message as used in GCC and MSVC? ...

what is Psychic window in relation to VC++ ?

Hi, I saw above question in http://www.geekinterview.com/question_details/67202 Then i searched in Google, got below links. http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/470448e8-546f-4f5a-82b1-abbafe64b856 http://forums.windowsforum.org/index.php?showtopic=28783 I had some fun :D but no answer. Is there anyth...

Using '>>' across gcc and visual c++

We are writing an application that compiles with both gcc and Visual C++. Some team members only use Visual C++/Windows, and others only use gcc/linux. Due to differences between compilers the build sometimes breaks. I have "fixed" several scenarios that lead to build breaks using compiler options to enable/disable warnings, but currentl...

Placeholder for C++0x's <thread> header in MSVC++ 2010

I already use some new features from C++0x in Visual C++ 2010, like regular expressions or lambda functions. But there is one major feature that is missing: the <thread> header. Do you know any code which could act as a replacement? For the moment I'm using boost's thread, but it's not exactly the same as the standard, and it gives me ...

My Visual C++ compiler compiles out of date source

I'm a beginner starting to use Microsoft Visual C++ Express 2010 for Windows Programming. I've created a new C++ application using native code, not managed or MFC. I had Visual Studio create for me the basic windows code to create one window with simple menus (chat.cpp). I modified this file and I was able to compile correctly and see my...

directx apply texture

i found some examples how to apply texture on 2d object but nothing on 3d. if you know any tutorial or you can give me an example that would be greate. ...

directx 9 advance tutorials c++

i don't need tutorials talking about fvf or how to draw a triangle.... i need some advance stuff like meshes shadering........ that are free. ...

Ambiguous template error adding std::string to uint in Visual C++

I'm getting the following error when I compile the following code on Visual Studio 2008 / Windows SDK 7 const UINT a_uint; UINT result; throw std::runtime_error( std::string("we did ") + a_uint + " and got " + result ); Ironically, I ended up with this result: error C2782: 'std::basic_string<_Elem,_Traits,...

Why can't compiler optimize these 2 statements out?

Is there any reason that the compiler cannot optimize the following 2 statements out in main even I turned on fully optimization in Visual C++? Any side effect to access a int variable in memory? int _tmain(int argc, _TCHAR* argv[]) { volatile int pleaseOptimizeMeOut = 100; (pleaseOptimizeMeOut); return 0; } ...

Can anyone suggest me book for C# & .NET ?

Possible Duplicates: What are the best C# .NET books? The best C# programming book for C++ programmer I have been working in VC++ & I wanted to learn C#. How can i get head start in it ? ...

VC++ forms application centralized exception handling similar to C# forms application on .net platform

I am new to VC++ and I have good experience in working with C# on .net platform. Presently I am in a project which is a combination of VC++ and C# on .net platform. I used to add centralized exception handling for all windows form applications developed using C#. What I mean by centralized exception here means something like this http:/...

VC++ sending WM_MDICREATE message fails

In vc++, sending WM_MDICREATE message fails so it returns null value. Anyone can help why it is getting failed ...

32-bit VC++ redistributable on 64 bit OS?

Using Visual Studio, I have built an C++ application running in 32bit. It will be deployed both to 32-bit and 64-bit Windows servers. It won't be run in 64-bit mode (but rather under WoW). Should I include both the 32-bit and 64-bit Visual C++ redistributable, and install 32bit on 32bit Windows and 64bit on 64 bit Windows, or is it enou...