visual-c++

Fast format conversion open source library

Can someone advise me open source format conversion library? Optimized for SSE, SSE2. Formats for conversion: I420, YUY2, RGB(16-bit, 32-bit). I found only VirtualDub Kasumi library. ...

How to change the name of a VC++ project ?

Hi, i am building a VC++ project named FileOut , when i build the application i get an exe named FileOut.exe. Is there any way that i get an exe with different name like File.exe ...

Problems encountered in changing a CRichEditCtrl selection color.

I have written the following code after creating the CRichEditCtrl // 06112010 : The following code was added to highlight the textselection in black color instead of the default blue color of CRichEditCtrl. - 1311 { m_EditControl.SetSel(0,100); CHARFORMAT2 cf1; cf1.cbSize = sizeof(CHARFORMAT2); m_EditControl.GetSelectionCharFormat(c...

SendMessage (F4) fails when sending it to window

Working with Visual Studio 6 (VC++ 6.0) I'm using an ActiveX datepicker control which I fail to show expanded by default (3006216). Alternatively I'm trying to send a keyboard message (F4) to my window to open up the control, but nothing happens when I do so... // try 1: use the standard window handle LRESULT result = ::SendMessage(m_hW...

How can specific type details be filtered from Dia2Dump ?

Hello, I need to filter details of specific Type(i.e Custom Type) . DIA2Dump blindly dump everything as type. I need to give it specific custom type as string and as result need all data members(i.e data section of that class). Is there any specific function available in DIA SDK for this. say I have Custom type MyClass and it has 4 v...

Problem with newly built VC++ application ?

My application which is built on VC++ 2008 , when run on a freshly installed XP shows an error that asks dotnet.fx to be installed. And also i faced similar problem when i tried to run it on another xp system after i installed that, it started to run. Is there any way that i can make my application independent of all these additional in...

Uploading image to flicker in c++

I am creating an application in VC++ using win32,wininet to upload an image to Flickr.I am able to get Frob,Token correctly but when I try to upload the image I am getting error Post size too large. Headers are created as follows wstring wstrAddHeaders = L"Content-Type: multipart/form-data;boundary=ABCD\r\n"; wstrAddHeaders ...

Determine when using the VC90 compiler in VS2010 instead of VS2008?

Is there a (Microsoft-specific) CPP macro to determine when I'm using the VC9 compiler in Visual Studio 2010 as opposed to Visual Studio 2008? _MSC_VER returns the compiler version, so with VS2010 multi-targeting feature, I'll get the same result as with VS2008. The reason for wanting to know the difference is that I created a new VS20...

Is possible to generate constant value during compilation?

I would like my classes to be identified each type by an unique hash code. But I don't want these hashed to be generated every time a method, eg. int GetHashCode(), is invoked during runtime. I'd like to use already generated constants and I was hoping there is a way to make the compiler do some come computing and set these constants. Ca...

Linking to a C library compiled as C++

I'm in linker paradise now. I have a C library which only compiles in Visual C++ (it probably works in gcc) if: I compile it as C++ code Define __cplusplus which results in all the declarations being enclosed in extern "C" { } So, by doing this I have a static library called, say, bsbs.lib Now, I have a C++ project called Tester whi...

Crash generated during destruction of hash_map

I am using hash_map in application as typedef hash_map<DWORD,CComPtr<IInterfaceXX>> MapDword2Interface; In main application I am using static instance of this map static MapDword2Interface m_mapDword2Interface; I have got one crash dump from one of the client machines which point to the crash in clearing this map I opened that cra...

Static CComPtr Variable

Is it bad idea to have static CComPtr member variables in an application. Since we cannt control destruction of static variable and it can happen after CoUninitialze . ...

Windows 7 sharing data between users via the registry

Where can I create/modify/delete registry keys to share data between users in the Windows 7 registry? Both of the users are non administrators and it shouldn't require admin privileges. The application I'm working on uses the registry to write a key from userA and then userB can read/modify/delete it. Neither user has admin privileges ...

How to access the values stored in the user attributes of Active Directory?

How do I access the values stored in the user attributes of Active Directory? I'm using vc++. ...

64 bit c++ compilation error

Hi, I hd made MFC application in VC++ 2005 and i need. It compiles successfully in 32 bit mode but when i try to compile it on 64 bit mode i get following errors. 1>------ Build started: Project: ProgressBar, Configuration: Debug x64 ------ 1>Compiling... 1>stdafx.cpp 1>C:\Program Files\Microsoft Platform SDK\Include\mfc\afx...

Unresolved external symbol on virtual function

Each of these classes are in separate dll modules: class Base { public: virtual void foo(); void bar(); }; class Derived : public Base { public: // override Base::foo() void foo(); }; In Other.cpp: #include "Derived.h" The module that contains Derived links with Base.lib (not shown are the export/import directives). The m...

Compiling a DLL in Visual Studio Express for use in a VB Script

Hi, I am looking at converting a DLL written in VB into C++. The dll gets called as part of a login script to perform various functions. My C++ is a bit rusty, and i've only got Visual C++ Express. I can create a DLL ok from C++, but i cant register it using regsvr32. I'm assuming I need to include something in the build options to m...

buffer overflow with boost::program_options

Hello, I have a problem using boost:program_options this simple program, copy-pasted from boosts' documentation : #include <boost/program_options.hpp> int main( int argc, char** argv ) { namespace po = boost::program_options; po::options_description desc("Allowed options"); desc.add_options() ("help", "produce h...

OpenCv QT CvNamedWindow IplImage not working

I have problem with displaying Cam on QTLabel using openCV, Every thing is working fine . except one . I have to call function from open === cvNamedWindow() == in order for program to work properly . its displaying the webcam on the QLabel no problem but if i don't call the cvNamedWindow function then the program is just hanging its ju...

Visual C++ function suddenly 170 ms slower (4x longer)

For the past few months I've been working on a Visual C++ project to take images from cameras and process them. Up until today this has taken about 65 ms to update the data but now it has suddenly increased significantly. What happens is: I launch my program and for the first 30 or so iterations it performs as expected, then suddenly the...