int x = 0;<br />
int y = 0;<br />
int A = 0;<br />
int B = 0;<br />
int R = 0;<br />
Read x and y<br />
if (x >= y)<br />
A = x;<br />
B = y;<br />
A = y;<br />
B = x;<br />
R = (A % B);<br />
while (R != 0)<br />
A = B;<br />
B = R;<br />
R = (A % B);<br />
Report "the GCD of x and y is B"<br />
Is Microsoft hoping that the MFC with wither
That has probably been the case since about 2002/2003. MFC still has a pulse but they have beaten it down pretty hard. We still use it for standalone apps as it has the most flexible structure and you get the sourcecode so you can tweak the MFC code out of tight spots.
If you buy the Professional Edition of Visual Studio 2008 and download the Visual C++ 2008 Feature Pack, you will find MFC has support for some new goodies like Office ribbons and the docking bars have gotten pretty advanced.
I've installed several key-logger on my system one after the other (not at the same time ). Almost all have worked correctly except one thing!
when the user types something in Microsoft Office programs like MS Word, each single character is registerd several times in the log file! for example if the user has typed the word "Hello World!", it's registered as "HHHHHeeeeellllllllllooooo WWWWWooooorrrrrlllllddddd!!!!!". I've already tried to design my own key-logger! but the same problem occured.
Stupidity is an International Association - Enrique Jardiel Poncela
Die deutsche Sprache sollte sanft und ehrfurchtsvoll zu den toten Sprachen abgelegt werden, denn nur die Toten haben die Zeit, diese Sprache zu lernen. - Mark Twain
Working with a USB is not like working with a serial port. You can't simply open the port and read/write data. Instead you have to get a handle from a device driver that is supplied with the device you want to communicate to.
So in brief, you never access the port directly but a driver and you never 'know' that you in fact access the USB port through the driver. You simply communicate with a driver. To get the handle, you have to use CreateFile and once you have the handle, you can write or read data using WriteFile/ReadFile. You can exchange driver specific information using DeviceIOControl.
All of these things are very specific to the driver (and device) you are accessing. So, if you want to information, you will need to be much more specific and tell us which device you want to access.
You need to read his message again - look at the website for the supplier of the hard lock (whatever that is). Usb is NOT like the serial port, you talk via device drivers. So you need the information from the supplier of whatever the device is.