Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2008, 04:40 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load mspaint.exe from Visual Basic and save it

Hi,all,

In my VB6.0 program I need to create a button, when user clicks it, it will launch mspaint.exe file to let use open a image file, drawing something on it, then save the image file.

My question is that:
Can I set the path to force the file be saved in some folder that I wish user put them in? so when use click "Save As", it will automatically show the path I set, is it possible?

Thanks!

Lucy

 
Old November 10th, 2008, 05:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Unless you can hack mspaint to do whatever you want, I don't think that there is a way to do that...

Once you launch mspaint, is up to it what it does...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old November 10th, 2008, 05:27 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply.

If I cannot control where the user will store the file, how can I reuse it in latter? My purpose is that after user open a building profile image, he can make a mark on it by drawing a circle a spot. next time when he login, he can see the image he drew before, how can I make this come true?

 
Old November 10th, 2008, 05:47 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You could use the GDI libs to do this. You would then have control over where the images are being saved to. Otherwise you are going to have to instruct the user to save the image in XYZ directory.

hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old November 10th, 2008, 06:01 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Doug,

Would you please give me more details about how to use GDI libs, if there are some sample, that's best.

Thanks!







Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Control State to save/load values VictorVictor ASP.NET 2.0 Professional 0 March 29th, 2007 03:14 PM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Save DTS Package as Visual Basic File vishpala_kadam SQL Server DTS 1 January 10th, 2006 12:34 PM
Save and Load viewstate trex450 ASP.NET 1.0 and 1.1 Professional 0 October 13th, 2004 09:31 AM
Visual Basic 6.0 Danielvb VB How-To 1 June 9th, 2003 04:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.