Click here to Skip to main content
16,013,489 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Create Label Array on the Run-Time [modified] Pin
_AnsHUMAN_ 16-Jun-06 2:00
_AnsHUMAN_ 16-Jun-06 2:00 
QuestionRe: How to Create Label Array on the Run-Time Pin
David Crow16-Jun-06 2:43
David Crow16-Jun-06 2:43 
AnswerRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 4:01
dataminers16-Jun-06 4:01 
AnswerRe: How to Create Label Array on the Run-Time Pin
Viorel.16-Jun-06 2:06
Viorel.16-Jun-06 2:06 
GeneralRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 2:32
dataminers16-Jun-06 2:32 
GeneralRe: How to Create Label Array on the Run-Time [modified] Pin
Viorel.16-Jun-06 2:35
Viorel.16-Jun-06 2:35 
GeneralRe: How to Create Label Array on the Run-Time Pin
dataminers16-Jun-06 5:24
dataminers16-Jun-06 5:24 
Questionwhy ? [modified] Pin
stupidmistakez16-Jun-06 1:11
stupidmistakez16-Jun-06 1:11 
this is the code:

#include "stdafx.h"<br />
#include "wininet.h"<br />
<br />
wchar_t *lpszAgent;<br />
wchar_t *server = L"aaaa.t35.com";<br />
wchar_t *username = L"aaaaaaaa.t35.com";<br />
wchar_t *password = L"gaaaaa";<br />
wchar_t upFileName[] = L"test.txt";<br />
wchar_t dir[] = L"test";<br />
HINTERNET hInternet;<br />
HINTERNET ftp;<br />
<br />
void upload(void);<br />
<br />
<br />
<br />
int APIENTRY _tWinMain(HINSTANCE hInstance,<br />
HINSTANCE hPrevInstance,<br />
LPTSTR lpCmdLine,<br />
int nCmdShow)<br />
{<br />
upload();<br />
return 1;<br />
}<br />
<br />
void upload()<br />
{<br />
<br />
<br />
<br />
hInternet = InternetOpen( NULL, 1, NULL , NULL,1);<br />
<br />
ftp = InternetConnect(hInternet, server,21, username, password, 1,1,1);<br />
FtpCreateDirectory( ftp, dir );<br />
FtpSetCurrentDirectory(ftp, dir);<br />
<br />
FtpPutFile( ftp, upFileName,upFileName,2, NULL);<br />
<br />
InternetCloseHandle(ftp);<br />
InternetCloseHandle( hInternet);<br />
<br />
<br />
}

but i get these error no matter i tried in many computer (which installs both Visual studio 98 and Visual studio 2005), i dont' know why? can't any one help me?



Error 7 error LNK2019: unresolved external symbol __imp__InternetCloseHandle@4 referenced in function "void __cdecl upload(void)" (?upload@@YAXXZ) et.obj <br />
<br />
Error 8 error LNK2019: unresolved external symbol __imp__FtpPutFileW@20 referenced in function "void __cdecl upload(void)" (?upload@@YAXXZ) et.obj <br />
<br />
Error 9 error LNK2019: unresolved external symbol __imp__FtpSetCurrentDirectoryW@8 referenced in function "void __cdecl upload(void)" (?upload@@YAXXZ) et.obj <br />
<br />
Error 10 error LNK2019: unresolved external symbol __imp__FtpCreateDirectoryW@8 referenced in function "void __cdecl upload(void)" (?upload@@YAXXZ) et.obj <br />
<br />
Error 11 error LNK2019: unresolved external symbol __imp__InternetConnectW@32 referenced in function "void __cdecl upload(void)" (?upload@@YAXXZ) et.obj <br />
<br />
Error 12 error LNK2019: unresolved external symbol __imp__InternetOpenW@20 referenced in function "void __cdecl upload(void)" (?upload@@YAXXZ) et.obj <br />
<br />
Error 13 fatal error LNK1120: 6 unresolved externals D:\My Documents\Visual Studio 2005\Projects\et\Debug\et.exe 1


-- modified at 7:16 Friday 16th June, 2006
AnswerRe: why ? Pin
_AnsHUMAN_ 16-Jun-06 1:14
_AnsHUMAN_ 16-Jun-06 1:14 
GeneralRe: why ? Pin
stupidmistakez16-Jun-06 1:21
stupidmistakez16-Jun-06 1:21 
GeneralRe: why ? Pin
kakan16-Jun-06 1:27
professionalkakan16-Jun-06 1:27 
GeneralRe: why ? Pin
stupidmistakez16-Jun-06 1:29
stupidmistakez16-Jun-06 1:29 
GeneralRe: why ? Pin
kakan16-Jun-06 1:40
professionalkakan16-Jun-06 1:40 
GeneralRe: why ? Pin
Ganesh_T16-Jun-06 1:47
Ganesh_T16-Jun-06 1:47 
AnswerRe: why ? Pin
Laxman Auti16-Jun-06 1:48
Laxman Auti16-Jun-06 1:48 
GeneralRe: why ? Pin
kakan16-Jun-06 2:01
professionalkakan16-Jun-06 2:01 
JokeRe: why ? Pin
Laxman Auti16-Jun-06 2:25
Laxman Auti16-Jun-06 2:25 
GeneralRe: why ? Pin
kakan16-Jun-06 2:44
professionalkakan16-Jun-06 2:44 
GeneralRe: why ? Pin
Viorel.16-Jun-06 1:54
Viorel.16-Jun-06 1:54 
GeneralRe: why ? Pin
_AnsHUMAN_ 16-Jun-06 1:49
_AnsHUMAN_ 16-Jun-06 1:49 
Questionhow to open a dialog box from another dialog box so that both can be activated Pin
usman_07016-Jun-06 0:45
usman_07016-Jun-06 0:45 
AnswerRe: how to open a dialog box from another dialog box so that both can be activated Pin
_AnsHUMAN_ 16-Jun-06 1:15
_AnsHUMAN_ 16-Jun-06 1:15 
AnswerRe: how to open a dialog box from another dialog box so that both can be activated Pin
David Crow16-Jun-06 2:47
David Crow16-Jun-06 2:47 
Questionhow to place a bitmap on toolbar's empty place Pin
Ramu.e16-Jun-06 0:42
Ramu.e16-Jun-06 0:42 
AnswerRe: how to place a bitmap on toolbar's empty place Pin
_AnsHUMAN_ 16-Jun-06 1:16
_AnsHUMAN_ 16-Jun-06 1:16 

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.