visual-c++

How to detect whether a control is standard or active-x control?

In MFC Application, how can we differentiate whether a control is a standard control like CComboBox or it is an custom active-x control? ...

Folder copy VC++

i want to copy a directory from one drive to another drive. My selected directory contain many sub directories and files. How can i implement the same using vc++ ...

char to LPCTSTR

how to convert char to LPCTSTR in vc++ ...

how to get video properties values(hue,brightness..)in vc++ directshow

`hai.. i have to get video procamp values in vc++.so i wrote like this using IAMVIDEOPROCAMP interface.. IAMVideoProcAmp *pc; long Property=0; long *pMin=0; long *pMax=0; long *pSteppingDelta=0; long *pDefault=0; long *pCapsFlags=0; hr=Capture_Graph->QueryInterface(IID_IAMVideoProcAmp,(void**)&pc); hr=p...

File copying issue while converting to LPCTSTR

// Convert to a wchar_t* size_t origsize = strlen(toChar) + 1; const size_t newsize = 100; size_t convertedChars = 0; wchar_t wcstring[newsize]; mbstowcs_s(&convertedChars, wcstring, origsize, toChar, _TRUNCATE); wcscat_s(wcstring, L"\\*.*\0"); wcout << wcstring << endl; // C:\Documents and Settings\softnotions\Desktop\Release\*.*...

Infinity in MSVC++

I'm using MSVC++, and I want to use the special value INFINITY in my code. What's the byte pattern or constant to use in MSVC++ for infinity? Why does 1.0f/0.0f appear to have the value 0? #include <stdio.h> #include <limits.h> int main() { float zero = 0.0f ; float inf = 1.0f/zero ; printf( "%f\n", inf ) ; // 1.#INF00 print...

How to suppress warnings in external headers in Visual C++

I'm starting a new BREW project, and I'd like to compile with Warning Level 4 (/W4) to keep the application code nice and clean. The problem is that the BREW headers themselves don't compile cleanly with /W4. In gcc you can differentiate between application and system headers by using -I and -isystem, and then by default gcc doesn't rep...

Facing problem in VB6.0 Activex Controls design.

Hi, This is dharmaraju, I am facing some problem in Activex Controls design. Kindly help me to resolve the issue. Problem Description: I have created a property mentioned below for a textbox. Public Property Let DataControl_Value(ByVal Value As Variant) Public Property Get DataControl_Value() As Variant This property is editable at d...

error C2065: 'IOCTL_NDISUIO_OPEN_DEVICE' : undeclared identifier

Hello, I am facing "error C2065: 'IOCTL_NDISUIO_OPEN_DEVICE' : undeclared identifier error in beneath code. Where i am wrong, please help me out. #include "Ntddndis.h" #include "Nuiouser.h" HRESULT OpenInterfaceHandle( LPWSTR adapterGuid, HANDLE *pHandle) { WCHAR deviceGuid[128]; HANDLE intfHandle; HRESULT hr = S_OK; ...

VS 2008 Compiler option for flagging uninitialized variables.

Is there a compiler option in VS 2008 (C++) to expose uninitialized variables? I'm trying to debug a problem where the "release" build of a DLL does not work but the "debug" build of the DLL does work. ...

Visual Studio fails to link mod_spnego to SSPI

Hi there, I am trying to compile mod_spnego (http://sourceforge.net/projects/modgssapache/) with SSPI support in Visual C++ 2008 Express Edition. I have managed to get the compiling itself work fine, but now I am stuck at some errors that the linker prints out: Linking... Creating library 2-win32-debug/mod_spnego.lib and object 2-wi...

How can we reset the configuaration in VS2008_C++

hi . How can I reset the configuration parameter in VS2008 C++ I misconfigured my project ...

"Unable to start program" on Debug Immediately After Successful Build

When I try to run my first application with the debugger, I get a pop up which says: Visual C__ 2008 Express Edition This project is out of date: ProgName - Debug Win32 Would you like to build it? [Yes[ [No] [Cancel] [ ] Do not show this dialog again? I find this somewhat bothersome, because the very last thing that I did jus...

Where can we use "This" in Recursion methode...

Hi . I have a methode in a static class which try to convert bi*nar*y tre to list I'd like to make a recusion but I couldn't I've implemented some opertation in my class like add,delet,find.it's too easy to implement its . Here is the code class ARB { private: struct BT { ...

How to capture full screen in c using visual studio

Is it possible to capture full screen in visual studio (VC++), so that user don't have to press ATL+Enter. Kindly guide me how I can make it possible. ...

PostMessage tutorial

Hi I am looking for some tutorial regarding the PostMessage functionality in Windows SDK. I have been googling a while but no luck. Is there a site which elaborates on this operation? Thanks. ...

Is there a default buffer length for 'sprintf' method?

Hi, I used sprintf method to format data to a string which I want to write to a file, in C++ console application using VS 2008. The Input is a particular message, which has various variables and values (ex: Type 'int' and Value '10' / Type string and value "abc", etc.) When I send a two messages it works perfectly. But When I send more ...

multi thread apps crashes in release mode

Hello, I'm using Visual Studio 2008 (programming in c). I've a weird problem I worte a program that has 2 threads that runs simultaneously, a recording thread (using audio card to record into memory) and a translation thread (using a speech engine to recognize the words). when I run my program in debug mode (aka setting a breakpoint in ...

STLport5.2.1 question in VC6.0

hi all, today i install the STLPort5.2.1 to my VC6.0 and i test it out, it's okay in the console project, but it issue following question in the MFC project: Compiling... testMFCDlg.cpp d:\sw\vc6\vc98\stlport-5.2.1\stlport\errno.h(55) : fatal error C1189: #error : errno has been defined before inclusion of errno.h header. Error exe...

Visual Studio C++ adds "junk" to my programs

I have looked into the binaries produced by MSVC 2010 from my source code, and saw everything being filled with "junk". (Not the kind of junk that calls itself "my code") I don't know how to explain, but my executables are being added too much unnecessary information, like: Lots of Microsoft default error messages, I don't want them X...