473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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..
Oct 15 '10 #1
2 1908
GaryTexmo
1,501 Expert 1GB
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.
Oct 15 '10 #2
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..

http://dotnetdebug.net/2006/04/17/pi...elated-issues/



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..
Oct 18 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

46
by: Robin Becker | last post by:
It seems that the rotor module is being deprecated in 2.3, but there doesn't seem to be an obvious alternative. I'm using it just for obfuscation. It seems we have ssl available in 2.3 for sockets,...
99
by: Paul McGuire | last post by:
There are a number of messages on the python-dev mail list that indicate that Guido is looking for some concensus to come from this list as to what *one* alternative syntax for decorators we would...
28
by: Paul McGuire | last post by:
Well, after 3 days of open polling, the number of additional votes have dropped off pretty dramatically. Here are the results so far: Total voters: 55 (with 3 votes each) Votes for each choice...
1
by: prasaddevivara | last post by:
I am using the outerHTML property to modify the HTML of existin elements in a web page in Internet Explorer. But same outerHTM property is not working in firefox browser, Anybody can tell me a...
3
by: Will McGugan | last post by:
Hi, Is there a naming convention regarding alternative constructors? ie static methods where __new__ is called explicity. I use lower_case for methods in general, but thought maybe CamelCase...
0
swatmajor1
by: swatmajor1 | last post by:
Hi There In my attemps to make my own media player, I have learnt many things. But one thing still eludes me, the use of VB2005 SaveDialog. I can get it working, the file extension list and such,...
0
by: sachintandon | last post by:
Hello all, Thanks in advance for your help I have a problem in sending emails, my requirement is to send multipart alternative emails with attachments, I'm able to send text with attachments or...
11
by: Francine.Neary | last post by:
I've read that as well as "normal" Java-like function definitions, e.g. int main(int argc, char **argv), you can also choose to use an alternative syntax, i.e. int main(argc, argv) int argc;...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, I created a basic class library (dll, tlb) in VB2005 for com use in MS Access. I added a form to the class library because eventually, I want to use a SaveDialog control with this dll. ...
1
jovit1188
by: jovit1188 | last post by:
Help me with my dilemma on how to save (.mdb) file wihtout using savedialog browser.. i know how to save into text file but i searched the internet about saving a database file (.mdb) to a path but...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.