Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConversion from CString to Char * ?? Pin
narayanagvs23-Nov-06 0:48
narayanagvs23-Nov-06 0:48 
AnswerRe: Conversion from CString to Char * ?? Pin
Rajesh R Subramanian23-Nov-06 0:50
professionalRajesh R Subramanian23-Nov-06 0:50 
AnswerRe: Conversion from CString to Char * ?? Pin
Viorel.23-Nov-06 1:12
Viorel.23-Nov-06 1:12 
QuestionFunction Signature Pin
Anilkumar K V23-Nov-06 0:45
Anilkumar K V23-Nov-06 0:45 
AnswerRe: Function Signature Pin
Cedric Moonen23-Nov-06 1:00
Cedric Moonen23-Nov-06 1:00 
QuestionHow to change font of menu to Marathi . Pin
Atul2322-Nov-06 23:30
Atul2322-Nov-06 23:30 
QuestionRe: How to change font of menu to Marathi . Pin
Rajesh R Subramanian22-Nov-06 23:36
professionalRajesh R Subramanian22-Nov-06 23:36 
QuestionUsing static for a Large Data Structure Pin
Andy20222-Nov-06 22:55
Andy20222-Nov-06 22:55 
I have a large data array and was told to make it static to ensure that I have enough storage allocated

DATA_DETAILS signal_details[NO_FIELDS]	 =	{
		"1.000000",	 // Scaling
		"Integer",	 // Display Format
		"0",		 // Raw Data String
		"0",		 // Engineering Data String
etc


Note NO_FIELDS could be 25,000 and some of the elements are char arrays of 4096 bytes. i.e. lots of data.

Now if I make it static; e.g.

static DATA_DETAILS signal_details[NO_FIELDS]	 =	{
		"1.000000",	 // Scaling
		"Integer",	 // Display Format
		"0",		 // Raw Data String
		"0",		 // Engineering Data String
etc


the project fails to build as I have extern references; e.g including the keyword static causes a problem.

extern static DATA_DETAILS signal_details[NO_FIELDS];


How can I overcome this problem please.
AnswerRe: Using static for a Large Data Structure Pin
Viorel.22-Nov-06 23:22
Viorel.22-Nov-06 23:22 
AnswerRe: Using static for a Large Data Structure Pin
CPallini22-Nov-06 23:25
mveCPallini22-Nov-06 23:25 
AnswerRe: Using static for a Large Data Structure Pin
Waldermort22-Nov-06 23:45
Waldermort22-Nov-06 23:45 
JokeRe: Using static for a Large Data Structure [modified] Pin
CPallini23-Nov-06 1:17
mveCPallini23-Nov-06 1:17 
GeneralRe: Using static for a Large Data Structure Pin
Prakash Nadar23-Nov-06 4:21
Prakash Nadar23-Nov-06 4:21 
GeneralRe: Using static for a Large Data Structure Pin
CPallini23-Nov-06 4:31
mveCPallini23-Nov-06 4:31 
GeneralRe: Using static for a Large Data Structure Pin
tom groezer23-Nov-06 9:11
tom groezer23-Nov-06 9:11 
GeneralRe: Using static for a Large Data Structure Pin
Prakash Nadar23-Nov-06 18:41
Prakash Nadar23-Nov-06 18:41 
QuestionSHBrowseForFolder() (bis) Pin
super_ttd22-Nov-06 22:35
super_ttd22-Nov-06 22:35 
AnswerRe: SHBrowseForFolder() (bis) Pin
Viorel.22-Nov-06 22:48
Viorel.22-Nov-06 22:48 
GeneralRe: SHBrowseForFolder() (bis) Pin
super_ttd22-Nov-06 22:54
super_ttd22-Nov-06 22:54 
GeneralRe: SHBrowseForFolder() (bis) Pin
Viorel.22-Nov-06 23:18
Viorel.22-Nov-06 23:18 
GeneralRe: SHBrowseForFolder() (bis) Pin
super_ttd22-Nov-06 23:21
super_ttd22-Nov-06 23:21 
GeneralRe: SHBrowseForFolder() (bis) Pin
Viorel.22-Nov-06 23:38
Viorel.22-Nov-06 23:38 
GeneralRe: SHBrowseForFolder() (bis) Pin
Mark Salsbery23-Nov-06 6:14
Mark Salsbery23-Nov-06 6:14 
GeneralRe: SHBrowseForFolder() (bis) Pin
super_ttd23-Nov-06 6:19
super_ttd23-Nov-06 6:19 
GeneralRe: SHBrowseForFolder() (bis) Pin
Mark Salsbery23-Nov-06 6:35
Mark Salsbery23-Nov-06 6:35 

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.