Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs






October, 2007
SMTWTFS
 01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

Search the weblog





























Genii Weblog


Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.


Thu 4 Oct 2007, 04:30 PM
I hope that this will not be a common issue, but there are some developers who will need to work with Midas 3.x and Midas 4.x side by side, or at least sort of side by side.  In other words, if you need to try Midas 4.00 with a script, and then want to go back to try Midas 3.70, for example, to see the differences, you could use this technique.  You could always just copy the nlsxrtc.dll and licmidas.lic for the appropriate version over and over again, but I find that very confusing and easy to mess up.  Instead, this minor tweak allows you to keep both versions in your executable directory at the same time.

The first part of the trick is, the licmidas.lic file for Version 3.x could also be called licmidas.3, while the licmidas.lic file for Version 4.x can also be called licmidas.4.  Therefore, just rename your old 3.x license file to licmidas.3 and copy in your new license file as licmidas.4 and you have both licenses on your system.

The second part of the trick is that the nlsxrtc.dll file doesn't need to be called that, so simply change the nlsxrtc.dll for Version 3.x to nlsxrtc3.dll and leave the nlsxrtc.dll for Version 4 as nlsxrtc.dll.

Of course, you can't load both LSXs at once, so you have to close Notes and restart it, but you can just run.  The Midas 4.x agent(s) should have

Option Public
Option Declare 
Uselsx "*lsxrtc3"       

and the Midas 3.x agents should have

Option Public
Option Declare 
Uselsx "*lsxrtc3"       

Copyright 2007 Genii Software Ltd.