Hi,
is there any way to check if microstation is properly licensed or crack version?
regards,
olcay
You can use the following MDL function to check MicroStation's license status.
Place the following declaration at the beginning of a VBA module, before any code …
Declare Function mdlLicense_isRegisteredProduct Lib "stdmdlbltin.dll" ( ) As Long
Here's the VBA function that wraps the MDL …
Public Function IsMicroStationRegistered () As Boolean IsMicroStationRegistered = (0 <> mdlLicense_isRegisteredProduct ())End Function
Usage …
If IsMicroStationRegistered() Then Debug.Print "MicroStation is registered"Else Debug.Print "MicroStation is not registered"EndIf
Note: I haven't tested that code. You may have to debug it.
Regards, Jon Summers LA Solutions
I have tried on Microstation with proper license, 30 day trial license and cracked license.
IsMicroStationRegistered function gives True for all of them.
Unknown said:I have tried on Microstation with proper license, 30 day trial license
That's working as intended.
Unknown said:I have tried on Microstation with cracked license.
You really should talk to Bentley Systems about that!