I have a new question about SetTimer(), if I use a unique ID, say,
SetTimer(2, 1000, NULL), then, I repeat this statement many times,
SetTimer(2, 1000, NULL),....
Then, I set one timer named 2 many times, or I set many timer with same name 2? that is, after 100 SetTimer(2,1000,NULL); there is only one Timer with name 2 in the system. or there are 100 pcs Timer with name 2 in the system?
I am building an application that needs to compress data before being sent via socket. Performance is very very critical and I want to make use of native functions i.e. no interop calls into .net libraries. I am building it as a C++ application.
I did find Compression API that will take an input and provide a compressed output. PLEASE BEAR THE FACT THAT I AM NOT USING ANY FILES (DISK FILES). Instead I am just dealing with raw stream.
But this Compression API is available only from Windows 8 onwards and Windows Server 2012. How do I go about finding a solution if I were to do this on Windows 7 and and a server that is say 2008 or 2003
Cabinet API does not help as it always does it thru files?
Explored the option of CMemFile and see if I can break the ice but the m_handle is of no use nor will there be a need to open or close files as I am just dealing with raw bytes.
I have used zlib in the past to do this. It is not a Windows API, but you just link the library files into your project, include the header files and use it. I found a couple of articles here on CodeProject that help dealing with the interface by providing a wrapper. I know the articles are a little old, but check them out and see if it works for you.
Yes, I read that article. As it says, the PCI parallel card are useless for anything other than connecting a printer. They are not a PCI implementation of the original ISA parallel card.
I have aone computer with a motherboard PP. I have an older Pentium motherboard with both a motherboard PP and ISA slots. So the most rational solution is a special computer for my programmers that use the PP devices.
I am a retired custom chip designer. I have several chip programing adapters that use the parallel port. Newer USB programming adapters cost too much for my budget.
There are other applications where the PP was used as an external interface for devices other than printers.
I may be able to do this through the Window print spooler but it more complex that using the direct ISA PP.
For new projects I use the FDTI USB serial port adapters. That is a much cleaner solution.
It is possible to make a PCI board that looks like the original ISA PP board. I have done that many years ago. But is also an expensive solution. But that solution will not work with a PCIe slot.
I have been programming PCs since 1984. We found the PC was a better soltion than a MAC for making custom test equipment and process control systems. Now neither a normal PC or MAC is a good solution to this problem.
My last job before retiring was designing PCI interfaces for medical electronics.