visual-c++

Drawing Text On Window

Hi, I want to make chat application and for the first step, I need to know which API there is to use to display text in lines and also erase if needed. thanks! ...

How to properly install MS VC++ 9 runtime?

I have an application that uses the ms vc++ runtime. How should I install it on the end-user's system if it is not present? I was thinking of bundling it with the installer... but how would I do that as far as what to include? Is there some silent installer? If so, where can it be found? I can't seem to find it in the Windows SDK. ...

how to filter incoming packets in pcap vc++

hai..am writing simple tcp sniffer using pcap in vc++.so how to block or filter all incoming pockets from any ip kindly give your suggestions thank you ...

Which one to use - memset() or value initialization to zero out a struct?

In Win32 API programming it's typical to use C structs with multiple fields. Usually only a couple of them have meaningful values and all others have to be zeroed out. This can be achieved in either of the two ways: STRUCT theStruct; memset( &theStruct, 0, sizeof( STRUCT ) ); or STRUCT theStruct = {}; The second variant looks clean...

How to get user's OU programmatically with ldap C++

how to get user's ou programmatically with ldap C++ ...

How can I execute this WMI Query in VC++ ?

Hi, I recently saw this Stackoverflow question about detecting the "real" version of Windows. I have a application that uses code thats only availible on Windows Vista and up. To maintain compatibility with Windows XP, I have created my own version which does exactly the same as the Vista code, but is nowhere near as fast as the Vista ...

[C++] MSVC and FreeGlut Compiler Error

Receiving alot of these messages when compiling which is making compiling a simple program very time consuming. freeglut_static.lib(freeglut_callbacks.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info 1>freeglut_static.lib(freeglut_...

How to check if a subfile exists in a chm file?

I have a number of CHM files, and each of the files is a comressed html for 5 different Html files. I mean, lets say I have 5 different files named Alpha, Beta, Gamma, Delta, Theta. Say, I compress these 5 in a CHM file. Lets call that file CompressedHtm.CHM. I have >500 of these files. Now I want to check if all of these >500 files hav...

where to get the source code for standard c++ library

is it possible to get the source code for standard c++ library? ...

How to check if a link exists or not in VC++?

I have a link. I have checked that the link is a valid URL through regular expressions. Now, I want to check if the link is a valid http link or not. i.e. it should not be a non-existing link. Is there a way in VC++ 6.0 (MFC) to check that? ...

GSL-GNU in Visual studio

I have visual studio 2008, I want to integrate GSL library in my project, kindly give me some guidelines so that I can make it possible. I have added the GSL library but the following error come. Error 1 error LNK2028: unresolved token (0A000010) "extern "C" void __cdecl gsl_matrix_set(struct gsl_matrix *,unsigned int,unsigned int,do...

Inherit interfaces which share a method name

There are two base classes have same function name. I want to inherit both of them, and over ride each method differently. How can I do that with separate declaration and definition (instead of defining in the class definition)? #include <cstdio> class Interface1{ public: virtual void Name() = 0; }; class Interface2 { public: ...

How to set Native Microsoft compiler for VS 2003 if Intel Compiler is default compiler?

Hi, I am using a development environment with VS 2003 as IDE and Intel compiler as default compiler. I have to set Microsoft default compiler for compilation of my project. As I could not find where to set the compiler in VS 2003. Thanks Anil ...

VC++ SSE intrinsic optimisation weirdness

I am performing a scattered read of 8-bit data from a file (De-Interleaving a 64 channel wave file). I am then combining them to be a single stream of bytes. The problem I'm having is with my re-construction of the data to write out. Basically I'm reading in 16 bytes and then building them into a single __m128i variable and then using...

image processing in vc++ using MFC

I want to perform the following artistic effect with my MFC app. Can anyone tell me, how to perform it ? Input Image : Output Image : Waiting for the reply... Thanks in advance... ...

MFC: Floating toolbar window not visible (WS_EX_TOOLWINDOW)

In a typical MFC C++ dialog, I want to dynamically create a floating ListBox (or other standard control) over the dialog, possible extending past the dialog's boundaries - so it can't be a simple child or it'll be clipped. Looking at something similar that works, I tried to achieve it but the window never appears when shown. In my .h f...

How do i create an array of unequal length arrays?

Hello everyone, I need to create a sort of 2D array in which each one of the secondary arrays are of different length. I have a 1D array of known length (which defines the number of arrays to be formed) with each element having a number that denotes the length of the secondary array in that position. Each one of the arrays are fairly...

Compiler can't find structures, what should i be including.

UPDATE: I thought it was Windsows.h i need to include and you have confirmed this, but when i do include it i get a bunch of messages like the following... 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5934) : error C2872: 'IDataObject' : ambiguous symbol 1> could be 'C:\Program Files\Microsoft SDKs\Windows\v6....

ambiguous symbols

1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5934) : error C2872: 'IDataObject' : ambiguous symbol 1> could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(251) : System::Windows::Forms::IDataObject IDataObject' 1> or 'c:\windows\microsoft.net\framework\v2.0.50727\system.windows....

Does Visual Studio 2010 beta 2 disable creating visual C++ projects?

I recently installed VS2010 beta 2 and tried to create a new Visual C++ project. I enter the project name but the OK button is disabled so I cannot create it. I could not find any documentation online about this experience. Does VS2010 beta 2 block users from creating new Visual C++ projects, or is my installation at fault? ...