How to use a pointer to a member function of a class
#include <stdio.h> #include <IOSTREAM> class TestA { public: int __stdcall SayHello(int person); static int __stdcall SayHaha(bool laugh); }; int TestA::SayHello(int person) { printf("hello...
View ArticleWhy does ImageList_DrawEx produce no output when printing?
I am using the following call to draw an icon:ImageList_DrawEx(hImageList, 1, hDC, ptX, ptY, 0, 0, CLR_NONE, CLR_NONE, ILD_IMAGE);This works fine on-screen and in print preview but produces no output...
View ArticleWinInet - avoid the WiniNet Cache COM+ surrogate
I first asked this question in "General Windows Desktop Development Issues". Some suggested links led me here which seemed an equally appropriate place. Sorry for the double posting.I hope I'm wrong,...
View ArticleHow to add scroll bar for a docking pane in MFC Feature
HI,I created a docking pane by using a dialog but i am not able to add a scroll bar to the docking pane. I selected the vertical scroll bar = true option in the properties too. Would be really...
View ArticleVisual C++ Installer and Uninstaller do not initialize
Hello, I have been trying to install an application that requires Visual C++ visual 2013. It opens up the installer for Visual C++, but the installer just says 'Initializing...' and does nothing for...
View ArticleError LNK2001 and LNK2019
Hello!Can you please help me with this error? I already google it but no answers found. I'm using VS2013 Ultimate; Win32Application using MFC Static Library.Development files: ODEApp.cpp, ODEApp.h and...
View ArticleExecuting SQL query from C++ and store the results into matrix
Hi All,I am experiencing some difficulties in executing the below query from c++ (Studio 2010) and will appreciate some assistance in a code:while compiling I've got the warning message:Run-Time Check...
View ArticleDisplay raw RGB data as image using MFC
My project is that I have to get raw data from camera and display on screen using MFC. I saved data on buffer but I don't know how to display it directly. Any suggestion for my problem? Thank you very...
View ArticleHow add a banner at the top of the propertysheet (wizard style) in mfc
Hi, I created a proeprtysheet of wizard style using mfc, the problem is I should add a banner to the top of thepropertysheet. So,I added OnPaint() method to a class "CInstallerWizard" which is dervied...
View ArticleSDKS Abstract Layer
Hi All: I want to degsin an abstract layer which has basic methods integrating many other similar SDKS(such as OpenGL and DirectX),So the methods are transparent to Users who use this interface and...
View ArticleUsing classes of C++ DLL in C
Hi, I have requirement to use c++ dll in C. I have class in C++ with mentioned like below TestClass.h extern "C" {class _declspec(dllexport) TestClass{public: TestClass();void Test();}; }...
View ArticleHandle UI Automation Mouse and Keyboard events.
Hi Guys,Is it possible to capture mouse and keyboard events of any application using UI Automation?I am trying to create a UI Automation client application that handles UI Automation events like Focus...
View ArticleCryptImportKey fails on the Windows 2012 server
I am using Microsoft Cryptography API. It is working fine on Windows 2008 server. We have a new machine - windows 2012 server R2. My code (C++) does not work on this machine.Here is the code sample...
View Articlepointer to array of strings as procedure argument
Windows 7, C++, console appIs there a method of creating a pointer to a multi-dimensional array, as in:wchar_t my_strings[ COUNT_OF ][ SIZE_OF ];And pass that pointer to a procedure?Class new_class...
View ArticleDo dependencies need to be built with the same Platform Toolset?
Switching the platform toolset in project settings is new to me, but I gave it a shot in hopes that I could use C++11 and still target XP machines in Visual Studio 2012 using the 110_xp platform...
View ArticleHow to add a Rdlc Report file to .Resx Resource file ?
I have a small project in VS2010.In that project I have one resource file called MyResources.resx. Now Iam using this MyResources.resx file to store the images required in my project. Also I have one...
View ArticleProject Conversion from VS2005 to VS2010 Desperation
I'm conducting a system integration project which needs to construct a web services to enable the communication between a 3M passport scanner and WPF application. The 3M passport scanner bundle with...
View ArticleDeveloping COM Exe Server Using C++ Console Application
I am trying to Create Com Exe Server using win32 Application , So it work properly. but when I Convert it in to Console Application it not working,eg : in Client Code i called CoCreateInstance() to...
View ArticleAre DLLs COFF format, and where are information regarding COFF and DLLs?
I feel like Visual Studio would be a great purchase if I could get to this information. Please see title.
View ArticleRetrieving char in CString MFC
Hello,I want to display every char in my CString. But this code makes my program crash. What am I doing wrong?CString string; string ="Text";for(int i=0; i<string.GetLength();...
View Article