CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: cardio5643

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    811

    Re: catch file deletion

    Okay. So Skizmo was right. It was because finder was still open. i tried pEx->m_cause() but it wasnt liking that. i than tried finder.CloseContext before i deleted it. it didnt like that either. so i...
  2. Replies
    5
    Views
    811

    catch file deletion

    hopefully this is quick and painless. i have code below that no matter what catches and comes back file cannot be removed. is there another way to do this or am i doing something wrong ? help?

    ...
  3. Replies
    2
    Views
    583

    CopyFile Trouble

    Hello - I am looking to copy a file from one place to another in the simplest way possible (media files, & using MFC). I have this line
    CopyFile(_T("C:\\Dummy\\ari.avi"),_T("C:\\TEMP\\"),true);
    ...
  4. Thread: Id usb

    by cardio5643
    Replies
    1
    Views
    529

    Id usb

    Is there a way to have my app find on any system a certain, particular USB that is the exact same USB every time, just moved from system to system, along with the app?
    For example the same USB...
  5. Replies
    3
    Views
    902

    dates and strings

    Reading a date in form of a string in from a text file. Goal is to compare it against a date obtained from a CFileFind::GetCreationDate. Once I read the string date from file, how can I get it back...
  6. Replies
    1
    Views
    701

    string to date

    I have a string that is being taken from a DateTimePicker control and writen to a file, then being read again so it is still a string. Is there any way to get it back into like a Ctime format? Or any...
  7. Thread: CFileFind

    by cardio5643
    Replies
    3
    Views
    936

    CFileFind

    I am working with a function that is searching for files. I want to give it a directory, and have it search every directory and file within that initial directory. I know in .net there is a...
  8. Replies
    7
    Views
    1,271

    Re: Debug *** failed

    void CVEUDlg::Recurse(LPCTSTR pstr)
    {
    CFileFind finder;
    CString strWildcard(pstr);
    strWildcard += _T("\\*.*");
    CString strToFind(pstr);
    strToFind+=_T("\\ari.*");
    BOOL bWorking =...
  9. Replies
    7
    Views
    1,271

    Re: Debug *** failed

    Yes, I know you have to call FindNextFile, and I have been working with MSDN's example closely.
  10. Replies
    7
    Views
    1,271

    Re: Debug *** failed

    I did. It brought me to the filefind.cpp to line 291 which is this

    CString CFileFind::GetFilePath() const
    {
    ASSERT(m_hContext != NULL); //291
    ASSERT_VALID(this);


    ?
  11. Replies
    7
    Views
    1,271

    Debug *** failed

    I am getting this odd error "Debug Assertion Failed" while trying to run my program. I have narrowed it down to the line that is causing the problem, but can not figure out why. Maybe one of you can....
  12. Replies
    1
    Views
    619

    Search Files

    I am trying to search through files/directories given a starting directory from the user, I wish to search by all types of parameters, file size, file name, and especially file type. I am not sure...
  13. Thread: String Mess

    by cardio5643
    Replies
    1
    Views
    605

    String Mess

    I have and need a
    std::string strFilePath; // Filepath

    I also want to set a fPath which needs to be a CString because I am grabbing it from an edit box via GetWindowText

    fPath...
  14. Replies
    4
    Views
    9,511

    Re: MFC txt File Writing

    By kind of I mean I mean the output in the file is H_o_c_k_e_y_ _i (where '_' = a box looking character)

    I started with Cfile. Got help from here and came up with that code. New to MFC - having...
  15. Replies
    4
    Views
    9,511

    MFC txt File Writing

    Trying to have a text file to write app feedback to. heres the code
    HANDLE hFile = CreateFile(_T("C:\\TEMP\\MyFile.txt"),
    GENERIC_WRITE, FILE_SHARE_READ,
    NULL, CREATE_ALWAYS,...
  16. Replies
    3
    Views
    778

    Re: Text File Writing

    Thanks - no more error during compilation, but only getting garbage characters in the text file...How do I fix that?
  17. Replies
    3
    Views
    778

    Text File Writing

    Want to write a text file to save log data during app runtime. Grabbed this code from MSDN itself, and it doesnt compile.

    HANDLE hFile = CreateFile(_T("C:\\TEMP\\MyFile.txt"),
    ...
  18. Replies
    1
    Views
    769

    15 Errors for one line

    I have
    const std::string &refcstrRootDirectory,
    std::string strFilePath; ,
    WIN32_FIND_DATA FileInformation;

    This one line

    strFilePath = refcstrRootDirectory + "\\" +...
  19. Replies
    9
    Views
    1,541

    Re: Conversion (MFC)

    Close But that is still not doing it. I got -

    'CWnd::SetWindowTextW' : cannot convert parameter 1 from 'const char *' to 'LPCTSTR'

    ?
  20. Replies
    9
    Views
    1,541

    Re: Conversion (MFC)

    I am not a begginer at c++. I have taken a couple years of it in school, worked with it at my job, and have no trouble in vc++ express at all. But now I have to take one of my programs from express...
  21. Replies
    2
    Views
    736

    print contents of vector

    How can I print the contents of a vector
    std::vector<std::string> refvecFiles;
    ?
  22. Replies
    9
    Views
    1,541

    Re: Conversion (MFC)

    Right, so how can I print to screen the contents of the vector. Which at this point is only one item?
  23. Replies
    9
    Views
    1,541

    Conversion (MFC)

    I seem to have much trouble with data types and knowing what I can do with them and what I cant. I have a regular edit box, with a member variable I added through the wizard. I also have another...
  24. Replies
    2
    Views
    876

    mFC ftn() parameters

    I am new to, and not loving, MFC. I want to add parameters to a function, and the wizard does not include data types that I want. The nOrmal way i would just add the variable declarations to the...
  25. Replies
    9
    Views
    2,027

    Re: Cant fix this Error

    Can I not do those operations on wstring?
Results 1 to 25 of 42
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured