One 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?
     
    terencechatfielduk, Jul 23, 2004
    #1
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.