Click here to Skip to main content
15,895,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PreTranslateMessage Pin
Nishad S3-Oct-05 1:44
Nishad S3-Oct-05 1:44 
QuestionCmenu Pin
act_x2-Oct-05 15:58
act_x2-Oct-05 15:58 
Questionsimulate a hardware interrupt? Pin
hypnotikalthoughts2-Oct-05 14:26
hypnotikalthoughts2-Oct-05 14:26 
AnswerRe: simulate a hardware interrupt? Pin
Jose Lamas Rios2-Oct-05 16:19
Jose Lamas Rios2-Oct-05 16:19 
Questionnetwork inquiries Pin
benjnp2-Oct-05 14:10
benjnp2-Oct-05 14:10 
AnswerRe: network inquiries Pin
Calc202-Oct-05 20:55
Calc202-Oct-05 20:55 
AnswerRe: network inquiries Pin
vikas amin2-Oct-05 20:58
vikas amin2-Oct-05 20:58 
AnswerRe: network inquiries Pin
S Douglas2-Oct-05 23:26
professionalS Douglas2-Oct-05 23:26 
benjnp wrote:
I'd like to create a program that will send a file (.txt) to its server. I came across articles regarding TCP/IP, Socket, WinSock, etc.. Which of these do I have to focused into in creating a simple server/client connections? of course these methods have their own advatages/disadvantages or limitations. There's a NDK program/article here in codeproject but I don't know if I'll just use

Having used the NDK library I can tell you it’s got a nice interface and works well. To send text files (or any files for that matter) you will need to add that functionality. There is however another simple project here that demonstrates sending files.
Network Transfer Of Files Using MFC's CSocket Class
[^]

benjnp wrote:
or better create network programming on my own.
As far as writing your own, go ahead there is no better way to learn network programming than doing it your self.


benjnp wrote:
One more thing, is it possible for a program to detect if the computer it currently resides into is the server or the client? So that my program will automatically shift into server mode/client mode depending where it is being launched. Thanx

That should be easy enough, when the main dialog or view starts, read the servers location (computer name) from where ever (registry or ini file) compare it to the local host (see gethostbyname()) if they are the same then start the app in server mode.

Good Luck...



DEBUGGING : Removing the needles from the haystack.
AnswerRe: network inquiries Pin
benjnp3-Oct-05 5:00
benjnp3-Oct-05 5:00 
QuestionSocket Programming ??? Pin
RanjanShrestha2-Oct-05 9:36
RanjanShrestha2-Oct-05 9:36 
AnswerRe: Socket Programming ??? Pin
Ghasrfakhri2-Oct-05 11:01
Ghasrfakhri2-Oct-05 11:01 
AnswerRe: Socket Programming ??? Pin
John M. Drescher2-Oct-05 11:34
John M. Drescher2-Oct-05 11:34 
Questionusing an "unknown" DLL Pin
reinhard_jd2-Oct-05 7:27
reinhard_jd2-Oct-05 7:27 
AnswerRe: using an "unknown" DLL Pin
Ghasrfakhri2-Oct-05 11:05
Ghasrfakhri2-Oct-05 11:05 
AnswerRe: using an "unknown" DLL Pin
Jose Lamas Rios2-Oct-05 16:57
Jose Lamas Rios2-Oct-05 16:57 
GeneralRe: using an "unknown" DLL Pin
reinhard_jd3-Oct-05 8:07
reinhard_jd3-Oct-05 8:07 
GeneralRe: using an "unknown" DLL Pin
Jose Lamas Rios3-Oct-05 9:04
Jose Lamas Rios3-Oct-05 9:04 
GeneralRe: using an "unknown" DLL Pin
reinhard_jd3-Oct-05 12:57
reinhard_jd3-Oct-05 12:57 
Questionsending url POST method Pin
hamavreg2-Oct-05 6:55
hamavreg2-Oct-05 6:55 
AnswerRe: sending url POST method Pin
Ravi Bhavnani2-Oct-05 7:58
professionalRavi Bhavnani2-Oct-05 7:58 
AnswerRe: sending url POST method Pin
ThatsAlok2-Oct-05 18:19
ThatsAlok2-Oct-05 18:19 
Questiondeclaring const strings Pin
Chintoo7232-Oct-05 6:28
Chintoo7232-Oct-05 6:28 
AnswerRe: declaring const strings Pin
LighthouseJ2-Oct-05 7:28
LighthouseJ2-Oct-05 7:28 
AnswerRe: declaring const strings Pin
Rage_bla2-Oct-05 7:40
Rage_bla2-Oct-05 7:40 
AnswerRe: declaring const strings Pin
Rick York2-Oct-05 11:18
mveRick York2-Oct-05 11:18 

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.