windows can not show a dialog, it looks like GDI error
I write one app with VS2012 in windows 7, if the app runs over than 1 day, now just click a button to show a simple dialog, it becomes very slowly, it shows the window after more than 30 seconds. But...
View ArticleWindows 7/8 taskbar icons
When a program is running, it produces a sort of multiply highlighted icon on the taskbar - with one overlay per open document. However two similar programs can get overlaid on the same icon: in...
View ArticleSCREEN SHOT IS BLANK IF COMPUTER IS LOCKED
Every hour my application takes a screen shot and saves as *.JPG. It works well .But it gives a problem when my computer is locked. If the computer is LOCKED then the screen shot is blank(not saving...
View ArticleCListCtrl Hover Effect
How can i change a single row's bkcolor when mouseover it?What is the best way to implement it? ( can Ownerdraw work? what's the state then? or should i use Mouseover?)I need an example !Thanks!
View ArticleCan't get c++ interop to work from an unmanaged c++ project and trying to...
It seems a c++ unmanaged project cannot reference the 4.5 assemblies. For some reason it's defaulted to 4.0 and cannot be changed. A c++ managed project defaults to the 4.5 assemblies. Is there a...
View Articlehow to determine available disk space
Hi,What API can I use to determine the disk space availabe during apllication run time in windows XP? My application writes to the disk continously and I want to inquire the disk space time to time?...
View ArticleRecommended directory structure for C++ solution - Visual Studio 2012
Is it possible to set an Include search path that will incorporate all projects of a solution?Here's why I'd like to have that. Maybe someone can offer a neater solution: Assume you have a...
View ArticleWhy do we see a difference in linking when rebuilding all vs. just rebuilding...
We have a fairly large solution and while working with one of its projects (a test dll) I noticed something unusual. If I issue a "Rebuild Solution" or "Rebuild ProjectX" then Project X builds just...
View ArticleGet Directory Path and create new one at runtime
How to create folder runtime and place output file into that folder in c or c++?
View ArticleInvalid safearray of variants?
STDMETHODIMP CMMEmulator::sendinputreport(BYTE inputreport[5], int length) { // TODO: Add your implementation code here _TCHAR szBuffer[100]; _stprintf_s(szBuffer, _T("%i"), inputreport[1]);...
View ArticleHow to identify message reference of a SMS sent through Mobile Broadband API?...
The question is, how to get the message reference ID of the SMS, sent using Mobile Broadband API. On Mobile Broadband API, there is no such status or function to get it, except the reference ID of the...
View ArticleWhile left mouse button is down - repeat mouse down thing
Hello! I need help with mouse messages. I want to make function repeatedly execute when left mouse button is down.For example, when I use this code with keyboard messages, move_char(); executes...
View ArticleResolving Assert failure before Main execution
//MyClass.cpp MyClass accessClass; MyClass::MyClass() { loopRuning = true; //type bool deviceHandle = NULL; //type unsigned long //ResetDevice(); //temporarily commented out to assist in debuging...
View ArticleCMFCPropertySheet - RemovePage not working with PropSheetLook_OutlookBar
Hi there,I am using Visual Studio 2010 SP1 and encounter this problem: CMFCPropertySheet - RemovePage not working with PropSheetLook_OutlookBar style. Please see details from the link...
View ArticleWriting to a csv file in c
Hi,I know the basics of how to write data into a csv file usinf fprintf() with "," separated values.My problem is when i do that in the result file the data is coming properly in different colums but...
View ArticleC++ Import an Object file
HelloI've got an Object file that was created in asembly language and is still used today, in a ADA project. How do I import the obj file into a C/C++ program and use it?Any Ideas?Thanks
View ArticleVisual C++ and XML connection
I am interested inusingXMLin Visual C++, in accordancewith IEC 61850and IEC62439astheHMISCADAprotocolHSR (HighavailabilitySeamlessRedundancy).Can You help me.
View ArticleVisual Studio 2010 C++ mixed assembly /clr Powershell Could not load file
I'm devloping a Visual Studio 2010 mixed assembly CLR class library to be used from PowerShell v2.0. At the moment, I am trying to get anything CLR to work. Facts:Visual Studio 2010, 32-bit...
View ArticleConstractors
Hello I'm starting learning c++ i have some questions about constructors for example: why i can declare classname tpm1;this will create an object with defult constractor ,or classname tmp1(10,8) this...
View ArticleIdle Loop Processing conundrum
In the MSDN topic for "Idle Loop Processing" for VS2010 at http://msdn.microsoft.com/en-us/library/3dy7kd92%28v=vs.100%29.aspx, it basically gives this code at the beginning:MSG msg; while...
View Article