Re: WinCE Struct Help
From: Steve Maillet \(eMVP\) (nospam1_at_EntelechyConsulting.com)
Date: 03/23/05
- Next message: Steve Maillet \(eMVP\): "Re: Can parallel port be written to in eVC++4.0 emulator?"
- Previous message: Ken Beauchesne: "Re: WinCE Struct Help"
- In reply to: Vin: "Re: WinCE Struct Help"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Mar 2005 12:17:37 -0500
The point they are trying to make is that this is a group focused on Windows
CE application development. Your questions are about basic programming in C
and really not related to Windows CE, thus you would be better served asking
such questions in a group more focused to answering the kind of question you
are asking.
To answering the question:
struct foo {
int x;
int y;
unsinged z[10];
//....
};
struct foo* pFoo;
//..
pFoo = malloc(sizeof(*pFoo)*20); // allocate space for 20 foo structures
If(NULL == pFoo)
//... handle error
...
// reallocate space for 40 items this original 20 are in the same location
in the new larger array and the old one is destroyed.
pFoo = realloc(pFoo, sizeof(*pFoo)*40);
-- Steve Maillet EmbeddedFusion www.EmbeddedFusion.com smaillet at EmbeddedFusion dot com
- Next message: Steve Maillet \(eMVP\): "Re: Can parallel port be written to in eVC++4.0 emulator?"
- Previous message: Ken Beauchesne: "Re: WinCE Struct Help"
- In reply to: Vin: "Re: WinCE Struct Help"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|