Click here to Skip to main content
15,883,883 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory allocation problem?? Pin
Zac Howland28-Jul-06 7:51
Zac Howland28-Jul-06 7:51 
GeneralRe: Memory allocation problem?? Pin
pavanbabut28-Jul-06 8:51
pavanbabut28-Jul-06 8:51 
GeneralRe: Memory allocation problem?? Pin
Zac Howland28-Jul-06 9:16
Zac Howland28-Jul-06 9:16 
GeneralRe: Memory allocation problem?? Pin
pavanbabut28-Jul-06 9:32
pavanbabut28-Jul-06 9:32 
GeneralRe: Memory allocation problem?? Pin
Zac Howland28-Jul-06 9:46
Zac Howland28-Jul-06 9:46 
GeneralRe: Memory allocation problem?? Pin
pavanbabut1-Aug-06 5:32
pavanbabut1-Aug-06 5:32 
GeneralRe: Memory allocation problem?? Pin
Blake Miller1-Aug-06 12:44
Blake Miller1-Aug-06 12:44 
GeneralRe: Memory allocation problem?? Pin
pavanbabut2-Aug-06 9:40
pavanbabut2-Aug-06 9:40 
Hi,
thanks for your reply. I tried to use WriteFile, but how can I write non-text data using this command. It writes text data fine, but not any other datatypes. Also where can I set the mode to binary while creating the file using CreateFile (I have seen lot of flags, but none relating to binary mode).
One more thing I would like to point out is, my porgram does I/O operations in a single function (it acquires the 2 digital channels data at the same time it acquires analog channel data). So I need to do the disk write operations for the 3 channels data at the same time within the time delay of next I/O or atleast within a span of 5 buffers. So, atlast my read-in rate is (100000x6bytes + 2x100000x1byte) data every 10msec. So I need to write that much data to 3 different files at the same time.

I am using fwrite(&dataA, sizeof(int), 1, streamA[0] );, instead of writing the buffer in a single function, as I need to convert the datatype from 6bytes to 2bytes (using some scaling function) and from 1byte to 2bytes data. But I can do that even after I do the acquisition, if it can resolve my problem.

thanks,
-Pavan.
GeneralRe: Memory allocation problem?? Pin
Blake Miller2-Aug-06 10:29
Blake Miller2-Aug-06 10:29 
GeneralRe: Memory allocation problem?? Pin
pavanbabut2-Aug-06 13:48
pavanbabut2-Aug-06 13:48 
Questionnewbie requires guidance on named pipe application Pin
eeyor66628-Jul-06 6:31
eeyor66628-Jul-06 6:31 
QuestionHow to set a JPG image to a dialog background ? Pin
Vinod Sankaranarayanan28-Jul-06 6:25
Vinod Sankaranarayanan28-Jul-06 6:25 
AnswerRe: How to set a JPG image to a dialog background ? Pin
Hamid_RT28-Jul-06 6:57
Hamid_RT28-Jul-06 6:57 
GeneralRe: How to set a JPG image to a dialog background ? Pin
Vinod Sankaranarayanan28-Jul-06 19:21
Vinod Sankaranarayanan28-Jul-06 19:21 
GeneralRe: How to set a JPG image to a dialog background ? Pin
Hamid_RT28-Jul-06 21:55
Hamid_RT28-Jul-06 21:55 
Questiontootip for win32 window Pin
Manjunath S28-Jul-06 6:17
Manjunath S28-Jul-06 6:17 
AnswerRe: tootip for win32 window Pin
David Crow28-Jul-06 7:18
David Crow28-Jul-06 7:18 
AnswerRe: tootip for win32 window Pin
Hamid_RT28-Jul-06 7:20
Hamid_RT28-Jul-06 7:20 
QuestionHow to read/write a word from/to a certain physical address in the VC++ 6.0 environment? Pin
zhoufanking28-Jul-06 5:57
zhoufanking28-Jul-06 5:57 
QuestionRe: How to read/write a word from/to a certain physical address in the VC++ 6.0 environment? Pin
David Crow28-Jul-06 7:13
David Crow28-Jul-06 7:13 
AnswerRe: How to read/write a word from/to a certain physical address in the VC++ 6.0 environment? Pin
zhoufanking28-Jul-06 12:52
zhoufanking28-Jul-06 12:52 
GeneralRe: How to read/write a word from/to a certain physical address in the VC++ 6.0 environment? Pin
Gary R. Wheeler28-Jul-06 16:08
Gary R. Wheeler28-Jul-06 16:08 
AnswerRe: How to read/write a word from/to a certain physical address in the VC++ 6.0 environment? Pin
A_Fa28-Jul-06 18:51
A_Fa28-Jul-06 18:51 
QuestionVPN Pin
Sean Dastouri28-Jul-06 5:49
Sean Dastouri28-Jul-06 5:49 
AnswerRe: VPN Pin
David Crow28-Jul-06 7:11
David Crow28-Jul-06 7:11 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.