Click here to Skip to main content
15,885,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Two Basic Questions about SnapIn Pin
19-Sep-01 8:49
suss19-Sep-01 8:49 
GeneralRe: Two Basic Questions about SnapIn Pin
Jeremy Pullicino19-Sep-01 21:32
Jeremy Pullicino19-Sep-01 21:32 
Generalmenu at Right Side...VC++ Pin
Ahmad9919-Sep-01 3:51
Ahmad9919-Sep-01 3:51 
GeneralRe: menu at Right Side...VC++ Pin
Not Active19-Sep-01 6:11
mentorNot Active19-Sep-01 6:11 
GeneralRe: menu at Right Side...VC++ Pin
Michael Dunn19-Sep-01 8:16
sitebuilderMichael Dunn19-Sep-01 8:16 
GeneralRe: menu at Right Side...VC++ Pin
20-Sep-01 21:13
suss20-Sep-01 21:13 
GeneralRe: menu at Right Side...VC++ Pin
Michael Dunn20-Sep-01 21:58
sitebuilderMichael Dunn20-Sep-01 21:58 
GeneralReloading FTP Pin
José Luis Sogorb19-Sep-01 2:53
José Luis Sogorb19-Sep-01 2:53 
I have this code and I want to force to reload the file from the server (if not it gets it from the cache):
How can I do it?

void getMetar()
{
CString strServerName;
CString strObject;
INTERNET_PORT nPort;
DWORD dwServiceType;
CFtpConnection* pConn = NULL;
CInternetSession* m_pInetSession;

m_pInetSession = new CInternetSession("Unknown",1,INTERNET_OPEN_TYPE_PRECONFIG);

if(!m_pInetSession)
AfxMessageBox("No session");

AfxParseURL("ftp://weather.noaa.gov", dwServiceType, strServerName, strObject, nPort);

if((dwServiceType==INTERNET_SERVICE_FTP)&&!strServerName.IsEmpty())
{
try
{
pConn = m_pInetSession->GetFtpConnection(strServerName, "", "", nPort, FALSE);
}
catch(CInternetException* pEx)
{
char szErr[1024];
pEx->GetErrorMessage(szErr,1024);
AfxMessageBox(szErr);
pEx->Delete();
pConn = NULL;
}
}
else
AfxMessageBox("URL invalid");

pConn->SetCurrentDirectory("/data/observations/metar/stations/");
if(!pConn->GetFile("LEAL.TXT", "tempMet.txt",FALSE))
AfxMessageBox("No found");
}
GeneralAccessing database Pin
19-Sep-01 1:37
suss19-Sep-01 1:37 
GeneralRe: Accessing database Pin
[James Pullicino]19-Sep-01 2:05
[James Pullicino]19-Sep-01 2:05 
GeneralPlay multiple mediaplayer in Win NT Pin
Dhanavanth19-Sep-01 1:04
Dhanavanth19-Sep-01 1:04 
QuestionWhat kind of VIEW is beeing used in different progs? Pin
18-Sep-01 23:34
suss18-Sep-01 23:34 
AnswerRe: What kind of VIEW is beeing used in different progs? Pin
Michael P Butler18-Sep-01 23:40
Michael P Butler18-Sep-01 23:40 
GeneralRe: What kind of VIEW is beeing used in different progs? Pin
18-Sep-01 23:51
suss18-Sep-01 23:51 
GeneralRe: What kind of VIEW is beeing used in different progs? Pin
Michael P Butler19-Sep-01 0:00
Michael P Butler19-Sep-01 0:00 
AnswerRe: What kind of VIEW is beeing used in different progs? Pin
Michael Dunn19-Sep-01 0:18
sitebuilderMichael Dunn19-Sep-01 0:18 
GeneralFinding an item in ListCtrl Pin
Özgür18-Sep-01 23:13
Özgür18-Sep-01 23:13 
GeneralRe: Finding an item in ListCtrl Pin
Tomasz Sowinski19-Sep-01 0:59
Tomasz Sowinski19-Sep-01 0:59 
GeneralQuestion about strings Pin
18-Sep-01 22:41
suss18-Sep-01 22:41 
GeneralRe: Question about strings Pin
[James Pullicino]18-Sep-01 22:58
[James Pullicino]18-Sep-01 22:58 
GeneralRe: Question about strings Pin
18-Sep-01 23:11
suss18-Sep-01 23:11 
GeneralRe: Question about strings Pin
Michael Dunn18-Sep-01 22:59
sitebuilderMichael Dunn18-Sep-01 22:59 
GeneralRe: Question about strings Pin
18-Sep-01 23:09
suss18-Sep-01 23:09 
GeneralRe: Question about strings Pin
Steen Krogsgaard18-Sep-01 23:23
Steen Krogsgaard18-Sep-01 23:23 
GeneralRe: Question about strings Pin
18-Sep-01 23:29
suss18-Sep-01 23:29 

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.