Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Tranfering info from program to program

Author
Message
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 24th Jan 2004 11:47
Hey all,

I'm making a painting program. But i'll want that you can change the color, so i wrote a single color change program. And my painting program is an other program. Because i've they were the same program, all your painting progress will be lost by the cls command. So thats why i wrote 2 programs. That's no problem, you can chose your color with the color program and you can paint with the paint program. But now i'll want that the color program to send the color information to the painting program. I could use clipboard.. but that's very slow and not very useful.

So, does anyone have an better idea?

Thanks to help,

The Dream Keeper!

Bring fun to life!!!!!
VishalC
21
Years of Service
User Offline
Joined: 14th Jan 2004
Location:
Posted: 24th Jan 2004 12:08
i really don't know how to do that but what i would do is make the color program create a temporary txt file with the color values, and then make the other program read that text file. Don't know if that can work! i hope so

If it wasn't for the last minute, nothing would get done!
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 24th Jan 2004 12:23
Well, it is possible. But if i would do that. The program probably makes a lot of time breaking errors and speed lost. Why? I'll have to make it so that the color program deletes an .txt file and that the paint program reads it. Then it has to close the file and the color program needs to delete it again and so on. I'll think i could even use the clipboard then. But it is an idea.. hmm.. maybe i'll work it out. And test the clipboard and txt version.

Does anyone else got any ideas?

Bring fun to life!!!!!
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 24th Jan 2004 12:24
Btw.. i was wondering.. how can you make it so that the program maximize and minimise the other program??

Bring fun to life!!!!!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Jan 2004 08:58
Quote: "Btw.. i was wondering.. how can you make it so that the program maximize and minimise the other program??"


You first need to know how to use DLL's, then, you need to know how to use Windows API DLL's, then, you need to know all the right sequences of commands so that you can tell windows to minimize/maximize windows.

To get some help go Here

That should get you started ( but, it's not an easy task using API functions ).

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 12:07:11
Your offset time is: 2025-05-22 12:07:11