if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
General XMetaL Discussion
»
Referencing External DLL files for XMetal Developer/Author 5.1
Pages:
1
« previous
next »
Print
Author
Topic: Referencing External DLL files for XMetal Developer/Author 5.1 (Read 791 times)
craig_83
Member
Posts: 36
Referencing External DLL files for XMetal Developer/Author 5.1
«
on:
September 15, 2010, 03:19:49 AM »
Hi,
I am using XMetal Developer 5.1 and XMetal Author 5.1.
I want to reference a .DLL file that has been created from a C# project within my solution. I currently have to register this dll on my machine (using regasm.exe) before it can be used by XMetal project (via a Javascript file).
I want to create an automatic deployment of this application, but I want to avoid having to register the .DLL within the deployment script. I see you cannot add references to the XMetal project like you can with a normal Visual Studio project.
Is there another way?
Thanks
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1534
Re: Referencing External DLL files for XMetal Developer/Author 5.1
«
Reply #1 on:
September 15, 2010, 02:27:10 PM »
There is no special feature that lets you communicate with a DLL from XMetaL.
XMetaL delegates the actual running of scripts through a Windows script engine and so you are at the mercy of the limitations of whichever script engine you are using (in your case JScript). All of the engines I'm familiar with allow you to communicate with a DLL using COM (and only COM as far as I know). So, the DLL must be registered as a COM object before you can instantiate it:
JScript ActiveXObject()
VBScript CreateObject()
Python* win32com.client.Dispatch()
PerlScript* Win32::OLE()
If there was solution I don't think it would be specific to XMetaL, it would work for other applications that support running JScript (like Internet Explorer, or the Windows command line tool
jscript.exe
).
*Note that Python and PerlScript usually require a module to be loaded earlier in the script in order to use these methods.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...
email us