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

Hi Jon,

[quote user="Jon Mercer"]The function returns a 'StatusInt' which indeed does return an integer/long value. But I don't understand what this is or means.[/quote]

StatusInt is exactly what the name expresses: An integer value (no pointer or anything else) where every value has own specific meaning. It's a standard approach used in C.

[quote user="Jon Mercer"]Could someone either point me to a reference that I can look up these codes or give me a clue as to how I can translate them to something string-like.[/quote]

See mdlerrs.h file in MicroStation SDK, it contains the list of returned error values from different functions.

If you want to convert it into less code style and more readable, you have to do it yourself individually for every code. Be aware the same value can have different meaning depending on the function context: MDLERR_BADARG means "not valid view number" when returned by mdlView_saveNamed, but e.g. in the case of mdlNamedTool_getPath it means "namedTool parameter is NULL".

With regards,

 Jan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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