|
|
Creating a Type 66 STartup Element
Hi, I wonder if anybody can help.
I'm presently trying to create a Type 66 Startup Element in a design
file.
A little history here:- We have a legacy MDL application within the
organisation that relies upon a type 66 startup element in the seed
file to fire the application whenever a design file created with this
seed file is opened. We need to rename the MDL executable (.ma file)
and as such need to delete and recreate the type 66 element in the seed
file.
So far I have found the MDL function :
mdlSystem_CreateStartupElement
mdlSystem_deleteStartupElement function
and also the associated wrappers to utilise the functions in VBA:
Declare Function mdlSystem_createStartupElement Lib
"stdmdlbltin.dll" ( ByVal outElemP As Long , ByVal startupString As
String ) As Long
Declare Function mdlSystem_deleteStartupElement Lib
"stdmdlbltin.dll" ( ByVal programNameP As String ) As Long
I need to be able to perfrom this function in VBA as I am not an MDL
programmer.
I have tried to utilise the above functions in a VBA module (see below)
and every time I run it I get an exception error with the option of
Igonre, Retry or Abort (but only Abort will do anything) resulting in
Microstation exiting with a error dump.
#-------------------------code-------------------------------------------------------#
Declare Function mdlSystem_createStartupElement _
Lib "stdmdlbltin.dll" (ByVal outElemP As Long, _
ByVal startupString As String) As Long
Declare Function mdlElement_add _
Lib "stdmdlbltin.dll" (ByVal element As Long) As Long
Sub Add_StartupElement()
Dim res As Long
Dim oElem As element
Dim elemP As Long
res = mdlSystem_createStartupElement(elemP, "AppNameHere.ma")
res = mdlElement_add(elemP)
End Sub
#-------------------------------------------------------------------------------------#
I understand I've got something wrong but I don't know what....
Any help will be gratefully received.
|
|
0
|
|
|
|
Reply
|
Wombat
|
1/4/2007 2:40:27 PM |
|
|
0 Replies
337 Views
(page loaded in 0.007 seconds)
Similiar Articles: How to create dummy variables from categorical data? - comp.soft ...What data type is this variable? Is it a structure ... Maybe the variable is logical array of 220 elements (or ... How to create dummy variables from categorical data? - comp ... fittype with function handle / anonymous function - comp.soft-sys ...Use functions to make art :D - comp.soft-sys.matlab How to create a unit step function ... fittype - Fit type for curve and surface fitting Anonymous functions make it ... data structure, fread, find - comp.soft-sys.matlab... 2.338 -29.058 +2.347 +35.66 +34.65 ... as a string,, so even blank consider as one element. How can i make ... Value too large for defined data type ... which I ... How to intersect cell arrays? - comp.soft-sys.matlab... the whole line in the cell array like c{1} = 1 66 ... empty result, in fact c{1} and c{2} don't have any element ... Check to see the variable type of cell "c". Chances are ... Matlab crashes on Mac OS X Snow Leopard 10.6.3 - comp.soft-sys ...... with the default layout, if I try to drag to make t... ... NSApplication _sendFinishLaunchingNotification]~ + 66 ... Andy, Matlab opens just fine, but when I for example type ... How does NTP calculate peer accuracy? - comp.protocols.time.ntp ...It is marketing white paper type material. > > Peer ... well: When there is no external server during startup, the ... I did not intend to make a pissing contest over this ... Could anyone give me the spice-mode.el - comp.emacsHi, All I am new to *NIX and I am thinking of writing spice code under Emacs. However, I have no idea of Emacs Lisp. Hence, I could not write a packa... Can't connect to local MySQL server through socket '/var/mysql ...... 2M #If no specific storage engine/table type is defined in an SQL-Create ... 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 ... mac- g5.local.pid ended ~ Here is the startup ... Iterating over a String - comp.lang.java.help... code-point 65 8: character 'f' code-point 66 ... The type information is used to automatically generate ... also be used in a for loop to iterate over all the elements ... Need a FORTRAN compiler for Win7 (or XP) - comp.lang.fortran ...... II READ and PRINT statements that didn't make it into Fortran 66 ... find it quicker in the end to simply either type ... that is why I suggested to add a link in the STARTUP ... Part I: Creating Enterprise Templates - Microsoft Corporation ...... Enterprise Templates and shows you how to create ... explorer, and then click Set as Startup Project. ... this means that to disallow every item type being added to this element ... Element - Microsoft Corporation: Software, Smartphones ...Specifies common language runtime startup information. ... The following sections describe attributes, child elements, and parent elements. 7/24/2012 6:13:33 PM
|
|
|
|
|
|
|
|
|