is there a possibility to edit the year in the short format(yy) aswell?
I set the format "dd.MM.yy" and the date is shown correctly as "23.04.15"
But if I place the cursor in the year-section, the year switches from 15 to 2015.
I need that the year keeps 15 at the edit-mode.
I have upgraded my VS 2008 project to VS 2010 by opening the solution file and successfully built the project (debug and release configurations). But when I run the project within Visual Studio I get the following weird error saying:
"Unable to start program"
"System cannot find the file specified"
Without more information we have no way of guessing what may be wrong. Look in the directory tree for the project and check that the excutable actually exists. Try starting it from Windows Explorer to see if it runs.
Hello, i'm trying to write a simple VSS based restore program in C++. I've read the microsoft documentation on how to perform a restore under VSS but it is not helping very much. Does anyone can help with a sample program or point me towards any useful documentation?
Note that SS_TYPEMASK should be passed for the flags to be removed because the lower style bits are not ored options but enumerations. If the current style is not SS_LEFT (which is zero) but set to something else in the resource editor, the resulting style might be not owner draw.
The probable reason that this style can't be set in the resource editor is that owner drawn controls must implement the DrawItem function. This can't be checked by the resource editor.
Initially we have designed a client server model with named pipes.
Where Server is capable of handling only one client.
We expanded the server to hold 4 client instances at a time.
After which application hangs frequently while connection is established between client and Server.
Added the code snippet below.
Please look at the snippet and suggest Is it a right method to handle multiple clients.
//Returns Writing Instance
int i = 0;
BOOL wr_status = FALSE;
BOOL isNewConnetion = FALSE, fSuccess = FALSE,dwWait = FALSE;
int cbRet = 0,dwErr = 0;
dwWait = WaitForMultipleObjects(INSTANCES, hEvents, FALSE, INFINITE);
i = dwWait - WAIT_OBJECT_0; // determines which pipe
if (i < 0 || i > (INSTANCES - 1))
printf("Index out of range: %d\n",i);
// Get the result if the operation was pending.
fSuccess = GetOverlappedResult(Pipe[i].hPipeInst, &Pipe[i].oOverlap, &cbRet, FALSE);
sprintf(log_buf,"Current state system is in : %d ",Pipe[i].dwState);
if (! fSuccess)
sprintf(log_buf,"Error %d.", GetLastError());
Pipe[i].dwState = READING_STATE;
int clientSessionId = 0;
sprintf(log_buf,"APP THREAD Process id: %d with sessionID : %d ",Pipe[i].processId,clientSessionId);
sprintf(log_buf,"Connected Client process id: %d",Pipe[i].processId);
if (! fSuccess || cbRet == 0)
Pipe[i].cbRead = cbRet;
Pipe[i].dwState = WRITING_STATE;
if (! fSuccess || cbRet != Pipe[i].cbToWrite)
Pipe[i].dwState = READING_STATE;
Please edit your question and format your code properly by using the code button above the edit box, or add <pre></pre> tags around it. you also need to indicate where in the code things are going wrong.
I wonder if there are compatibility issues with "exe" created by my project and Windows.
I use Visual Studio 2008 for MFC projects.
When I compile I create a project file that run on my PC (Windows XP)
Can the "exe" file be executed in every Windows (XP, Vista, 7,8) without problems or do I have put some particular settings during compilation in order to get a universal exe that works in every machine?
Last Visit: 24-Aug-19 14:35 Last Update: 24-Aug-19 14:35