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

C / C++ / MFC

 
QuestionSending a File to server through HTTP [modified] Pin
Dhiraj kumar Saini21-Oct-08 19:43
Dhiraj kumar Saini21-Oct-08 19:43 
QuestionFile String Sorting Pin
cpvc++21-Oct-08 19:37
cpvc++21-Oct-08 19:37 
AnswerRe: File String Sorting Pin
enhzflep21-Oct-08 20:12
enhzflep21-Oct-08 20:12 
AnswerRe: File String Sorting Pin
Cedric Moonen21-Oct-08 20:33
Cedric Moonen21-Oct-08 20:33 
GeneralRe: File String Sorting Pin
Iain Clarke, Warrior Programmer21-Oct-08 21:48
Iain Clarke, Warrior Programmer21-Oct-08 21:48 
GeneralRe: File String Sorting Pin
Cedric Moonen21-Oct-08 22:09
Cedric Moonen21-Oct-08 22:09 
GeneralRe: File String Sorting Pin
BadKarma21-Oct-08 23:47
BadKarma21-Oct-08 23:47 
QuestionSize of Structure Pin
Anu_Bala21-Oct-08 19:21
Anu_Bala21-Oct-08 19:21 
Hi,
In my applicationim using ine structure and im storing the values of variables each second.
But the size of structure is very high,the filesize is getting increased each second.
My strucutre is
struct ReplayTags //CD07
{
float SPV [900];
float CSV1 [900];
float CVOUT [900];
float CNTP [900];
float CNTI [900];
float CNTD [900];
....
....
char AMCAS [100];
}

I have to write the value of all variables like SPV,CSV1..in to file each second.
But definetly i can say tht im not using whole 900 SPV values etc.,..sometimes it vary from 100 to 200 like tht only.Its dynamic...depends upon my applcaiton it may vary every time..
But i know how many variables are used in tht application.i can get tht by using one variable of count of SPV.
My question how i declare the variable size as dynamic.
I dnt know how to do it.

WriteFile( htReplayFile, temp,(DWORD)sizeof(struct ReplayTags), (LPDWORD)&ReturnVal, (LPOVERLAPPED)NULL );

THis is code used to write in files,Here im using size of Struct.
Pls help me..

Anu

AnswerRe: Size of Structure Pin
Mark Salsbery21-Oct-08 19:39
Mark Salsbery21-Oct-08 19:39 
QuestionHow to find a child window? Pin
Mohammad Khodaea21-Oct-08 19:18
Mohammad Khodaea21-Oct-08 19:18 
AnswerRe: How to find a child window? Pin
Naveen21-Oct-08 20:12
Naveen21-Oct-08 20:12 
QuestionUnhandled exception ? Pin
Le@rner21-Oct-08 19:02
Le@rner21-Oct-08 19:02 
AnswerRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 19:32
Mark Salsbery21-Oct-08 19:32 
GeneralRe: Unhandled exception ? Pin
Le@rner21-Oct-08 19:49
Le@rner21-Oct-08 19:49 
QuestionRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 20:04
Mark Salsbery21-Oct-08 20:04 
AnswerRe: Unhandled exception ? Pin
Le@rner21-Oct-08 20:14
Le@rner21-Oct-08 20:14 
GeneralRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 20:21
Mark Salsbery21-Oct-08 20:21 
GeneralRe: Unhandled exception ? Pin
Le@rner21-Oct-08 20:23
Le@rner21-Oct-08 20:23 
QuestionC/C++ question - Function prototype in other function Pin
Adeel Chaudhry21-Oct-08 18:17
Adeel Chaudhry21-Oct-08 18:17 
AnswerRe: C/C++ question - Function prototype in other function Pin
Naveen21-Oct-08 18:47
Naveen21-Oct-08 18:47 
GeneralRe: C/C++ question - Function prototype in other function Pin
Adeel Chaudhry21-Oct-08 19:37
Adeel Chaudhry21-Oct-08 19:37 
GeneralRe: C/C++ question - Function prototype in other function Pin
Naveen21-Oct-08 19:55
Naveen21-Oct-08 19:55 
Questionmac address libraries Pin
anilaabc21-Oct-08 17:26
anilaabc21-Oct-08 17:26 
AnswerRe: mac address libraries Pin
enhzflep21-Oct-08 18:41
enhzflep21-Oct-08 18:41 
QuestionWhat is the difference between c++ structs and c# structs..? Pin
Aslesh21-Oct-08 17:11
Aslesh21-Oct-08 17: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.