Most wrappers would just wrap zlib, which doesn't have unicode support. It's not particularly difficult to change fopen to _tfopen, char* to TCHAR* etc, just have to watch out when you allocate space for strings to * sizeof(TCHAR). Tedious though as zlib seems to have lots of unnecessary casts but it shouldn't take more than an hour of your time. I just modded a copy and it seems fine.
I had got an error as "Invalid handle specified" while trying write to a serial port(COM1)using WriteFile().
But the handle to serial port is seems to be valid.
One by one step I had followed is below.
But i would suggest you to use a ready-made serial comms class. It's not easy to handle two different overlapped structures (one for read, one for write).
And if you don't use overlapped, then your reads will hang until there is data to read.
A serial comms class will take care of that problem for you.
I am a c# programmer and I am trying to reference a DLL wriiten in c++. I receive an error stating that it is not a valid assembly or COM component. I also have the source code, so I am attempting to compile it in Visual Studio 2005. It was originally compiled in Visual c++ 6 I believe. It is my understanding that if I can complie the DLL in the new framework, I can then reference the DLL in c#.
So, when I attempt the compilation I get a number of errors which I am hoping can be solved.
<b>Error c2011 'struct' type redefinition. </b>
This error is in an .h file which has a message at the top:
Machine generated IDispatch wrapper class(es) created with ClassWizard
This errors occurs in a line
<code>class Font : public COleDispatchDriver
COleDispatchDriver is a class in a .h file which states
that this is a part of the MFC Classes c++ library.
<b>Error c4430 missing type specifier - int assumed </b>
This error is on a line which calls a routine called debugEMF()
If I goto this routine it is
CEnhancedMetaFile is a class
Pls forgive me: I have no idea about c++.
Anyone help pls?
DDBs are perhaps going to perform better because they are matched to the device, a DIB has it's own bit depth. Windows is also geared more towards DDBs, although personally I prefer to use DIBSections as they give me access to the underlying bits as well
The trouble with using OpenGL or DirectX is that you need them installed first. DX is a safer bet. Obviously, these frameworks exist because doing 3D with straight GDI or GDI+ is not very performant.
DirectX would be my pick for performance.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog