visual-c++

how to download free window sdk for window 7 and plateform sdk

I have run a program in vc++ and window 7 platform our system has visual studio 2008. Where can I download the window sdk for visual studio 2008 and window 7 platform? Please can I have a link? ...

When to use calling conventions

What are the key factors on using different calling conventions? When does someone know to use specific calling conventions such as __cdecl or __stdcall or __fastcall in different occasions. Examples would be really apprciated. ...

errors porting C++ templates from GCC to Visual C++

The following compiles in GCC: cvec.hpp: template <class T> class cvec : public deque<T> { class deque<T>::iterator Find(T); }; cvec.cpp: template <class T> class deque<T>::iterator cvec<T>::Find(T element) { } In Visual C++, get error C2242 "typedef name cannot follow class/struct/union. I changed "class" in the header f...

visual studios 2008 library issues

Hi, I am using a third party static library that i built (release ver). Now, I was building my own static library (just added some functions specific to what I wanted to do along with that third party static library). My library built just fine release version. However, now I was going to share this library with an external party (its...

Floating point C++ compiler options | preventing a/b -> a* (1/b)

I'm writing realtime numeric software, in C++, currently compiling it with Visual-C++ 2008. Now using 'fast' floating point model (/fp:fast), various optimizations, most of them useful my case, but specifically: a/b -> a*(1/b) Division by multiplicative inverse is too numerically unstable for a-lot of my calculations. (see: Microsoft...

Adding Member variable of check box in MFC Ribbon

hi i added a check box with resourceman in MFC Ribbon (in VS-2010), but i cant create a member variable for it in CMainFrame because "Add Variable..." button is disabled in "Class Wizard" what can i do for adding this variable? and how can i access to the created variable in a document ...

CRC32 (Cyclic Redundancy Checksum) to string

Hi, If I have CRC32 (Cyclic Redundancy Checksum) then how can I get string from this. ...

How can I compile omniORB for 64-Bit Windows?

Hello everyone, I need to call the omniORB's DLLs from a 64-Bit-process and as I get it I need to compile those DLLs as 64-Bit. omniORB seems to support 64-Bit in general, but there are no configuration files included for the make-process (*.mk)... so I guess I have to create one of my own... Has anyone already tried that yet? And: Is...

c++ reading and writing windows registry properly

So I have been stuck on this for a while... thought I got it to work, but it breaks sometimes and I am not sure of the exact reasons... I am not sure if this matters but I am writing this inside Browser Helper Object (BHO)... Is IE always 32 bit process, no matter whether it is running on 64 and 32 bit OS? so I want to be able to read ...

How to Check if a website contains Flash.

I've created a web browser using mfc and i'm using IHhmlReader to read the contents of html when the user enters a url in the browser and page is completely loaded.Now i want to check if the webpage has any flash in it. Any Helps would be highly appreciated. Thank You. ...

C++ Reads/Writes XML without CLR

I know this is a very stupid question and I'm very new to C++. I'm developing Starcraft AI, it is DLL file. I'm trying to use XML to gather some data to the bot, however whenever I build the DLL with /clr option. The bot doesn't load properly. So, my question is what is CLR and is there a way to read/write XML without using /clr build ...

DLL issues after upgrading from VS2008 to VS2010

Hello, I'm dealing with this issue: We have recently upgraded to VS2010 and I am working on recompiling all of our software tools in '10. One of these tools in VC++ was created by an outside vendor. We have the source code for this tool (fairly old) and its required dll (also fairly old), although we don't have the source for the dll...

problem returning CArray

Hi, I am trying to return CArray from a function and trying to call the function from another class short ListMaker::RetArray(CString szName, CArray<CString, CString&> &szarr_Names) { szarr_Names.Add(szName); return 0; } //////////// main() { .. CArray<CString, CString&> myArray; ListMaker LM; short nCode = LM.Re...

Can I invoke another software using C++ and can I interface my c++ code to a gui?

Hey, My application would run on Windows. Would I be able to invoke and run another application (say,provide the files selected by the user in the GUI to Matlab) using system() command while my C++ program is still running? Can't SPAWN() and exec() do the job? Does VisualC++ provide some mechanism or libraries to interface GUI with my...

MSXML with Visual c++

Is there a good tutorial to read/write XML? I have been scouting all over the Internet, but found nothing about MSXML. Thanks ...

assembly and Visual C++ Express 2010 64 Bit

Is it possible to insert assembly code on Visual C++ Express 2010 64 Bit? If not, is there an intrinsic for adc (add with carry)? ...

choosing right data structure

Hi, I need to know What is the best data structure to use when transferring and storing large amounts of data across different COM objects in MFC application. (the data is usually large strings, xml files, images etc) Is there any memory issue if I use CList, CMap etc Thanks ...

Detecting available graphics memory on the windows platform using C++

I'd like to be able to detect how much graphics memory is available. I've written a C++ project that uses DirectShow. Some ancient gfx cards can't do video properly and fall back to four colour mode. If I try to allocate more than one video window, the program just crashes on these machines without warning. This is less than elegan...

How can I convert an int to BSTR

I would like to convert an int to BSTR. I'm using createTextNode in MSXML which accepts BSTR. How can I do that please? ...

Local machine SID

Hi, I want to abstract Local SID of a machine connected to domain .I'm using VC++ (MFC).Can any please help me any method to retrieve. Please rely soon. ...