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

Search:

Type: Posts; User: vcdebugger

Search: Search took 0.03 seconds.

  1. Replies
    14
    Views
    27,479

    Re: COMException was unhandled

    yup, you can do that , make sure the click method is called after the method where file dialog is open... so that the strFileName will have the file name value filled in it...
  2. Replies
    14
    Views
    27,479

    Re: COMException was unhandled

    Try to give escape character for the input path ...


    eg; ("C:\'Temp");
  3. Replies
    14
    Views
    27,479

    Re: COMException was unhandled

    cjja,

    you cannot directly assign like this


    public string strFileName = fDialog.FileName;

    when you do this.. the fDialog.FileName does not contain the path .. it might have NULL...
  4. Replies
    14
    Views
    27,479

    Re: COMException was unhandled

    try to put a break point at this location:


    object fileSave = @"D:\Temp\2-xhtml\" + saveFilename;

    and check what is there in "fileSave" - and is it the same what you are expecting....
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured