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

C / C++ / MFC

 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 9:43
Peter Weyzen1-Jul-03 9:43 
GeneralRe: getting file property, help help help Pin
pnpfriend1-Jul-03 10:52
pnpfriend1-Jul-03 10:52 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 11:35
Peter Weyzen1-Jul-03 11:35 
GeneralRe: getting file property, help help help Pin
David Crow12-Sep-03 9:36
David Crow12-Sep-03 9:36 
Generalcreating an array of structures Pin
johnstonsk1-Jul-03 5:44
johnstonsk1-Jul-03 5:44 
GeneralRe: creating an array of structures Pin
Manfred Staiger1-Jul-03 5:59
Manfred Staiger1-Jul-03 5:59 
GeneralRe: creating an array of structures Pin
David Crow1-Jul-03 6:08
David Crow1-Jul-03 6:08 
GeneralRe: creating an array of structures Pin
johnstonsk1-Jul-03 6:30
johnstonsk1-Jul-03 6:30 
David,
I must be doing something wrong because
When I try that I get these errors:



d:\.h(30) : error C2501: 'TSimHeader_arr' : missing storage-class or type specifiers
d:\.h(30) : error C2040: 'TSimHeader_arr' : 'int' differs in levels of indirection from 'struct TSimHeader *'
d:\.h(30) : error C2440: 'initializing' : cannot convert from 'struct TSimHeader *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
d:\.cpp(164) : error C2275: 'TSimHeader' : illegal use of this type as an expression
d:\.h(20) : see declaration of 'TSimHeader'

I don't know why I get the error about trying to convert a pointer to an int?

<br />
 struct TSimHeader<br />
	{<br />
		char   *Name[45];<br />
		char   *Unit[45];<br />
		double  Min[45];	  <br />
		double  Max[45];					<br />
		int SignalCount;		<br />
		int SimStatus;<br />
		<br />
	}*TSimHeader_arr;<br />
<br />
TSimHeader_arr = new struct TSimHeader[10];<br />


Once I have added all the data that I need to the TSimHeader struct I'm trying to put that struct in position 0.

<br />
TSimHeader_arr[0] = TSimHeader;<br />


Thanks David,
your always helpful.
sjSmile | :)
GeneralRe: creating an array of structures Pin
David Crow1-Jul-03 6:56
David Crow1-Jul-03 6:56 
GeneralRe: creating an array of structures Pin
David Crow1-Jul-03 10:57
David Crow1-Jul-03 10:57 
GeneralDatabase Easy Question Pin
Scozturk1-Jul-03 5:35
professionalScozturk1-Jul-03 5:35 
GeneralRe: Database Easy Question Pin
David Crow1-Jul-03 6:09
David Crow1-Jul-03 6:09 
GeneralRe: Database Easy Question Pin
Toni781-Jul-03 18:58
Toni781-Jul-03 18:58 
GeneralModeless Dialogs Pin
Jay Hova1-Jul-03 5:35
Jay Hova1-Jul-03 5:35 
GeneralRe: Modeless Dialogs Pin
valikac1-Jul-03 5:39
valikac1-Jul-03 5:39 
GeneralRe: Modeless Dialogs Pin
David Crow1-Jul-03 6:23
David Crow1-Jul-03 6:23 
GeneralRe: Modeless Dialogs Pin
Jay Hova1-Jul-03 6:37
Jay Hova1-Jul-03 6:37 
GeneralProblem with COMIP.H Pin
ThaisFurlan1-Jul-03 5:01
ThaisFurlan1-Jul-03 5:01 
Generalaudio settings in xp - help Pin
alonk1-Jul-03 4:29
alonk1-Jul-03 4:29 
Generalprinting multiple pages spanning horizontally Pin
Member 4509901-Jul-03 4:28
Member 4509901-Jul-03 4:28 
GeneralRe: printing multiple pages spanning horizontally Pin
basementman1-Jul-03 5:05
basementman1-Jul-03 5:05 
GeneralRe: printing multiple pages spanning horizontally Pin
Member 4509901-Jul-03 5:11
Member 4509901-Jul-03 5:11 
GeneralRe: printing multiple pages spanning horizontally Pin
Member 4509902-Jul-03 6:42
Member 4509902-Jul-03 6:42 
GeneralHHEELLPP!!! Pin
Sunnygirl1-Jul-03 3:57
Sunnygirl1-Jul-03 3:57 
GeneralRe: HHEELLPP!!! Pin
noksi1-Jul-03 4:59
noksi1-Jul-03 4:59 

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.