While 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 Articlewindows 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 Articlewhy doesn't ratio equal work?
* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and Reference, 2nd Edition" * by Nicolai M. Josuttis, Addison-Wesley, 2012 * * (C) Copyright Nicolai M....
View ArticleWhich PDB file name is embedded in the binary - Full PDB or stripped PDB?
Hello,For my software, I generate full PDB file for my own internal purpose and I build stripped PDB file for distribution along with my binaries.I build both PDB files in the same directory. Full PDB...
View ArticleCRITICAL SECTION slow down the performance
I need to use some synchronization mechanism between two threads of a single process, I have used CRITICAL SECTION but it has drastically slow down the execution of the code, although apart of use of...
View ArticleDifficulty converting some code from C++ to C
Hi,I need to translate the following code from C++ to C, of which I have some difficulty, I wondered therefore if someone could help me. I am using Visual C++ in Windows.state.sInFileName = new...
View Articlequestion on GetWindowLong and SetWindowLong
Hello All,I assume the return value from GetWindowLong and SetWindowLong should be the same, but the real result is not as what I expected.code segment: lpfnFromget = (WNDPROC)GetWindowLong(hMyWnd,...
View ArticleWhich license does the c/c++ compiler of visual studio use?
Um, I want to write a simple IDE for study, so I want to know which license does the visual studio's c/c++ compiler use, and if it's okay for me to use it in my IDE :)
View Articlehow write XML access path
I have Empty Project in Visual C++ and add XML file . When i debug it , i have :Unable to start program 'c"\users\rb\document\visual studio 2005\projects\empty project for xml files\debug\Empty Project...
View ArticleTrying to compile code for friends !!
Hello.. im ben, im new to programming so sorry if this seems like a stupid question (as it probably is)im using Visual Studio Express 2012 for desktop my problem is, i have written some basic code to...
View ArticleImproving link times
The link time for one of our projects has become fairly bad (80+ seconds) as we've upgraded from VS2008 to 2010 and then 2012. Since even the slightest change requires a relink to test, this is a huge...
View ArticleHow to remove the top and bottom arrow on a scroll bar
Hi all,How to remove the top/bottom left/right arrow on a scroll bar ?I would like to remove the scroll bar top/bottom arrows on controls like listbox, treectrl, ListCtrl, etcThank You.MCunhaMCunha
View Articlehow can I receive messages (line by line) through serial port from...
Dear friends,I have programmed a small form for receiving messages from a microcontroller through a serial port.when I use readline() method in the event of clicking a button (open port), it can...
View ArticleHow do I use using namespace System; with VS 2012 and Intel Composer XE 2013?
Simple question but I can't get a CLI mode program to work if I compile using Intel Composer XE. I need to use Intel Composer XE for this project.This is one of the error messages I get if I try to...
View ArticleHow to configurate the ip without wmi
I want to configurate the ip ,but i don't want to use the fxxxin' wmi and ip helper. who can tell me a way to configurate the ip,such as the com+ interfaces? thanks;
View Articlebuffer size of printf() in VC2010
What's the actual size of the buffer of printf() function in VC2010?As we know, printf() will print the string from the buffer in 3 situations, the buffer is full / getting user input / meet '/n'...
View ArticleNon Resizable CDockablePane
I have seen this question asked but have not found a solution. Does anyone know how to restrict the width of a CDockablePane, after it has been docked to the right side of my main window. Or, is...
View ArticleWinsock inside a service problem
I got the sample from here: clickThe code:void ServStart() { WSADATA wsaData; if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) { printf("WSAStartup failed with error %ld.\n", WSAGetLastError());...
View ArticleInsertion of 2-dimensional array in the middle of another 2-dimensional array
I want to insert 2-dimensional array into another 2-dimensional array- both are integer. For example I have A and B arrays as following:int A[4][2] = {{1, 2} , {3, 4} , { 0, 0} , {0, 0} }; int B[2][2]...
View ArticleCommand Line: Which API Family defines for Windows Phone 8 and Windows RT?
Hello,I'm porting a nmake-based C/C++ library to Windows 8, Windows Phone 8, and Windows RT. From a Visual Studio 2012 project, I can figure out INCLUDE, PATH, LIB, and LIBPATH by dumping the...
View Article