Using .NET in native C++ DLL of PTC Pro/TOOLKIT
Hello!I have to write a synchrone application for PTC Pro/ENGINEER Wildfire 4.0 using Visual Studio 2005. Pro/TOOLKIT is an API in native C/C++. The DLL is loaded as plugin into Pro/ENGINEER.It is not...
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 ArticleCreateProcess documentation
Is it me, or is the CreateProcess documentation simply incorrect for when specifying the program name as part of the second argument, with the first argument NULL? From the documentation:"If the file...
View ArticleI am beginner and want to learn V C++
I want to learn visual C++ 2005 express edition for making some presentation for gaming and some slideshows of my own!
View ArticleVC++ Console App - is it possible to add a callback from a connection point??
I have added in a callback from a COM connection point, from my VC++ console App. The QI on the ConnectionPointContainer , FindConnectionPOint and Advise all work OK. However in the EXE that has the...
View ArticleHow to use ATL in Visual C++ 2013 RC
I have an existing Visual C++ 2012 application that hosts the Windows Media Control. I pretty much copied code from the Microsoft example to do it. Here is the link to the...
View ArticleC++ Program for Extracting data from windows logs in different...
Hi,How we can do the filtering and save each log entry into that file format ?
View ArticleFive processes to do one WMI query!
I have a little app which outputs information on the system uptime. It executes four WMI methods in succession (later releases them and exits). The target machine is the local Win7 machine...
View ArticleMy application steals focus from other application
My application is VC++ MFC MDI application. When i run my application on Windows 7, it steals focus from other application whenever a new document is created. In Win XP, I had not faced this issue. Any...
View Articlews2_32.lib(indef.obj) : fatal error LNK1103: debugging information corrupt;...
hi, i am getting the error ws2_32.lib(indef.obj) : fatal error LNK1103: debugging information corrupt; recompile module while trying to build the nanomsg 4.0 library with cmake. i am using the...
View ArticleCMFCButton does not receive WM_TOUCH events
I am writing an MFC desktop app using Visual Studio 2013. I derived a class from CMFCButton. I have overridden the OnTouchInput() function in this class. I have overridden the PreSubclassWindow()...
View ArticleCreateFile with both GENERIC_READ and GENERIC_WRITE
Hello,I'm writing a program to talk to a PIC18F14K50 via USB. First there were two seperate functions for creating a read handle and a write handle likeDeviceHandleLocal=CreateFile(DevicePath,...
View ArticleDraggin and dropping functionality in windows 8 environment
Hi, I have developed an application in which i have icons in left side pane of application which can be dragged and dropped in client screen. Application is working fine with all the resolution except...
View ArticleWinHttp: help troubleshooting WinHttpSendRequest failure with...
I'm writing a client application. The application is trying to connect to a server over SSL using WinHttp API.A regular set-up (WinHttpOpen, WinHttpConnect, WinHttpOpenRequest) is always successful,...
View ArticleHow to Create LPGRPICONDIR from in memory HICON?
How to Create LPGRPICONDIR from in memory HICON?
View ArticleHow to associate a custom event function with multiple arguments to a managed...
Hi,New to event driven programming. Please correct my misuse of terms.In Visual C++ the code generator generates such event handler function:private: System::Void foo(System::Object^ sender,...
View Articlehelp with basic c++ function homework problem
Please whoever answers this try to make it sim[le and easy I am very new at this.this is the question:Write a program that simulates the dial of a phone number. The program will input a phone number...
View ArticleAlways returning DXGI_RESIDENCY_FULLY_RESIDENT
So I'm running Win7 have a video card that is 512mb DX10, and in a test application I load 800mb worth of textures. I'm getting readings for dedicated vram usage and system (shared) vram usage from...
View ArticleCP/M SWEEP
seems that the old CP/M command called SWEEP can still find a job.the way it worked, it would use the syntax:SWEEP DELETE *.BAKwhich is roughly the same as del *.bak /s with the modern command...
View ArticleProblem with receiving UDP packets from two sources on one socket
We currently have a a desktop application that can use two IP addresses but only binds to one IP. We are having a problem on Windows 7 whereby a UDP socket bound to one address on a particular port...
View Article