Hi,
I did some research on this topic on internet and Bentley web site. I did not find information I need.
I got my application compiled and generate my DLL and MA files.I have following questions:
(1) Where should copy these files?
(2) The format of config file looks like?
(3) The Config file should go to which folder?
Are there some document to talk about these?
Best,
Zhen
Unknown said:Where should copy these files?
The examples delivered with the SDK are a good place to look.
For example, the bmake file for IncrementText has these lines...
... DLM_DEST = $(mdlapps) ... MA_DEST = $(DLM_DEST) ... #-------------------------------------------------------------------------------------- # Link and sign the MA #-------------------------------------------------------------------------------------- "$(MA_DEST)$(MA_NAME)$(MA_EXT)" : $(MA_RSC_FILES) ...
Now you're going to ask, "Where is mdlapps defined?" Searching the .mki files finds it in MicroStationPolicy.mki, where it's defined like this...
mdlapps = $(mstation)mdlapps/
The moral is, do what the examples do! If you write your build rules correctly, bmake puts your files where you need them.
Unknown said:The format of config file looks like?
Configuration files are plain text. There are plenty of config. files delivered with MicroStation that you may examine. Search for *.cfg|*.pcf|*.ucf
It's not mandatory to have a config. file, but it can be useful.
Unknown said:The Config file should go to which folder?
The usual place is \MicroStation\config\appl
Regards, Jon Summers LA Solutions
Hi Zhen,
Unknown said:The previous version need a CFG file and a MA file.
It's not true. I guess by the "previous version" you mean MicroStation and in such case there is no difference between older MicroStation versions and CONNECT Edition, because a concept how MicroStation is configured is still the same including the most of configuration variables. And also the structure of MicroStation folder is very similar.
So stat with mdlapp folder (and Jon wrote it already) and if you want to use the custom folder (which make sense for more complex applications), modify a proper variable (e.g. MS_DGNAPPS) accordingly.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said:The previous version need a CFG file and a MA file
A MicroStation application named zhen, built as a DLL, has at least two files: zhen.ma and zhen.dll. A configuration file zhen.cfg is not necessary, although you may want to provide that file so that you can control your app. more easily after the user has installed it.
As Jan wrote, it's not clear what you mean by "The previous version need a CFG". Do you mean that one of MicroStation's configuration files must be altered, or do you have your own zhen.cfg configuration file?