Click here to Skip to main content
15,910,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is the max that will fit in a char Pin
John M. Drescher8-Jul-03 17:38
John M. Drescher8-Jul-03 17:38 
AnswerRe: what is the max that will fit in a char Pin
Terry O'Nolley10-Jul-03 8:30
Terry O'Nolley10-Jul-03 8:30 
QuestionIf I know a font's name, how I can acquire its character set? Pin
Alice808-Jul-03 17:26
Alice808-Jul-03 17:26 
AnswerRe: If I know a font's name, how I can acquire its character set? Pin
Ryan Binns8-Jul-03 17:41
Ryan Binns8-Jul-03 17:41 
GeneralRe: If I know a font's name, how I can acquire its character set? Pin
Alice808-Jul-03 21:41
Alice808-Jul-03 21:41 
GeneralRe: If I know a font's name, how I can acquire its character set? Pin
Ryan Binns8-Jul-03 22:12
Ryan Binns8-Jul-03 22:12 
GeneralAccessing Visual C# DLL in Visual C++ project Pin
bluegemcy8-Jul-03 17:02
bluegemcy8-Jul-03 17:02 
Generallink error,why Pin
littlelv8-Jul-03 16:58
littlelv8-Jul-03 16:58 
the following is my "ftp visit" program:
/////////////////////////////////////////////
//in "stdAfx.h"
#include <wininet.h>

//in CXXXApp::InitInstance()
if(InternetAttemptConnect(0)!=ERROR_SUCCESS)
AfxMessageBox("connect error");


//in application function
HINTERNET hInetSession;
HINTERNET hSecondary;

if(!(hInetSession=InternetOpen(AfxGetAppName(),INTERNET_OPEN_TYPE_PRECONFIG,
NULL,NULL,0)))
{
AfxMessageBox("InterOpen() error");
return;
}

hSecondary=InternetConnect(hInetSession,g_ipAddress,g_FTPPort,
g_account,g_password,INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,0);
if(!FtpGetFile(hSecondary,remoteFileName,localFileName,FALSE,
FILE_ATTRIBUTE_NORMAL,FTP_TRANSFER_TYPE_ASCII |
INTERNET_FLAG_NO_CACHE_WRITE,0))
{
AfxMessageBox("get ftp file error");
return;
}
////////////////////////////////////////////////////////
error will occur if i choose "using MFC in a shared DLL" in menu "project setting" and build,while no error happen if i choose "using MFC in a static library" and build,why?

the error infomation is as follows:
Bank2.obj : error LNK2001: unresolved external symbol __imp__InternetAttemptConnect@4
D160ABank.obj : error LNK2001: unresolved external symbol __imp__FtpGetFileA@28
D160ABank.obj : error LNK2001: unresolved external symbol __imp__InternetConnectA@32
D160ABank.obj : error LNK2001: unresolved external symbol __imp__InternetOpenA@20
Debug/Bank2.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

the problem is how can i build it successfully in "using MFC in a shared DLL" choice.Cry | :((


be friends
GeneralRe: link error,why Pin
littlelv10-Jul-03 22:59
littlelv10-Jul-03 22:59 
GeneralNatural Language Processing open source.. Pin
JoeSox8-Jul-03 14:00
JoeSox8-Jul-03 14:00 
GeneralProgrammatically starting IE in &quot;a new window&quot; Pin
Iain Clarke, Warrior Programmer8-Jul-03 11:35
Iain Clarke, Warrior Programmer8-Jul-03 11:35 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Michael Dunn8-Jul-03 11:56
sitebuilderMichael Dunn8-Jul-03 11:56 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:22
Iain Clarke, Warrior Programmer8-Jul-03 12:22 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Michael Dunn8-Jul-03 15:32
sitebuilderMichael Dunn8-Jul-03 15:32 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Rob Caldecott8-Jul-03 12:28
Rob Caldecott8-Jul-03 12:28 
GeneralRe: Programmatically starting IE in "a new window" Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:48
Iain Clarke, Warrior Programmer8-Jul-03 12:48 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Ryan Binns8-Jul-03 16:54
Ryan Binns8-Jul-03 16:54 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Rob Caldecott8-Jul-03 21:22
Rob Caldecott8-Jul-03 21:22 
GeneralRe: Programmatically starting IE in &quot;a new window&quot; Pin
Ryan Binns8-Jul-03 21:24
Ryan Binns8-Jul-03 21:24 
GeneralLZW Data Pin
keb8-Jul-03 11:29
keb8-Jul-03 11:29 
GeneralLinking problem Pin
Navin8-Jul-03 10:55
Navin8-Jul-03 10:55 
GeneralRe: Linking problem Pin
Dave Bryant8-Jul-03 11:00
Dave Bryant8-Jul-03 11:00 
GeneralRe: Linking problem Pin
Navin8-Jul-03 11:54
Navin8-Jul-03 11:54 
GeneralModal Dailog Box Pin
ppathan8-Jul-03 9:57
ppathan8-Jul-03 9:57 
GeneralRe: Modal Dailog Box Pin
valikac8-Jul-03 10:10
valikac8-Jul-03 10:10 

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.