Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to write a unicode string to a text file Pin
Taka Muraoka29-Dec-05 18:04
Taka Muraoka29-Dec-05 18:04 
AnswerRe: how to write a unicode string to a text file Pin
krmed30-Dec-05 3:57
krmed30-Dec-05 3:57 
QuestionDynamic arrays in C Pin
Waldermort29-Dec-05 4:03
Waldermort29-Dec-05 4:03 
AnswerRe: Dynamic arrays in C Pin
Maximilien29-Dec-05 5:55
Maximilien29-Dec-05 5:55 
AnswerRe: Dynamic arrays in C Pin
Identity Undisclosed29-Dec-05 6:07
Identity Undisclosed29-Dec-05 6:07 
GeneralRe: Dynamic arrays in C Pin
Waldermort29-Dec-05 6:29
Waldermort29-Dec-05 6:29 
GeneralRe: Dynamic arrays in C Pin
Identity Undisclosed29-Dec-05 18:28
Identity Undisclosed29-Dec-05 18:28 
AnswerRe: Dynamic arrays in C Pin
Owner drawn29-Dec-05 17:05
Owner drawn29-Dec-05 17:05 
waldermort wrote:
Words words[] =
{
{"°¡","a","¨¡","(interj.) | ah"},
{"°¢","a","¨¡","an initial particle | prefix to names of people"},
{"ºÇ","a","¨¡","(phonetic particle)"}


MAXCHN 100

See MAXCHN is 100. And you are storing just a small amount of string ie about 2 or 4 chars in each. Once you do this it will run fine. But each structure will take up 400 bytes.

Now just think about the number of structures you allocate. OMG | :OMG: .

I think this is the problem. Be more careful with this.

waldermort wrote:
typedef struct {
char chn[MAXCHN];
char pin[MAXPIN];
char ove[MAXPIN];
char eng[MAXENG];
}


You can restructure it like this...
struct {
char chn[10];
char pin[10];
char ove[10];
char eng[MAXENG];
}


Just an Idea. Wink | ;)

Jesus Loves You and Me Smile | :)
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord


AnswerRe: Dynamic arrays in C Pin
vikas amin29-Dec-05 19:05
vikas amin29-Dec-05 19:05 
AnswerRe: Dynamic arrays in C Pin
Waldermort30-Dec-05 1:48
Waldermort30-Dec-05 1:48 
QuestionShade icon on the view (SDI ) Pin
zhonglin.liang29-Dec-05 3:47
zhonglin.liang29-Dec-05 3:47 
AnswerRe: Shade icon on the view (SDI ) Pin
David Crow29-Dec-05 3:50
David Crow29-Dec-05 3:50 
QuestionThe icon in the view can't be printed in SDI,the text is able to print ? Pin
zhonglin.liang29-Dec-05 3:46
zhonglin.liang29-Dec-05 3:46 
AnswerRe: The icon in the view can't be printed in SDI,the text is able to print ? Pin
David Crow29-Dec-05 3:52
David Crow29-Dec-05 3:52 
QuestionAdvice: Managed C++ or C# Pin
fmmanrique29-Dec-05 3:21
fmmanrique29-Dec-05 3:21 
AnswerRe: Advice: Managed C++ or C# Pin
Chris Losinger29-Dec-05 4:42
professionalChris Losinger29-Dec-05 4:42 
AnswerRe: Advice: Managed C++ or C# Pin
Nemanja Trifunovic29-Dec-05 4:46
Nemanja Trifunovic29-Dec-05 4:46 
AnswerRe: Advice: Managed C++ or C# Pin
Nish Nishant29-Dec-05 8:30
sitebuilderNish Nishant29-Dec-05 8:30 
AnswerRe: Advice: Managed C++ or C# Pin
vikas amin29-Dec-05 18:40
vikas amin29-Dec-05 18:40 
GeneralRe: Advice: Managed C++ or C# Pin
ThatsAlok29-Dec-05 21:13
ThatsAlok29-Dec-05 21:13 
AnswerRe: Advice: Managed C++ or C# Pin
Owner drawn29-Dec-05 18:58
Owner drawn29-Dec-05 18:58 
AnswerRe: Advice: Managed C++ or C# Pin
Joe Woodbury31-Dec-05 7:14
professionalJoe Woodbury31-Dec-05 7:14 
GeneralRe: Advice: Managed C++ or C# Pin
fmmanrique2-Jan-06 10:31
fmmanrique2-Jan-06 10:31 
QuestionUpgrading MFC projects from VS2003 to VS2005 Pin
peterboulton29-Dec-05 2:56
professionalpeterboulton29-Dec-05 2:56 
AnswerRe: Upgrading MFC projects from VS2003 to VS2005 Pin
ddmcr29-Dec-05 3:07
ddmcr29-Dec-05 3:07 

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.