Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File join problem? Pin
Jason Henderson8-Aug-02 17:45
Jason Henderson8-Aug-02 17:45 
GeneralRe: Dll Registration Pin
abhinarulkar8-Aug-02 23:05
abhinarulkar8-Aug-02 23:05 
GeneralThread Synchronization :: Win32 API vs. MFC Pin
valikac8-Aug-02 15:47
valikac8-Aug-02 15:47 
GeneralRe: Thread Synchronization :: Win32 API vs. MFC Pin
Nish Nishant8-Aug-02 17:24
sitebuilderNish Nishant8-Aug-02 17:24 
GeneralRe: Thread Synchronization :: Win32 API vs. MFC Pin
valikac8-Aug-02 17:27
valikac8-Aug-02 17:27 
GeneralChecksum Pin
Ed Gadziemski8-Aug-02 13:04
professionalEd Gadziemski8-Aug-02 13:04 
GeneralSending and Receiving Files Pin
fdmanana8-Aug-02 12:46
fdmanana8-Aug-02 12:46 
GeneralRe: Humm... Pin
Masaaki Onishi8-Aug-02 19:28
Masaaki Onishi8-Aug-02 19:28 
Hello, the codegurus around the world.;)

Even though I can't point out something wrong of your code, your code may
work if you send only one file within 512 characters.

You check if the first send(...) function successfully sends the data.
If not, try not to call send function at all.

At the same time, you had better check if CFile reads the exact buffer before
Send function is called by thread and CEvnet.
(This means that Socket send function may be called before CFile object
restore the 512 bytes data to the buffer?)

You can check these codes in Guncleus project (P2P application)
Go to my article, and try to go to Guncleus project web site, and download
the free code. And Check GnuUpload.h and GnuUpload.cpp, and you will find some
code of how to upload the files.Cool | :cool:

Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper Wink | ;)

-Masaaki Onishi-


GeneralCreateFile & WriteFile Pin
Mavrock8-Aug-02 12:14
Mavrock8-Aug-02 12:14 
GeneralCPropertySheet - initialization Pin
john john mackey8-Aug-02 12:06
john john mackey8-Aug-02 12:06 
GeneralRe: CPropertySheet - initialization Pin
john john mackey8-Aug-02 12:27
john john mackey8-Aug-02 12:27 
QuestionBuggy Debug? Pin
dazinith8-Aug-02 11:36
dazinith8-Aug-02 11:36 
AnswerRe: Buggy Debug? Pin
Shog98-Aug-02 12:23
sitebuilderShog98-Aug-02 12:23 
GeneralRe: Buggy Debug? Pin
dazinith9-Aug-02 4:07
dazinith9-Aug-02 4:07 
AnswerRe: Buggy Debug? Pin
Chris Losinger8-Aug-02 19:37
professionalChris Losinger8-Aug-02 19:37 
AnswerRe: Buggy Debug? Pin
Jeremy Pullicino8-Aug-02 23:42
Jeremy Pullicino8-Aug-02 23:42 
GeneralTimers, Windows and a stupid DLL Pin
User 66588-Aug-02 10:07
User 66588-Aug-02 10:07 
GeneralIAS Extension DLL Pin
Mauricio Ritter8-Aug-02 9:27
Mauricio Ritter8-Aug-02 9:27 
GeneralHeelp!! Double buffering!! Pin
Rickard Andersson208-Aug-02 8:19
Rickard Andersson208-Aug-02 8:19 
GeneralRe: Heelp!! Double buffering!! Pin
Rickard Andersson208-Aug-02 8:40
Rickard Andersson208-Aug-02 8:40 
GeneralKey codes from low level hooks Pin
Alex Korchemniy8-Aug-02 8:19
Alex Korchemniy8-Aug-02 8:19 
GeneralRe: Key codes from low level hooks Pin
Renjith Ramachandran8-Aug-02 9:09
Renjith Ramachandran8-Aug-02 9:09 
GeneralRe: Key codes from low level hooks Pin
Jon Hulatt9-Aug-02 1:23
Jon Hulatt9-Aug-02 1:23 
QuestionAutomatic Scrolling in a list box? Pin
Anonymous Dave8-Aug-02 8:15
sussAnonymous Dave8-Aug-02 8:15 
AnswerRe: Automatic Scrolling in a list box? Pin
Tomasz Sowinski8-Aug-02 8:50
Tomasz Sowinski8-Aug-02 8:50 

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.