Click here to Skip to main content
15,843,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMore accurate Pin
followait4-Dec-07 3:25
followait4-Dec-07 3:25 
GeneralRe: In CFormView SDI, change CFormView dynamically, got a problem Pin
followait4-Dec-07 3:36
followait4-Dec-07 3:36 
GeneralHey YOU !!! :( Pin
toxcct4-Dec-07 3:43
toxcct4-Dec-07 3:43 
GeneralRe: Hey YOU !!! :( Pin
followait4-Dec-07 4:19
followait4-Dec-07 4:19 
GeneralRe: Hey YOU !!! :( Pin
Nelek4-Dec-07 22:50
protectorNelek4-Dec-07 22:50 
Generalintellisense in VC++/C# Pin
sree4-Dec-07 2:47
sree4-Dec-07 2:47 
GeneralRe: intellisense in VC++/C# Pin
Maximilien4-Dec-07 3:53
Maximilien4-Dec-07 3:53 
GeneralUsing RAPI Copy Files From Pocket PC to Desktop PC Pin
ni_yuansheng4-Dec-07 2:42
ni_yuansheng4-Dec-07 2:42 
How to copy a file from pocket PC to destktop PC.I want to get the best method.Please help me.Thank you!The follow is my code,but I need the better measure.Which fuction can do it? Wink | ;)

CString strFileNamePC=_T("d:\\nini.txt");
CString strFileNamePPC=_T("\\nini.txt");
CFile oldFile;
oldFile.Open(strFileNamePC, CFile::modeWrite|CFile::modeCreate|CFile::typeBinary);

BSTR bstr = strFileNamePPC.AllocSysString();
SysFreeString(bstr);
CeRapiInit();
HANDLE h;

h = CeCreateFile(bstr, GENERIC_READ, 0/*cannot be shared*/, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);

char cTemp[BUFFER_SIZE];
DWORD nbytes;
CString s;
int iTotBytes = 0;
DWORD n=CeGetFileSize(h,NULL);
if(h!=INVALID_HANDLE_VALUE)
{
AfxMessageBox("??");


while(CeReadFile(h, cTemp, (DWORD)n, &nbytes, NULL)&&nbytes>=1)
{
//if(nbytes>=1)
oldFile.Write(cTemp,n);
}
}
CeCloseHandle(h);
oldFile.Close();
CeRapiUninit();
Yunasheng Ni
GeneralI Want to work with word 2003,2007 in my mfc app Pin
javad_20054-Dec-07 2:24
javad_20054-Dec-07 2:24 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
toxcct4-Dec-07 2:33
toxcct4-Dec-07 2:33 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
javad_20054-Dec-07 4:21
javad_20054-Dec-07 4:21 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
toxcct4-Dec-07 4:33
toxcct4-Dec-07 4:33 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
javad_20054-Dec-07 4:53
javad_20054-Dec-07 4:53 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
Mark Salsbery4-Dec-07 8:07
Mark Salsbery4-Dec-07 8:07 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
javad_20055-Dec-07 3:40
javad_20055-Dec-07 3:40 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
javad_20055-Dec-07 4:51
javad_20055-Dec-07 4:51 
GeneralRe: I Want to work with word 2003,2007 in my mfc app Pin
David Crow4-Dec-07 8:11
David Crow4-Dec-07 8:11 
GeneralVC++ Directories store in which file (VC++2005) Pin
akira324-Dec-07 1:49
akira324-Dec-07 1:49 
GeneralRe: VC++ Directories store in which file (VC++2005) Pin
toxcct4-Dec-07 2:26
toxcct4-Dec-07 2:26 
GeneralRe: VC++ Directories store in which file (VC++2005) Pin
Mark Salsbery4-Dec-07 8:20
Mark Salsbery4-Dec-07 8:20 
QuestionI use ADO to connect DB2, i found that it won't release my memory! why?????? Pin
godsun3-Dec-07 22:01
godsun3-Dec-07 22:01 
GeneralError --------- missing storage-class or type specifiers (for class) Pin
chetan3-Dec-07 21:18
chetan3-Dec-07 21:18 
GeneralRe: Error --------- missing storage-class or type specifiers (for class) Pin
CPallini4-Dec-07 2:07
mveCPallini4-Dec-07 2:07 
QuestionWindow Status Pin
nitin33-Dec-07 20:28
nitin33-Dec-07 20:28 
GeneralRe: Window Status Pin
David Crow4-Dec-07 8:16
David Crow4-Dec-07 8: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.