Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [V8i C#/MDL] Translating StatusInt into something readable.

$
0
0

[quote user="Jon Mercer"]Could someone either point me to a reference that I can look up these codes [/quote]

MDL errors are mostly to be found in the C header mdlerrs.h, which you'll find in the ..\mdl\include folder.  SUCCESS == 0.

Where the MDL function reference manual publishes VBA declarations you have to translate those into C#.  Anything that is a C pointer is called a Long in VBA, but in C# you'll need something else.  This might work — I'm unsure of the String declarations...

[DllImport("stdmdlbltin.dll", CallingConvention = CallingConvention.Cdecl)]
internal static extern Int32 mdlView_saveNamed(String viewNameP, String descriptionP, String viewNameSpace, Int32 viewNum);


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>