For Frank Oquendo

Discussion in 'AutoCAD' started by terencechatfielduk, Jul 23, 2004.

  1. Frank,

    I'm trying to use the CommonDialog class that I found some time ago on www.acadx.com, and I'm having trouble with the ShowSave function call.

    I can extract the filename selected by the user from the ofn.lpstrFile property, but the buffer on this in the code seems limited. I set it initially to prompt the user with a name for my application in the Filename box of the dialog, but it seems this limits the size of the buffer for the return filename.

    E.g. in your code you set mvarFileName to a buffer size of 256 when initialising the class, but I later reset this to the filename to be prompted e.g. "C:\MyFolder\Drawing.dwg"

    Is there a way to maintain the size of the buffer for the selected filename, and still keep a prompt in the Filename box displayed? I'm probably just not understanding how the class should be used in this instance.
     
    terencechatfielduk, Jul 23, 2004
    #1
  2. I don't have access to that class on my work machine. Would you be kind
    enough to post it so I can have a look? Also, please post your code.
     
    Frank Oquendo, Jul 23, 2004
    #2
  3. No problem
    It's been in limbo as it was hosted by my former employer. I'm currently
    communicating with cadcommunity.net concerning the possibility of
    hosting the site with them.
     
    Frank Oquendo, Jul 23, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.