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

C / C++ / MFC

 
GeneralRe: Resizing of form view - problem Pin
Sujan Christo30-Sep-04 20:44
Sujan Christo30-Sep-04 20:44 
GeneralRe: Resizing of form view - problem Pin
#realJSOP30-Sep-04 23:49
professional#realJSOP30-Sep-04 23:49 
GeneralRe: Resizing of form view - problem Pin
ledallam1-Oct-04 1:30
ledallam1-Oct-04 1:30 
GeneralRe: Resizing of form view - problem Pin
BlackDice1-Oct-04 3:52
BlackDice1-Oct-04 3:52 
GeneralAdd a scroll bar to Mainframe Pin
ledallam30-Sep-04 20:26
ledallam30-Sep-04 20:26 
GeneralRe: Add a scroll bar to Mainframe Pin
Iain Clarke, Warrior Programmer30-Sep-04 22:58
Iain Clarke, Warrior Programmer30-Sep-04 22:58 
GeneralCopy a File Pin
tgprakash30-Sep-04 19:57
tgprakash30-Sep-04 19:57 
GeneralRe: Copy a File Pin
BlackDice1-Oct-04 4:05
BlackDice1-Oct-04 4:05 
I don't know if CopyFile will work between 2 different machines, but this should:

CFile fileFrom,fileTo;
CString strFrom,strTo;

//get both paths


int nOpen = fileFrom.Open(strFileArray[uFile],CFile::modeRead|CFile::shareDenyWrite);
if(!nOpen)
  return;
unsigned long nLength = file.GetLength();
BYTE* pBytes = new BYTE[nLength];
if(!pBytes)
  return;
fileFrom.Read(pBytes,nLength);
fileFrom.Close();

if(fileTo.Open(strTo,CFile::modeCreate | CFile::modeWrite,&ex))
{
	fileTo.Write(pBytes,nLength);
	fileTo.Close();
}

delete [] pBytes;


[insert witty comment here]

bdiamond Sleepy | :zzz:
GeneralCORRECTION Pin
BlackDice1-Oct-04 4:07
BlackDice1-Oct-04 4:07 
GeneralRe: CORRECTION Pin
tgprakash3-Oct-04 20:04
tgprakash3-Oct-04 20:04 
Generalto send a http POST request to the url or server Pin
Nison Jose30-Sep-04 19:56
Nison Jose30-Sep-04 19:56 
GeneralRe: to send a http POST request to the url or server Pin
ThatsAlok1-Oct-04 18:37
ThatsAlok1-Oct-04 18:37 
GeneralCopy a File Pin
tgprakash30-Sep-04 19:53
tgprakash30-Sep-04 19:53 
GeneralRe: Copy a File Pin
4apai30-Sep-04 20:51
4apai30-Sep-04 20:51 
GeneralRe: Copy a File Pin
tgprakash3-Oct-04 20:02
tgprakash3-Oct-04 20:02 
GeneralCEdit Pin
Neelesh K J Jain30-Sep-04 19:27
Neelesh K J Jain30-Sep-04 19:27 
GeneralRe: CEdit Pin
Sujan Christo30-Sep-04 21:55
Sujan Christo30-Sep-04 21:55 
GeneralRe: CEdit Pin
Neelesh K J Jain30-Sep-04 22:28
Neelesh K J Jain30-Sep-04 22:28 
GeneralHelp needed...."Debug Assertion Failed!" Pin
Kiran Satish30-Sep-04 19:04
Kiran Satish30-Sep-04 19:04 
GeneralRe: Help needed...."Debug Assertion Failed!" Pin
Sujan Christo30-Sep-04 19:26
Sujan Christo30-Sep-04 19:26 
GeneralRe: Help needed...."Debug Assertion Failed!" Pin
Kiran Satish1-Oct-04 4:15
Kiran Satish1-Oct-04 4:15 
Question? Pin
Yulianto.30-Sep-04 18:57
Yulianto.30-Sep-04 18:57 
AnswerRe: ? Pin
PJ Arends30-Sep-04 19:01
professionalPJ Arends30-Sep-04 19:01 
GeneralRe: ? Pin
Yulianto.30-Sep-04 19:13
Yulianto.30-Sep-04 19:13 
GeneralRe: ? Pin
PJ Arends30-Sep-04 19:28
professionalPJ Arends30-Sep-04 19:28 

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.