I'm trying to develop a communication between my computer (which runs on windows XP) and an external device which is connected through USB. I've built a driver using libusb-w32 which seems to be running fine. Then, following some tutorials I've found, after enumerating all the USB devices I'm using CreateFile function to establish a link. The problem is, the function returns a bad pointer (0x00000fb8) but GetLastError() returns 0, so I can't figure out what's happening...
Does anyone know why this happens? Isn't there an easier way to communicate w/ a USB device or is CreateFile the easiest?
Yep, tried using that pointer, but ReadFile returns a error. Error 9, I think... So, after that I checked the handle and it is invalid (hUsbDev = INVALID_HANDLE_VALUE). It also seemed valid too me, but it seems it isn't... =S
However, CreateFile returns 0, so it succeeds. Now what?
Hi , I'm writing a design tool , wherein i am to show few mathmatical equations. Right now i'm showing them as Plain text equations which looks unprofessional and clumsy . Does MFC have support for MathML ? or any other kinda framework for rendering Mathematical Equations. Finally i wish to have as good equations rendering as in mathmematica. .NET supports MathML and i found few links for doing it in .NET , but not sure abt MFC. Any kinda help wil be appreciated.Thanks.
I don't think you'll be able to display mathematical expression with just the MFC's (never heard of a thing in MFC that was able to do that, but I might be wrong). However, this control[^] seems to do what you are looking for.
I needed a very light-weight XML parser in MFC. The reason for this is, my application (this is an MFC based application using Visual Studio 6.0 ) needs to work fine on Win 98, ME, 2k, and XP. And I donot want to use the DOM Parser that would require any additional dlls to be install.
Please help get the source code for the simple parser in MFC, or plain C++ that would on all the said OS's without any additional dlls.
Any help or comments or tips would be highly appreciated.
MSXML comes with Internet Explorer (which is required to be installed with Windows in every OS since Win98). It has both a DOM and SAX parser.
TinyXML implements as little of the DOM standard as possible to make a decent parser. You might call it DOM-lite, but it is still, technically, a DOM parser. The nice thing about it is that you can compile it into your application.
Xerces is another opensource parser that supports the full DOM and SAX standards, but since you don't want to install a DLL, this probably isn't the route you want to go.
Since your OS restriction is limited to the Windows family, your best bet is to use either TinyXML or MSXML. MSXML offers all the features you would ever need and then some, and is guaranteed to be installed on all the given OS's (just make sure you bind to an older version).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
I'm not sure whether this is the right place to post this type of question. but I could not found any other message boards to do the same.
My question is related to Install Shield. as off many projects putting a secret key for their future reference, once they installed the program. This will not be deleted on UnInstalling the program.
such type of behavior im expecting. I'm not familiar with Install Sheild.
The Key is creating on the installation. How we could exclude this from deleting on UnInstallation?
I believe that if you create the key via the scripting mechanism, you could simply not delete it on uninstallation. If the key is created by the registry view in the InstallShield GUI then it is by default deleted on uninstall. You can change that behavior but you would have to look it up for your version of installshield.