Alternative API for savedialog box in c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali palengara

    #1

    Alternative API for savedialog box in c#

    Hello,
    Is there any alternative API to call savedialog box in c# .?
    Calling the .Net Savedailog is leads to memory mismatch of the allocated memory using GCHandle.Alloc.

    Thnaks in advance..
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    Really? I've used the SaveDialog box a few times and never noticed this... is there something specific about it? Can you please post some details so others can be informed about it (links, code examples, what not to do). I, for one, would definitely like to know more about this :)

    As for an alternative, I don't know of any API (though I bet you could google around and find a few), but it should be fairly easy to design your own. In fact, that would probably my advice to you since then you are in complete control and can tailor it to do exactly what you need.

    Design a new user control and look into the classes available in System.IO for file/directory access.

    Comment

    • Ali palengara

      #3
      Hi Gary Texmo,
      Thanks for your reply and suggestion.
      I will try to explain you the scenario.
      My c# application have to interact with C++ dll. and tht is having some API to call and some callbacks. So for some callback i need to pass pointers of objects from c#.
      Well everything will work fine.. till the application try to save or open any file using dialog boxes.
      You can go through this articles even though tht is not the exact issue which i m facing..





      I can make a control as u told.. but if any API is supporting for the same will make my work easier and save time..

      Happy coding..

      Comment

      Working...