Re: scripting via COM?

brian sharon <[email protected]> Thu, 26 Jan 2006 21:00:36 +0000
Newsgroups gmane.games.devel.general
Message-ID <[email protected]>
I don't think anyone has pointed this out yet, but COM objects are  
not inherently scriptable in and of themselves.  Anything scriptable  
by .NET, VB and other such languages has to implement IDispatch.  So  
adding scriptability to your engine won't be as simple as just  
deriving everything from IUnknown.  For starters, I'm guessing that  
all your methods that you wish to expose aren't already returning  
HRESULTs.

Trying to implement game engine scriptability through COM Automation  
has to be just about the most painful way you could go.

--brian

On 26 Jan 2006, at 18:07, Andras Balogh wrote:

> I've heard that you can use COM objects from .NET using some wrapper.
> My only problem with pure .NET is that not all customers are ready  
> to use it. I would like to have a package that you can use from  
> unmanaged C/C++ as well as from VB, Python, Lua, C#...
> Also, I definitely want to keep my engine in the unmanaged world.
>
> Thanks,
>
> Andras
>
> Jon Watte wrote:
>> If you want to be Microsoft specific (which COM is), then you  
>> probably would do better supporting the CLR (.NET). It is much  
>> richer, and there's a wide variety of languages that run within  
>> the CLR. The development and debugging tools are also top-notch.
>> Cheers,
>>             / h+
>> Andras Balogh wrote:
>>> Now, I believe that most decent scripting languages have some  
>>> kind of
>>> support to easily call into COM objects. So I was thinking: Wouldn't
>>> it be the best to just wrap my engine into a COM object, and then  
>>> the



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557