Click here to Skip to main content
       

C / C++ / MFC

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: MFC SetTimer() questionmvpRichard MacCutchan23 May '13 - 0:17 
econy wrote:
I just want a module to work, so I can test my new function in that module.
I'm afraid that does not help us to understand why you need a timer.
 
econy wrote:
SetTimer(2,1000,NULL), it's not create a new Timer, just reset the ID=2 Timer, right?
That's correct; see here[^] for further information.
Use the best guess

GeneralRe: MFC SetTimer() questionmemberecony23 May '13 - 2:22 
Thanks, then setTimer(id2) many times, means reset the id2 timer, right?
The system not create many timers.
GeneralRe: MFC SetTimer() questionmvpRichard MacCutchan23 May '13 - 2:37 
How many more times do you need to ask this? Go and read the documentation if you cannot believe what you have been told.
Use the best guess

QuestionCompressing Data for Transmission - Compression API Windows 7memberVasudevan S21 May '13 - 7:00 
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
 
Hickups:
 
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.
AnswerRe: Compressing Data for Transmission - Compression API Windows 7professionalSoMad21 May '13 - 9:13 
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.
 
http://zlib.net/[^]
zipstream, bzip2stream: iostream wrappers for the zlib and bzip2 libraries[^]
Zlib compression / decompression wrapper as ISequentialStream[^]
 
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

QuestionSplitter view using templatememberjohn563221 May '13 - 5:26 
Hi,
 
I am trying template for splitter view but getting error in IMPLEMENT_DYNCREATE_T.
I am using VS2008. Plz help
AnswerRe: Splitter view using templatememberVaclav_Sal21 May '13 - 6:04 
And the error message is anybodys guess.
GeneralRe: Splitter view using templatememberjohn563221 May '13 - 7:17 
It gives error at :
 
IMPLEMENT_DYNCREATE_T (TView, U, CView)
 
Error is
" error C2275: 'TView<U>' : illegal use of this type as an expression"
 
Please help.

GeneralRe: Splitter view using templatemvpRichard MacCutchan21 May '13 - 21:01 
That does not match with the line of code you have shown. However, assuming that's just a typo, where is TView<U> defined?
Use the best guess

QuestionPCI Printer Ports?membermacklinbob21 May '13 - 5:19 
New motherboards do not have built in printer ports. There are many devices that used these ports. I have several chip programming adapters.
 
I would like to be able to read and write the LPT ports directly. Not using the Windows print spooler.
 
Does anyone know where to get the port information for PCI parallel port?
 
Bob Macklin
Seattle, Wa

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 25 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid