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

C / C++ / MFC

 
GeneralRe: exec?? Pin
ThatsAlok4-Aug-05 2:39
ThatsAlok4-Aug-05 2:39 
GeneralRe: exec?? Pin
Trollslayer4-Aug-05 4:47
mentorTrollslayer4-Aug-05 4:47 
GeneralRe: exec?? Pin
Halawlaws4-Aug-05 21:53
Halawlaws4-Aug-05 21:53 
AnswerRe: exec?? Pin
anothervip4-Aug-05 16:25
anothervip4-Aug-05 16:25 
QuestionC++ Math-Failure? modfl == mudfl? Pin
ClockDivider4-Aug-05 0:46
ClockDivider4-Aug-05 0:46 
AnswerRe: C++ Math-Failure? modfl == mudfl? Pin
Maximilien4-Aug-05 2:28
Maximilien4-Aug-05 2:28 
AnswerRe: C++ Math-Failure? modfl == mudfl? Pin
Alex_Y4-Aug-05 2:43
Alex_Y4-Aug-05 2:43 
GeneralDynamic Memory Allocation Pin
sroberts824-Aug-05 0:40
sroberts824-Aug-05 0:40 
Hi folks, just wondering if someone could give me a hand with this. In my header file I have a struct as follows

typedef struct someStruct{
char stuff;
anotherStructure *moreStuff;
char [20] // Packet padding
}someStruct;

This is to simulate a packet message being sent in a Network Simulator and so I need it to be a certain number a bytes. Heres the catch though,the moreStuff is a pointer to the start of an array which can have any number of elements, say each being x bytes. Previously I had just being padding messages with an array of chars to get it up to the required size, but now I need the size to be: fixed size + (no element in array)*x, i.e. its variable. Any ideas how I might sort it that this structure would be of this variable size? The number of elements in the array is not found out until run time.

Thanks a million in advance for any help.
GeneralRe: Dynamic Memory Allocation Pin
badal_akr4-Aug-05 0:53
badal_akr4-Aug-05 0:53 
GeneralRe: Dynamic Memory Allocation Pin
Maximilien4-Aug-05 3:17
Maximilien4-Aug-05 3:17 
GeneralRe: Dynamic Memory Allocation Pin
Alex_Y4-Aug-05 6:47
Alex_Y4-Aug-05 6:47 
GeneralVisual C++ Ressource file (.rc) Pin
Bernard383-Aug-05 23:37
Bernard383-Aug-05 23:37 
GeneralRe: Visual C++ Ressource file (.rc) Pin
Marc Soleda3-Aug-05 23:43
Marc Soleda3-Aug-05 23:43 
GeneralRe: Visual C++ Ressource file (.rc) Pin
Anonymous3-Aug-05 23:54
Anonymous3-Aug-05 23:54 
GeneralRe: Visual C++ Ressource file (.rc) Pin
Marc Soleda3-Aug-05 23:58
Marc Soleda3-Aug-05 23:58 
GeneralRe: Visual C++ Ressource file (.rc) Pin
Bernard384-Aug-05 0:03
Bernard384-Aug-05 0:03 
GeneralRe: Visual C++ Ressource file (.rc) Pin
Bernard383-Aug-05 23:59
Bernard383-Aug-05 23:59 
GeneralRe: Visual C++ Ressource file (.rc) Pin
Marc Soleda4-Aug-05 0:15
Marc Soleda4-Aug-05 0:15 
GeneralRe: Visual C++ Ressource file (.rc) Pin
jamalnasir4-Aug-05 0:04
jamalnasir4-Aug-05 0:04 
Generalproblem while assigning CString(more explanation) Pin
a_david1233-Aug-05 23:11
a_david1233-Aug-05 23:11 
GeneralRe: problem while assigning CString(more explanation) Pin
Marc Soleda3-Aug-05 23:56
Marc Soleda3-Aug-05 23:56 
GeneralRe: problem while assigning CString(more explanation) Pin
Eytukan3-Aug-05 23:57
Eytukan3-Aug-05 23:57 
GeneralRe: problem while assigning CString(more explanation) Pin
Halawlaws3-Aug-05 23:59
Halawlaws3-Aug-05 23:59 
GeneralRe: problem while assigning CString(more explanation) Pin
Eytukan4-Aug-05 0:10
Eytukan4-Aug-05 0:10 
GeneralRe: problem while assigning CString(more explanation) Pin
toxcct4-Aug-05 0:30
toxcct4-Aug-05 0:30 

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.