Click here to Skip to main content
16,011,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Binary File Compare Pin
sashoalm19-May-08 6:09
sashoalm19-May-08 6:09 
GeneralRe: Binary File Compare Pin
sashoalm19-May-08 6:10
sashoalm19-May-08 6:10 
QuestionHow CWebBrowser2 can use Proxy Pin
vikrant kpr15-May-08 13:33
vikrant kpr15-May-08 13:33 
AnswerRe: How CWebBrowser2 can use Proxy Pin
Rajkumar R15-May-08 20:45
Rajkumar R15-May-08 20:45 
GeneralRe: How CWebBrowser2 can use Proxy Pin
vikrant kpr15-May-08 21:05
vikrant kpr15-May-08 21:05 
QuestionDLL modeless dialog & QT big big problem Pin
428815-May-08 12:19
428815-May-08 12:19 
AnswerRe: DLL modeless dialog & QT big big problem Pin
Stephen Hewitt15-May-08 15:35
Stephen Hewitt15-May-08 15:35 
QuestionGetFile( ) function in vc++/MFC Pin
lahom15-May-08 11:09
lahom15-May-08 11:09 
hi
i have this function:

Public Function GetFile(Filename As String)<br />
    Dim path As String<br />
    Dim Fnum As Integer<br />
<br />
    '---read file in one pass!<br />
    Fnum = FreeFile<br />
    Open Filename For Input As #Fnum<br />
        GetFile = Input(LOF(Fnum), Fnum)<br />
    Close Fnum<br />
<br />
    Exit Function<br />
    <br />
ErrorHandler:<br />
    Err.Description = "GetFile: " &amp; Err.Description &amp; " -&gt; " &amp; File<br />
    Err.Raise Err.Number<br />
<br />
<br />
End Function

AND
Private Sub Form_Load()<br />
Dim path As String<br />
<br />
On Error GoTo nofile<br />
<br />
If Command$  Empty Then<br />
    Form1.Print<br />
    Form1.Print<br />
    Form1.Print<br />
    Form1.Print<br />
    <br />
    Form1.Print "Command Line Parameter passed: " + Command$<br />
    If Left$(Command$, 1) = Chr$(34) And Right$(Command$, 1) = Chr$(34) Then<br />
        path = Mid(Command$, 2, (Len(Command$) - 2))<br />
    Else<br />
        path = Command$<br />
    End If<br />
    'MsgBox (path)<br />
    Form1.Print "Path of File passed: " + path<br />
    Form1.Print<br />
    Form1.Print "File contents: " + vbCrLf<br />
    <br />
    Form1.Print GetFile(path)<br />
    <br />
Else<br />
    'MsgBox ("No Parameters passed!")<br />
End If<br />
<br />
Exit Sub<br />
nofile:<br />
MsgBox ("ERROR: No valid text file!")<br />
<br />
End Sub

but as u can see..they are written in VB
i need the same thing but in Vc++/MFC
so, is there any equivalent functions for them
if not....could someone pleeease help me with this
reeealy ..any kind of help would be appriciated
thank u in advance

AnswerRe: GetFile( ) function in vc++/MFC Pin
David Crow15-May-08 16:42
David Crow15-May-08 16:42 
GeneralRe: GetFile( ) function in vc++/MFC Pin
lahom20-May-08 2:39
lahom20-May-08 2:39 
GeneralRe: GetFile( ) function in vc++/MFC Pin
David Crow20-May-08 3:24
David Crow20-May-08 3:24 
GeneralRe: GetFile( ) function in vc++/MFC Pin
lahom20-May-08 8:50
lahom20-May-08 8:50 
GeneralRe: GetFile( ) function in vc++/MFC Pin
David Crow20-May-08 8:54
David Crow20-May-08 8:54 
GeneralRe: GetFile( ) function in vc++/MFC Pin
lahom20-May-08 9:07
lahom20-May-08 9:07 
GeneralRe: GetFile( ) function in vc++/MFC Pin
David Crow20-May-08 10:18
David Crow20-May-08 10:18 
AnswerRe: GetFile( ) function in vc++/MFC Pin
Hamid_RT15-May-08 20:31
Hamid_RT15-May-08 20:31 
QuestionHow to verify if a password matches the local password policies? Pin
Alex Vargas15-May-08 11:08
Alex Vargas15-May-08 11:08 
QuestionDrag&Drop Sorting in Icon View of CListCtrl Pin
Brett Fowle15-May-08 9:45
Brett Fowle15-May-08 9:45 
QuestionRe: Drag&Drop Sorting in Icon View of CListCtrl Pin
Brett Fowle16-May-08 3:16
Brett Fowle16-May-08 3:16 
QuestionConsole application junk arguments Pin
kasi1415-May-08 6:29
kasi1415-May-08 6:29 
QuestionRe: Console application junk arguments Pin
David Crow15-May-08 6:48
David Crow15-May-08 6:48 
AnswerRe: Console application junk arguments Pin
kasi1415-May-08 7:55
kasi1415-May-08 7:55 
QuestionRe: Console application junk arguments Pin
David Crow15-May-08 8:04
David Crow15-May-08 8:04 
QuestionMFC Grid control 2.26 Pin
capint15-May-08 5:46
capint15-May-08 5:46 
AnswerRe: MFC Grid control 2.26 Pin
toxcct15-May-08 5:56
toxcct15-May-08 5:56 

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.