Click here to Skip to main content
15,909,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: fatal error U1034 Pin
jonesap518-Apr-06 8:19
jonesap518-Apr-06 8:19 
Questionhelp a beginner please~ how to make this software?it with dictionary and chat and file share and .... Pin
tBoai18-Apr-06 4:34
tBoai18-Apr-06 4:34 
AnswerRe: help a beginner please~ how to make this software?it with dictionary and chat and file share and .... Pin
Maxwell Chen18-Apr-06 8:09
Maxwell Chen18-Apr-06 8:09 
QuestionDoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 4:32
GrumbleWeedster18-Apr-06 4:32 
AnswerRe: DoModal in DropFiles Error ?! Pin
Stephen Hewitt18-Apr-06 4:43
Stephen Hewitt18-Apr-06 4:43 
GeneralRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 4:48
GrumbleWeedster18-Apr-06 4:48 
GeneralRe: DoModal in DropFiles Error ?! Pin
Cedric Moonen18-Apr-06 4:55
Cedric Moonen18-Apr-06 4:55 
GeneralRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 5:07
GrumbleWeedster18-Apr-06 5:07 
<br />
int RetVal;<br />
int nFiles = DragQueryFile(hDrop, -1, szDroppedFile, 2048);<br />
for(int i=0;i<nFiles;i++)<br />
{<br />
     DragQueryFile(hDrop,i,szDroppedFile,2048);<br />
     GetFileInfo=GetFileAttributes(szDroppedFile);<br />
     hFile = FindFirstFile(szDroppedFile, &FindFileData);<br />
     FileSize=FindFileData.nFileSizeLow;<br />
  <br />
     int x=CheckForDupeName(false, true, FindFileData.cFileName, -1);<br />
     if(x>-1) // if x>-1 a duplicate filename already exists<br />
     {<br />
         CFileReplace md;<br />
         md.ReturnValue=&RetVal;<br />
         md.DoModal();<br />
<br />
         // Depending on RetVal value either replace the file or skip<br />
         ...<br />
     }<br />
<br />
...<br />


If I comment out the 3 lines regarding the CFileReplace function and assign a value to RetVal the function works fine, it's only by calling DoModal that the error occurs.
QuestionRe: DoModal in DropFiles Error ?! Pin
David Crow18-Apr-06 5:54
David Crow18-Apr-06 5:54 
AnswerRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 6:23
GrumbleWeedster18-Apr-06 6:23 
QuestionRe: DoModal in DropFiles Error ?! Pin
David Crow18-Apr-06 6:39
David Crow18-Apr-06 6:39 
AnswerRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 7:12
GrumbleWeedster18-Apr-06 7:12 
QuestionRe: DoModal in DropFiles Error ?! Pin
David Crow18-Apr-06 7:35
David Crow18-Apr-06 7:35 
AnswerRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 7:37
GrumbleWeedster18-Apr-06 7:37 
QuestionRe: DoModal in DropFiles Error ?! Pin
David Crow18-Apr-06 7:53
David Crow18-Apr-06 7:53 
AnswerRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster18-Apr-06 11:21
GrumbleWeedster18-Apr-06 11:21 
GeneralRe: DoModal in DropFiles Error ?! Pin
David Crow19-Apr-06 2:27
David Crow19-Apr-06 2:27 
GeneralRe: DoModal in DropFiles Error ?! Pin
GrumbleWeedster19-Apr-06 2:45
GrumbleWeedster19-Apr-06 2:45 
QuestionRe: DoModal in DropFiles Error ?! Pin
David Crow18-Apr-06 4:45
David Crow18-Apr-06 4:45 
AnswerRe: DoModal in DropFiles Error ?! Pin
Russell'18-Apr-06 5:08
Russell'18-Apr-06 5:08 
Questionloadlibrary failed Pin
yongwpi18-Apr-06 4:26
yongwpi18-Apr-06 4:26 
AnswerRe: loadlibrary failed Pin
Cedric Moonen18-Apr-06 4:30
Cedric Moonen18-Apr-06 4:30 
GeneralRe: loadlibrary failed Pin
yongwpi18-Apr-06 7:11
yongwpi18-Apr-06 7:11 
Questionhow to invert single bit in 32bit integer? Pin
9ine18-Apr-06 4:07
9ine18-Apr-06 4:07 
AnswerRe: how to invert single bit in 32bit integer? Pin
toxcct18-Apr-06 4:14
toxcct18-Apr-06 4:14 

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.