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 / Would this work...

Author
Message
AndrewT
19
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 23rd Mar 2007 04:01
If, in a program, I was too execute another program that loaded an object, is there any way that I could somehow transfer that object into the original program?
zeddex2
19
Years of Service
User Offline
Joined: 4th Mar 2007
Location:
Posted: 23rd Mar 2007 04:49
if a balle1 is blue and balle2 is green do you think balle3 is red ???

lol i don't really anderstand the question but
case 1
if you can call anothere programe ( and this program load a model like a game ) and try to call this program into DBP,
answer i don't think its possible to load an EXE

case 2
if you can load a model from anothere programe like md3 from quake of ter from terragen or a .blend from blender

answer: you need to convert it into a .x and load it in dbp

If you can, I can!
AndrewT
19
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 23rd Mar 2007 21:20
Yea, I know. But what I'm asking is if there's a way to:

1) execute a program within my dbp program

2) load a file or define a variable within the new program and transfer the file or variable information to my original program

please help if possible, thanks.
zeddex2
19
Years of Service
User Offline
Joined: 4th Mar 2007
Location:
Posted: 23rd Mar 2007 21:32
its impossible

If you can, I can!
AndrewT
19
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 23rd Mar 2007 21:34
k, thanks.
The Nerd
22
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 24th Mar 2007 00:20 Edited at: 24th Mar 2007 00:27
Quote: "its impossible"


Actually, no it's not. Please make sure you know what you're talking about before stating that to others new to it No offence, but it could make others get wrong ideas. If you're not sure about it, then just say you aren't

http://darkbasicpro.thegamecreators.com/?f=enhancementpack

Quote: "File Mapping
Sharing data between multiple programs running on the same computer can often be difficult. The File Map commands provided in the expansion pack makes this process much simpler. When creating a file map a global, shared amount of memory will be set up in the Operating System. This can then be read and written to by a Dark Basic Professional application. Then either other Dark Basic Professional applications or applications written in other programming languages that natively support file mapping can access the shared memory."


I think this would make you able to share something like variables through two programs running on the same Computer. Since you can share global data. I have never used it myself though.

I actually think they use this in FPS Creator to communicate between the different "stages" of the program. But I'm not completely sure.

I don't know if there's a free alternative to do this with DBPro though.

Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 24th Mar 2007 00:28
If you try hard enough, I'm sure you can make DBPro achieve anything that involves the computer itself. If all it takes is reading instructions from memory, then I'm pretty sure you could (try) to decode these instructions. Though I'd find it pretty hard and pointless and not worth the effort.

AndrewT
19
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 24th Mar 2007 18:08
k, thanks for the help.

Login to post a reply

Server time is: 2026-07-06 06:43:32
Your offset time is: 2026-07-06 06:43:32