how to get shutdown notification
I want to know how come my application get notified for shutdown/log-off event but it does not have UI, so I think WM_ENDSESSION may not work please confirm.I have also tried SetConsoleCtrlHandler but...
View ArticleThe meaning of the " istringstream is" statement ?
An open source code, use the following loop to the user input:while (token != "quit") { if(!getinline(cin,string X)) string x="quit"; //code for user input.. istringstream is(string X); //go code in...
View ArticleDirect3D. Something wrong with texture sampling in pixel shader on ARM device.
Hi!I'm working on ARM version of my project. Project uses pixel shaders for image processing. x86 version and x64 renders everything correctly but when using the same shaders on ARM version causes...
View ArticleWhen are the November 2012 CTP features going to be available in an official...
I saw an answer at one point I believe at Brian Harry's blog (link blocked), but I think it has since been redacted (this was listed as the answer to a similar question (link blocked) asked 2 months...
View ArticleUI fonts
Hello, how do I get a handle to the default UI font of windows 7 or 8? GetStockObject () is not advisable according to msdn.
View ArticleDetecting user of a network connection
Hi AllHow can we detect the windows user from whom a network connection(web request) is originated if there are multiple users logged on at same time. I want to get the user information in user level...
View ArticleThings need to care while setting WS_CLIPCHILDREN
What are the main things when WS_CLIPCHILDREN is added to a control. Try below sample1. Create a dialog based application and set dialog border resizing.2. Handle WM_SIZE message with below code...
View ArticleRecord an audio file; USB AUDIO CODEC
Hello, I am trying to write an api to record & play audio files to an usb audio codec. I've been able to play a file using PlaySound(). Is there an equivalent function to record? If there isn´t do...
View ArticleSolution for Linker warning in Visual Studio 2010
I am developing a Visual C++ Win32 Console Application in Visual Studio 2010. When I build the project I get the following warning: warning LNK4067: ambiguous entry point; selected...
View ArticleApp does nos start.... on customers computers
Hi,I have a software developed with VS2010 (64 bits). This one run fine on my computer and on another development machine.But once I start it on a customer machine... nothing happend !!!!!!It seems...
View Articleusing c library functions in a .cpp file
In my application, I use many c library functions. And the main source file is a .cpp file. what are the things I need to consider these type of approach? the application works fine but I want to make...
View ArticleConvert Regular dll to extension dll
Hi allHow do convert extension dll to regular dll ?I have found many the way to implement this problem but I can not resolvedCan the member of forum help me ?Damme88
View ArticleVB6 exe calling VC++ Windows forms application
I should make VC++ Windows Forms Application and VB6 program(exe file) will call it passing some parameters, for example, gain(integer), offset(integer), min(integer), max(integer).VC++ WFA should run...
View ArticleC++/Net SerialPort->Read losing bytes
Working in VS2008 C++/NET.I have a SerialPort (spSIE) from which I am reading data at 921600 baud. I have the following code:private: System::Void spSIE_DataReceived(...) { array<unsigned...
View Articleread specific parts of a .txt file with ifstream
void scene::sceneplay( string text_file_name ) { //Render the text string line; ifstream myfile ( text_file_name.c_str() ); if ( myfile.is_open() && rendered_text == false ) { while (...
View ArticleClass design
I'm making a device interface program using Windows Forms Application.User interface is simple, have one [cancel] button and one Label.1. Other VB6 program invoke this VC++ execution program. 2. VC++...
View ArticleVS2012 C++ debugger does not show the correct line of code which caused...
I recently moved a large C++ project from VS2005/XP to VS2012/Win7. Lots of great new stuff, but there is one problem with the VS2012 debugger that is not only very annoying, but also very...
View ArticleIssues with RasGetProjectionInfo
I am trying to setup a VPN connection programmatically. Everything works fine in XP/Vista/7 but in one particular situation, it fails under Windows 8.In my code, I check if a given Ras entry exists. If...
View ArticleCMFCPropertyGridCtrl not being painted in "Release" mode
In a C++ MFC feature pack UI solution (using the Visual Studio style UI template), my CMFCPropertyGridCtrl "properties" style pane in the CDockablePane is not being painted in "Release" mode only i.e....
View ArticleIssue with hiding an App
Hello All, Had installed an application named as App1 on my window 7 64 bit machine with admin privileges. Now i have another Application named as App2 through which i am using...
View Article