Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDownload exe from server Pin
siva4556-Mar-09 21:31
siva4556-Mar-09 21:31 
AnswerRe: Download exe from server Pin
Garth J Lancaster6-Mar-09 22:01
professionalGarth J Lancaster6-Mar-09 22:01 
QuestionWhat's process current directory? [modified] Pin
JackPuppy6-Mar-09 21:16
JackPuppy6-Mar-09 21:16 
AnswerRe: What's process current directory? Pin
Garth J Lancaster6-Mar-09 22:04
professionalGarth J Lancaster6-Mar-09 22:04 
AnswerRe: What's process current directory? Pin
sashoalm7-Mar-09 0:12
sashoalm7-Mar-09 0:12 
Questionhow to invoke an exe from local machine using _sapwnlp Pin
siva4556-Mar-09 21:10
siva4556-Mar-09 21:10 
AnswerRe: how to invoke an exe from local machine using _sapwnlp Pin
Eytukan6-Mar-09 21:19
Eytukan6-Mar-09 21:19 
AnswerRe: how to invoke an exe from local machine using _sapwnlp Pin
Hamid_RT6-Mar-09 23:00
Hamid_RT6-Mar-09 23:00 
QuestionSIMPLE Serial Port Communication Read/Write EXAMPLE Pin
sebogawa6-Mar-09 20:53
sebogawa6-Mar-09 20:53 
AnswerRe: SIMPLE Serial Port Communication Read/Write EXAMPLE Pin
Hamid_RT6-Mar-09 21:04
Hamid_RT6-Mar-09 21:04 
Questionhow can i copy an exe from server to client thru Cinternetsession.... Pin
siva4556-Mar-09 20:48
siva4556-Mar-09 20:48 
AnswerRe: how can i copy an exe from server to client thru Cinternetsession.... Pin
Hamid_RT6-Mar-09 20:59
Hamid_RT6-Mar-09 20:59 
GeneralRe: how can i copy an exe from server to client thru Cinternetsession.... Pin
siva4556-Mar-09 21:08
siva4556-Mar-09 21:08 
GeneralRe: how can i copy an exe from server to client thru Cinternetsession.... Pin
Hamid_RT6-Mar-09 23:00
Hamid_RT6-Mar-09 23:00 
GeneralRe: how can i copy an exe from server to client thru Cinternetsession.... Pin
siva4556-Mar-09 23:47
siva4556-Mar-09 23:47 
GeneralRe: how can i copy an exe from server to client thru Cinternetsession.... Pin
Hamid_RT7-Mar-09 1:28
Hamid_RT7-Mar-09 1:28 
QuestionUNICODE problem?? Pin
york5286-Mar-09 20:18
york5286-Mar-09 20:18 
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

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.