creating a banner
Hi guys This might sound like a really dumb question, bout how do you create a banner in an object orientated C++ program. I know with procedural base you can use a void function and call it in...
View ArticleCreating A Class Constructor With The Object As Argument
Hello!My professor gave me an assignment containing classes. This is what he asked:****************Implement class Time [...] It should provide the following operations: Five constructors:DefaultTakes...
View ArticleBug in MFC Ribbon code causes images to appear on QAT context menu buttons
Using Visual Studio 2008.Recently found our QAT context menu was showing images on the standard QAT menu buttons:"Customize Quick Access Toolbar...""Show Quick Access Toolbar Above/Below The...
View ArticleUSB Disk Partition disappears after device eject
I'm using DeviceIOControl to create 3 partitions on a USB Disk. 1 Primary, 1 Extended and 1 Logical partition. Once the partitions have been created, and the disk properties updated I then wait for...
View ArticleVS 2013 regsvr32 buffer too small error when registering a COM dll
I have a atl/COM base solution I'm trying to convert to compile under VS 2013. Whenever VS tries to register a dll I get this error (in part):Microsoft Visual C++ Runtime LibraryProgram:...
View ArticleOpening console based application using command lines and createprocess()...
I have an mfc application in visual studio that uses createprocess to call a console based application. I want to use the command lines to pass in variables from the mfc application for the console...
View ArticleVisual Studio Watch can't see values of struct members
Hello, I'm using Visual Studio 2010. When I debug the following code, in my Watch window, when execution starts inside of WinMain(), Visual Studio isn't showing me the values of the members in the...
View Articleun-maximize the code window
Visual studio 2012I have managed to maximize the code window such that it always takes up the entire VS area. The Solution Explorer overlaps the code window and I cannot un-maximize the window. What...
View ArticlePopup Window Problem
Problem: In MFC application on Windows 7, we call windows API CreateProcess() to execute following command,"\"C:\\Windows\\System32\\runas.exe\" \"/user:Tom\" \"/savecred\" \"cmd /c start /MIN...
View Article[Detours Library] How to call undetoured api call?
Hi, I've been playing around with Detours Library lately.There is a program P.exe with no source code available.When running, this program loads a plugin dll called D.dll that I develop myself with...
View ArticleAda
I would like to use the MS Visual Studio to integrate a combined C++, FORTRAN and Ada program. I have C++ and Intel FORTRAN and need Ada. I found that AdaViz was, at one time, supported in Visual...
View ArticleDevCon- Trying to compile the source code provided by Microsoft and get error
DevCon- Trying to compile the source code provided by Microsoft and get error that it is missing infstr.h is missing. where can i find the file to download and then compile the projectwe are compiling...
View Articlei am not able to build the USBDLL in 64 bit machine but same USBDLL is...
Hi,i am not able to build the USBDLL in 64 bit machine but same USBdll is working in 32 machine.could you please help me how to resolve these 2 errors. please see the below errors in bold letterserror...
View ArticleDestroyWindow (Stack VS Heap VS delete, etc...)
Hi,I have difficulty understanding how the DestroyWindow works. I've create many control derived from CWnd/CButton/CStatic. First question : I created a Dialog and I'm creating these control...
View ArticleCWinApp::InitInstance loads wrong satellite DLL
Dcoumentation including pages http://msdn.microsoft.com/en-us/library/8fkteez0.aspx and http://msdn.microsoft.com/en-us/magazine/cc163557.aspx say that MFC first looks for the appropriate DLL based on...
View Articlefatal error C1010: unexpected end of file while looking for precompiled...
i included an vb dll into vc++. When i compiled i am getting this error.fatal error C1010: unexpected end of file while looking for precompiled header directive in the .c file produced from the idl...
View ArticleVS2012 - Code Analysis and Volume Shadow Copy API
#include <atlstr.h> #include <vss.h> #include <VsWriter.h> #include <VsBackup.h> int main() { GUID SnapshotId; VSS_PWSZ wszExposed = _T("X:"); VSS_PWSZ wszPathFromRoot = NULL;...
View ArticleLoadTypeLibEx is failing while running an application in session 0 (service...
Hi,In my Application, I am loading a type library as followsITypeLib *typelib = NULL;tlbpath = "some path"hr = LoadTypeLibEx(tlbpath ,REGKIND_REGISTER,&typelib);hr =...
View ArticleDLL file is missing after successful BUILD
Hello everybodyI have a small problem and I would like to ask for some help.I inherited a small VS solution which has 2 sub-projects. The first sub-project should return an executable file and the...
View Article