Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using CreateFile() to open LPT1 Fails on Windows 2008 Terminal Server Pin
Steve Thresher23-Dec-08 6:07
Steve Thresher23-Dec-08 6:07 
GeneralRe: Using CreateFile() to open LPT1 Fails on Windows 2008 Terminal Server Pin
Randor 24-Dec-08 17:22
professional Randor 24-Dec-08 17:22 
QuestionCOleDateTime VC++ 6.0 to VC++ 9.0 porting Pin
pratap198019-Dec-08 8:33
pratap198019-Dec-08 8:33 
AnswerRe: COleDateTime VC++ 6.0 to VC++ 9.0 porting Pin
Stuart Dootson19-Dec-08 8:45
professionalStuart Dootson19-Dec-08 8:45 
QuestionCListCtrl and the OnColumnClick event. Pin
Chris Meech19-Dec-08 8:29
Chris Meech19-Dec-08 8:29 
AnswerRe: CListCtrl and the OnColumnClick event. Pin
Code-o-mat19-Dec-08 8:37
Code-o-mat19-Dec-08 8:37 
GeneralRe: CListCtrl and the OnColumnClick event. Pin
Chris Meech19-Dec-08 8:51
Chris Meech19-Dec-08 8:51 
QuestionFTP Append with FtpCommand on WinCe Pin
davidschneider8119-Dec-08 3:21
davidschneider8119-Dec-08 3:21 
I try to implement the FTP Command APPEND on a WinCe5.0 Device but get allways a access violation exception. Although the prgramm crashed the text was appended to the file on the server.

Thank you for your help.

hRootHandle = InternetOpen(TEXT("WinCeFtp"), INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
hFtpHandle = InternetConnect(hRootHandle, TEXT("server"), INTERNET_DEFAULT_FTP_PORT, TEXT("user"), TEXT("password"), INTERNET_SERVICE_FTP, 0, 0);

WCHAR szTemp[256];
wsprintf (szTemp, TEXT("APPE %s"), TEXT("DestFile.txt"));

int bRet = FtpCommand(hFtpHandle, TRUE, FTP_TRANSFER_TYPE_ASCII, szTemp, 0, &hResponse);
if (!bRet) {
  wprintf(TEXT("FtpCommand failed, error: %i\n"), GetLastError());
  return 1;
}

sprintf(buffer, "This data will be appended to the file");

DWORD dwLength = strlen(buffer);
if (!InternetWriteFile(hResponse, (LPVOID)buffer, dwLength, &dwWritten)) {
  wprintf(TEXT("InternetWriteFile failed, error: %i\n"), GetLastError());
  return 1;
}

InternetCloseHandle(hFtpHandle); 
InternetCloseHandle(hRootHandle);

AnswerRe: FTP Append with FtpCommand on WinCe Pin
Code-o-mat19-Dec-08 7:40
Code-o-mat19-Dec-08 7:40 
GeneralRe: FTP Append with FtpCommand on WinCe Pin
davidschneider8121-Dec-08 23:26
davidschneider8121-Dec-08 23:26 
GeneralRe: FTP Append with FtpCommand on WinCe Pin
Member 134925924-Feb-09 20:49
Member 134925924-Feb-09 20:49 
QuestionIs there any function to modify SubString of a string in VC++ Pin
kapardhi19-Dec-08 1:39
kapardhi19-Dec-08 1:39 
AnswerRe: Is there any function to modify SubString of a string in VC++ Pin
VC++Maniac19-Dec-08 1:43
VC++Maniac19-Dec-08 1:43 
AnswerRe: Is there any function to modify SubString of a string in VC++ Pin
Iain Clarke, Warrior Programmer19-Dec-08 3:29
Iain Clarke, Warrior Programmer19-Dec-08 3:29 
GeneralRe: Is there any function to modify SubString of a string in VC++ Pin
Hamid_RT19-Dec-08 5:31
Hamid_RT19-Dec-08 5:31 
AnswerRe: Is there any function to modify SubString of a string in VC++ Pin
David Crow20-Dec-08 6:39
David Crow20-Dec-08 6:39 
Questioncrash at vector::push_back. Pin
VC++Maniac19-Dec-08 1:16
VC++Maniac19-Dec-08 1:16 
AnswerRe: crash at vector::push_back. Pin
Jijo.Raj19-Dec-08 2:15
Jijo.Raj19-Dec-08 2:15 
GeneralRe: crash at vector::push_back. Pin
VC++Maniac19-Dec-08 2:47
VC++Maniac19-Dec-08 2:47 
QuestionRe: crash at vector::push_back. Pin
CPallini19-Dec-08 2:59
mveCPallini19-Dec-08 2:59 
AnswerRe: crash at vector::push_back. Pin
VC++Maniac19-Dec-08 3:11
VC++Maniac19-Dec-08 3:11 
GeneralRe: crash at vector::push_back. [modified] Pin
Iain Clarke, Warrior Programmer19-Dec-08 3:31
Iain Clarke, Warrior Programmer19-Dec-08 3:31 
GeneralRe: crash at vector::push_back. Pin
CPallini19-Dec-08 8:17
mveCPallini19-Dec-08 8:17 
GeneralRe: crash at vector::push_back. Pin
VC++Maniac28-Dec-08 1:58
VC++Maniac28-Dec-08 1:58 
GeneralRe: crash at vector::push_back. Pin
CPallini19-Dec-08 8:11
mveCPallini19-Dec-08 8:11 

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.