Sharing data between DLL and OCX...

Started by Kweepa, Mon 24/05/2004 18:16:06

Previous topic - Next topic

Kweepa

Hello,
Here's what I want to do:
1. Write an Active X editor plugin to edit some data.
2. Write a game DLL to use that data.

Is this possible?
I've been looking at the plugin docs and I don't see any way to do it without writing a separate data file and then copying it to the compiled folder (which can be automated but still).
Still waiting for Purity of the Surf II

Pumaman

Not currently - at the moment, ActiveX plugin data is saved in the editor.dat for design-time use only, whereas normal DLL plugin data is saved in ac2game.dta, so that it can be accessed at runtime.

If you're using a language that supports it (ie. not VB), you can write a dual ActiveX-and-standard-DLL, which exports both the COM functions and the standard ones. Then, you can use the AGS_EditorSaveGame thing as normal.

However, it's a good point, I'll see what I can do in a future version.

Kweepa

Quote from: Pumaman on Mon 24/05/2004 20:57:45
you can write a dual ActiveX-and-standard-DLL, which exports both the COM functions and the standard ones.

Waah! I'm scared!
I guess this is as good a time as any to learn about ActiveX. :-[

Maybe it's better if I write the data in a separate file. Yeah, I think it's better. That way I can copy data from one game to another easily. Phew! Managed to convince myself.

Quote from: Pumaman on Mon 24/05/2004 20:57:45
However, it's a good point, I'll see what I can do in a future version.

Cheers!
Still waiting for Purity of the Surf II

SMF spam blocked by CleanTalk