UPDATE: CancelIo() works fine. I misunderstood my code. See the accepted answer for more details.
CancelIo() is supposed to cancel all pending I/O operations associated with the calling thread. In my experience, CancelIo() sometimes cancels future I/O operations as well. Given:
ReadFile(port, buffer, length, &bytesTransferred, overlapp...
COleVariant var(bstrString);
var.ChangeType(VT_DATE);
DATE date = var.date;
not seems to be working. Any ideas will be appreciated. Thanks.
...
And exact the media type then save the captured image with correct extension?
...
What's the shortest solution in c/c++?
...
First of all, this regards 64bit builds of both in Windows, by Visual Studio 2008, 32bit is no problem.
Quite simple question; has anyone successfully built Mesa 7.9 with LLVM 2.8 as pipe? If so, do you happen to remember if you did any changes to SConstruct or any other build related file?
I get numerous linking errors whatever I do.
...
Let's say in my application, there are two regions: 1) used customized theme, and 2) used the system theme (the theme selected by the user in his Windows OS). Region 1 uses the customized themes whilst Region 2 uses the default themes.
The official default WPF themes can be downloaded here. What I need is to know the current theme that ...
I'm writing a Windows service that must handle Smart card readers.
Very often, when I try to connect to an inserted Smart card, SCardConnect() fails with SCARD_E_SHARING_VIOLATION which basically means:
The smart card cannot be accessed because of other outstanding connections.
Fair enough.
I guess that a least one other process ...
Hello everybody,
We are releasing a new version of our application and we would like it to be able to uninstall the previous installed version from the client's computer.
How would we be able to do that?
edit: I'm installing this application (and also the previous version) with a deployment project in Visual Studio, so I assume it is ...
Hello,
my application use a shared directory (Windows) on the network and i want to make that share available on network only to a given user and password.
Is there any way to pass authentication prior to any operations on this network resource? *I'm not using a domain.
Thank you so much!
...
I'm planning to send emails from inside of VIM via SendEmail, but I have run into some problems.
When piping part of the buffer (or the whole buffer) into SendEmail via the bang (!) operator, the text in my buffer gets replaced with SendEmail's output. So my first question is: how do I pipe a range into an external command and discard ...
I just started using the SFML library and its fantastic. However when resizing a window by dragging the corner with my mouse i don't get the resize events until i release the mouse. This means i can't update my graphics until the mouse is released (game loop is on the gui thread) and is also causing a massive flood of events to come thro...
Hi there.
Just curious about the different ways vending machine companies / ticket companies get their application to run at startup full screen on a windows host machine.
Now first thing I am thinking is obvioulsy a link to the app in startup with a switch for -fullscreen.
There would be local / group policy as another option also...
Hi,
I developed code to receive udp packets from the port. But after calling recvfrom() nothing is happening. Following is my code and output. Please help. Thanks in advance....
#include "udpSocket.h"
int main(void)
{
SOCKET sockID;
WSADATA wsaData = {0};
FILE *udp;
char buf[512];
static int recvData;
int iResult = 0;
int s...
I have a WCF-service running inside a windows service. There is an mex-endpoint at http://localhost/...
I can navigate to it via a browser but if I use MetadataResolver.Resolve, the above mentioned exception will be thrown (with inner exception of "The remote server returned an error: (404) Not Found.").
The only difference I spotted i...
Hi,
Can I run applications compiled with .net framework 3.5 on a computer with .net framework 4 installed (.net framework 3.5 is not installed)?
Thanks
...
I've got Git for Windows setup (msysgit) and it was working fine for the last few days and today I've encountered an odd error.
When issuing a Git command in the Windows Command Prompt or in the Git Bash that comes bundled with msysgit, I get a strange '(END)' line appear and then I cannot issue any other comamnds.
At this point all...
Hi,
How do I restore my computer back 2 months - Window Vista
Thanks,
Sohail
...
Hello,
Is there a DOS/ Batch command which can be used for reading from the COM port?
I tried to look for that but didn't find solution...
Thank you in advance.
...
Hi! I have the following problem - I want to set my C++ application's Base priority to 31 if that is possible or at least set its current priority to 31.
So I need a simple example like
set priority to 31;
for (i=0;i<100000;++i) { printf("hello world"); }
set priority to 8 or keep 31 if possible
...
hi i want to create an application that logs these items:
windows turn on, turn off time
log in, log out time
hibernate time
restart time
in windows 7 'Admin event viewer' log most of above item
but in windows xp there is not a clear log.
in addition, the user can change event setting
how i can do this with fully trust.
Thank yo...