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 Professional Discussion / Comunication b/n EXEs

Author
Message
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 27th Jan 2005 07:17
Im just wondering if there is a way for DBPro's EXEs to "talk" to each other in a way other then writing to file or clipboard.

Also, can DBPro make an exe that takes in date before actual execution.
Ex. You go to command prompt and type "start myprog.exe 25" and make the program do smth w/ the "25". Kind of like a user-defined function?
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 27th Jan 2005 08:44
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 27th Jan 2005 08:57
Thanks
That really helped
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 27th Jan 2005 10:28
Sorry but I got one more question

Is there a way to make DBPro EXEs to return a string so when I use command prompt and run my program it returns a string that is printed in the cmd.exe window?

Thnx in advance
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 27th Jan 2005 16:09
I don't think so but why? If you explain why it needs to put a string there we may be able to help more.

Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 28th Jan 2005 04:27
ummm one thign if u want to actually cumminicate between exes would be
make memory and then and becaus that memory is sytem wide u can use it for anythign (just be sure to delete it after it is done so u dont have memory leaks)
and dont aks me how pointers and stuff works though i am still figuring it out myself

come to my forums http://hck83.darktech.info/forum/ formerly: 404 name not found
"others understand me but i dont understand my own thoughts"
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 29th Jan 2005 06:14
to Lost in Thought

there is no perticular reason, I was just wondering if DBPro is capeble of comunicating with cmd.exe like that.
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 29th Jan 2005 06:17
look into file mapping - part of the expansion pack

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Jan 2005 06:59
Quote: "make memory and then and becaus that memory is sytem wide u can use it for anythign (just be sure to delete it after it is done so u dont have memory leaks)"

That wont work between executables - you need a global memory allocation.

Visit http://homepages.nildram.co.uk/~nickk/
Questions are a burden to others, answers a prison for oneself.
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 30th Jan 2005 07:52
what if both programs are already running and I want to constantly transfer date b/n them?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 30th Jan 2005 08:11
Could use the DDE system.

Visit http://homepages.nildram.co.uk/~nickk/
Questions are a burden to others, answers a prison for oneself.
kkzgreen
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Nashville, TN
Posted: 30th Jan 2005 11:43
What exactly is that?

Login to post a reply

Server time is: 2025-06-08 03:59:13
Your offset time is: 2025-06-08 03:59:13