Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: UNICODE problem?? Pin
Eytukan6-Mar-09 20:21
Eytukan6-Mar-09 20:21 
GeneralRe: UNICODE problem?? Pin
york5286-Mar-09 20:39
york5286-Mar-09 20:39 
GeneralRe: UNICODE problem?? Pin
Eytukan6-Mar-09 21:17
Eytukan6-Mar-09 21:17 
GeneralRe: UNICODE problem?? Pin
york5286-Mar-09 21:25
york5286-Mar-09 21:25 
GeneralRe: UNICODE problem?? Pin
Eytukan6-Mar-09 21:42
Eytukan6-Mar-09 21:42 
GeneralRe: UNICODE problem?? Pin
york5288-Mar-09 6:37
york5288-Mar-09 6:37 
GeneralRe: UNICODE problem?? Pin
Eytukan8-Mar-09 6:47
Eytukan8-Mar-09 6:47 
GeneralRe: UNICODE problem?? Pin
york5288-Mar-09 7:06
york5288-Mar-09 7:06 
No I use cout to display a int value of the string

The word lib save the string like this

struct WORD_DATA
{
	unsigned int hash;
	TCHAR word[10];
	unsigned int address;
	unsigned int localAddr;
};


I use fwrite to write a WORD_DATA and fread to read from the file

First I segment string (such as "you") form source file and get the hash value of string then I go to hash table by index(unsiged int hash(such as 1020)) to find out if it in the table (if there is more than one word that having the same hash value I use wcscmp (wcscmp(WORD_DATA.word, "you")) to find the correct one)

But Release mode it all failed (can't be found) and Debug it runs correctly

At last if the word exists I push back the localAddr value to vector<int> then display all the results But Release mode because all failed to find no results displayed

Confused | :confused: Dead | X|

If it still not clear I can post my program to you

Thank you so much
it's so kind of you
GeneralRe: UNICODE problem?? Pin
Eytukan8-Mar-09 7:22
Eytukan8-Mar-09 7:22 
GeneralRe: UNICODE problem?? Pin
york5288-Mar-09 17:32
york5288-Mar-09 17:32 
GeneralRe: UNICODE problem?? Pin
york5288-Mar-09 20:13
york5288-Mar-09 20:13 
GeneralRe: UNICODE problem?? Pin
york5288-Mar-09 20:39
york5288-Mar-09 20:39 
AnswerRe: UNICODE problem?? Pin
Eytukan8-Mar-09 21:05
Eytukan8-Mar-09 21:05 
GeneralRe: UNICODE problem?? Pin
york5288-Mar-09 21:42
york5288-Mar-09 21:42 
QuestionPNG files Pin
dSolariuM6-Mar-09 20:13
dSolariuM6-Mar-09 20:13 
AnswerRe: PNG files Pin
Hamid_RT6-Mar-09 20:37
Hamid_RT6-Mar-09 20:37 
AnswerRe: PNG files Pin
Cedric Moonen6-Mar-09 22:07
Cedric Moonen6-Mar-09 22:07 
QuestionSystem Drive Path. Pin
Le@rner6-Mar-09 19:49
Le@rner6-Mar-09 19:49 
AnswerRe: System Drive Path. Pin
Garth J Lancaster6-Mar-09 19:55
professionalGarth J Lancaster6-Mar-09 19:55 
GeneralRe: System Drive Path. Pin
Le@rner6-Mar-09 19:58
Le@rner6-Mar-09 19:58 
GeneralRe: System Drive Path. Pin
«_Superman_»6-Mar-09 20:04
professional«_Superman_»6-Mar-09 20:04 
GeneralRe: System Drive Path. Pin
Eytukan6-Mar-09 20:15
Eytukan6-Mar-09 20:15 
AnswerRe: System Drive Path. Pin
Eytukan6-Mar-09 20:15
Eytukan6-Mar-09 20:15 
QuestionThere's no REAL programer left here in codeproject? !!! Pin
Joseph Marzbani6-Mar-09 17:55
Joseph Marzbani6-Mar-09 17:55 
JokeRe: There's no REAL programer left here in codeproject? !!! Pin
«_Superman_»6-Mar-09 18:52
professional«_Superman_»6-Mar-09 18:52 

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.