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

C / C++ / MFC

 
GeneralRe: List Control in ATL/WTL Pin
YaronNir30-Jun-03 4:56
YaronNir30-Jun-03 4:56 
GeneralUsing Windows Access Control in my application Pin
Mike Eriksson30-Jun-03 4:04
Mike Eriksson30-Jun-03 4:04 
GeneralRe: Using Windows Access Control in my application Pin
basementman30-Jun-03 4:32
basementman30-Jun-03 4:32 
GeneralI wrote the buf[] question, Forgot to login Pin
johnstonsk30-Jun-03 4:02
johnstonsk30-Jun-03 4:02 
GeneralRe: I wrote the buf[] question, Forgot to login Pin
Trollslayer30-Jun-03 5:38
mentorTrollslayer30-Jun-03 5:38 
GeneralXP zip Pin
_Magnus_30-Jun-03 4:01
_Magnus_30-Jun-03 4:01 
GeneralRe: XP zip Pin
Neville Franks30-Jun-03 11:53
Neville Franks30-Jun-03 11:53 
GeneralHelp with understanding the use of a buf[] Pin
Anonymous30-Jun-03 4:00
Anonymous30-Jun-03 4:00 
I don't quite understand how a buffer works.

I have a PCI card that uses reflective memory
Reflective memory is memory that is connected through a daisy chain on fiber optics, when one PC writes to the memory on the PCI card then the rest of the computers on the daisy chain can read what was written in realtime or as close as you can get to it.

I hope that makes sense.

I am able to choose at what offset I want to start writing data to the PCI cards memory.
ex. offset 0x40 from the beginning of the cards memory.

Then on another PC I can go read the data at that offset 0x40.

The data structure that I have created is that needs to be written to memory is:

The data is continious.
<br />
<br />
//this will get written at offset 0x40<br />
 struct TSimHeader<br />
	{<br />
		int SimWriteFlag;			<br />
		int DisplayReadFlag;				<br />
		int SignalCount;		<br />
		int SimStatus;<br />
		long TimeStamp;<br />
	};<br />
<br />
//this will get written right after TSimHeader<br />
struct TSimSignal<br />
	{<br />
		double Min[45];	  <br />
		double Max[45];	  <br />
		double Value[45]; <br />
		char   *Name[45];<br />
		char   *Unit[45];<br />
	};<br />


The functions that read and write the data use a buffer to write and read from (char or int or double or long buf[1024])

How can I put these 2 structures in this buffer so that on the otherside when I read in the data I am able to parse it back out of the structure?


Thanks,
sjSmile | :)
GeneralRe: Help with understanding the use of a buf[] Pin
Trollslayer30-Jun-03 5:37
mentorTrollslayer30-Jun-03 5:37 
GeneralRe: Help with understanding the use of a buf[] Pin
johnstonsk30-Jun-03 6:20
johnstonsk30-Jun-03 6:20 
QuestionCustom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl30-Jun-03 3:07
Dominik Reichl30-Jun-03 3:07 
AnswerRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Ryan Binns30-Jun-03 4:12
Ryan Binns30-Jun-03 4:12 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl30-Jun-03 6:28
Dominik Reichl30-Jun-03 6:28 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Ryan Binns30-Jun-03 17:14
Ryan Binns30-Jun-03 17:14 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl1-Jul-03 0:15
Dominik Reichl1-Jul-03 0:15 
AnswerRe: Custom Draw in CListCtrl - how to change background of icons? Pin
basementman30-Jun-03 4:35
basementman30-Jun-03 4:35 
GeneralList Box Pin
Jay Hova30-Jun-03 2:57
Jay Hova30-Jun-03 2:57 
GeneralRe: List Box Pin
Michael P Butler30-Jun-03 3:07
Michael P Butler30-Jun-03 3:07 
QuestionIs GetItemText limited to 256 bytes for CString ? Pin
Wormhole523030-Jun-03 2:51
Wormhole523030-Jun-03 2:51 
AnswerRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Trollslayer30-Jun-03 3:40
mentorTrollslayer30-Jun-03 3:40 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 4:16
Wormhole523030-Jun-03 4:16 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Trollslayer30-Jun-03 5:41
mentorTrollslayer30-Jun-03 5:41 
AnswerRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 6:04
David Crow30-Jun-03 6:04 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 6:19
Wormhole523030-Jun-03 6:19 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 6:29
David Crow30-Jun-03 6:29 

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.