Click here to Skip to main content
15,917,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhmbvn Pin
Anonymous8-Jul-03 19:11
Anonymous8-Jul-03 19:11 
GeneralRe: hmbvn Pin
Michael Dunn8-Jul-03 20:19
sitebuilderMichael Dunn8-Jul-03 20:19 
GeneralRe: hmbvn Pin
Ryan Binns8-Jul-03 20:31
Ryan Binns8-Jul-03 20:31 
GeneralRe: hmbvn Pin
RChin8-Jul-03 23:10
RChin8-Jul-03 23:10 
GeneralAbout MFC Context-Sensitive Help Pin
chepuri_uk8-Jul-03 19:01
chepuri_uk8-Jul-03 19:01 
Questionwhat is the max that will fit in a char Pin
johnstonsk8-Jul-03 17:31
johnstonsk8-Jul-03 17:31 
AnswerRe: what is the max that will fit in a char Pin
John M. Drescher8-Jul-03 17:38
John M. Drescher8-Jul-03 17:38 
AnswerRe: what is the max that will fit in a char Pin
Terry O'Nolley10-Jul-03 8:30
Terry O'Nolley10-Jul-03 8:30 
a char is a single byte so the highest value if cast as an integer would be 255 unsigned or 127 signed.

It sounds like you are actually asking about the max length of a char array. This would be determined either statically by the defining your array like:

// pick a number that is longer than your longest word
#define MAX_WORD_LENGTH 20
// if you know how many words you will conceivably have
#define MAX_WORDS 100

char words[MAX_WORD_LENGTH][MAX_WORDS];

If this definition is made locally - you'll be limited by the size of your stack. If made globally, you'll be limited by your data segment size - or something like that Smile | :)



If you don't know how many words you will have or how long they could possibly be then you'll need to pre parse the file and determine how many words there are and how long the longest one is. Then you could use

char* buffer;
buffer = (char* )malloc(NUM_WORDS*LONGEST_WORD);





I'm going to live forever or die trying!
QuestionIf I know a font's name, how I can acquire its character set? Pin
Alice808-Jul-03 17:26
Alice808-Jul-03 17:26 
AnswerRe: If I know a font's name, how I can acquire its character set? Pin
Ryan Binns8-Jul-03 17:41
Ryan Binns8-Jul-03 17:41 
GeneralRe: If I know a font's name, how I can acquire its character set? Pin
Alice808-Jul-03 21:41
Alice808-Jul-03 21:41 
GeneralRe: If I know a font's name, how I can acquire its character set? Pin
Ryan Binns8-Jul-03 22:12
Ryan Binns8-Jul-03 22:12 
GeneralAccessing Visual C# DLL in Visual C++ project Pin
bluegemcy8-Jul-03 17:02
bluegemcy8-Jul-03 17:02 
Generallink error,why Pin
littlelv8-Jul-03 16:58
littlelv8-Jul-03 16:58 
GeneralRe: link error,why Pin
littlelv10-Jul-03 22:59
littlelv10-Jul-03 22:59 
GeneralNatural Language Processing open source.. Pin
JoeSox8-Jul-03 14:00
JoeSox8-Jul-03 14:00 
GeneralProgrammatically starting IE in "a new window" Pin
Iain Clarke, Warrior Programmer8-Jul-03 11:35
Iain Clarke, Warrior Programmer8-Jul-03 11:35 
GeneralRe: Programmatically starting IE in "a new window" Pin
Michael Dunn8-Jul-03 11:56
sitebuilderMichael Dunn8-Jul-03 11:56 
GeneralRe: Programmatically starting IE in "a new window" Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:22
Iain Clarke, Warrior Programmer8-Jul-03 12:22 
GeneralRe: Programmatically starting IE in "a new window" Pin
Michael Dunn8-Jul-03 15:32
sitebuilderMichael Dunn8-Jul-03 15:32 
GeneralRe: Programmatically starting IE in "a new window" Pin
Rob Caldecott8-Jul-03 12:28
Rob Caldecott8-Jul-03 12:28 
GeneralRe: Programmatically starting IE in "a new window" Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:48
Iain Clarke, Warrior Programmer8-Jul-03 12:48 
GeneralRe: Programmatically starting IE in "a new window" Pin
Ryan Binns8-Jul-03 16:54
Ryan Binns8-Jul-03 16:54 
GeneralRe: Programmatically starting IE in "a new window" Pin
Rob Caldecott8-Jul-03 21:22
Rob Caldecott8-Jul-03 21:22 
GeneralRe: Programmatically starting IE in "a new window" Pin
Ryan Binns8-Jul-03 21:24
Ryan Binns8-Jul-03 21:24 

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.