Click here to Skip to main content
15,895,192 members
Articles / Desktop Programming / MFC

Simple File Transfer Using the Network Development Kit 2.0

Rate me:
Please Sign up or sign in to vote.
4.74/5 (14 votes)
29 Dec 20062 min read 91.9K   4.7K   99  
NDK File Transfer is a simple demonstration on how to send and receive a file using the NDK 2.0.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by NDKFileTransferServer.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_NDKFILETRANSFERSERVER_DIALOG 102
#define IDS_CANNOT_START_SERVER         102
#define IDP_SOCKETS_INIT_FAILED         103
#define IDS_ARE_YOU_SURE_TO_CLOSE       104
#define IDS_ARE_YOU_SURE_TO_EXIT        105
#define IDS_USER_QUIT                   106
#define IDS_ERROR_RECEIVING_MESSAGE     107
#define IDS_ERROR_SENDING_MESSAGE       108
#define IDS_CLIENT_CONNECTED            109
#define IDS_UPLOAD_FILE                 110
#define IDS_UPLOAD_FILE_COMPLETED       111
#define IDS_CLIENT_DISCONNECTED         112
#define IDS_SERVER_STARTED              113
#define IDS_SERVER_STOPPED              114
#define IDR_MAINFRAME                   128
#define IDC_BUTTON_START_SERVER         1001
#define IDC_EDIT_PORT                   1002
#define IDC_BUTTON_ADD_FILE             1004
#define IDC_BUTTON_REMOVE_ALL_FILES     1005
#define IDC_EDIT_USER_ACTIVITIES        1006
#define IDC_EDIT_ACTIVITIES             1006
#define IDC_BUTTON_STOP_SERVER          1007
#define IDC_LIST_FILES                  1009

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1011
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Mirego
Canada Canada
My name is Sébastien Lachance.

I love C# developing Windows Phone and Windows 8 applications.

When I’m not in front of a computer, my hobbies include playing bridge, poker and other card games, biking, reading technology news.

Comments and Discussions