There's a few issues here, so read carefully. I do need to report a few incidents, but nothing here should be show stopping because there was an error in your code that led to the discovery of other problems.
Good catch on the main API demo working, I've contacted our documentation team to fix this problem.
Due to that, I've taken a closer look at your code snippet and if you save to other formats, it will fail with -506 which means "Invalid object type". However, when saving to DGN, it returns success, but the object obviously doesn't exist in the file.
As for your code, the problem is that you are not setting the VECTORTEXT.Object.nType property to VECTOR_TEXT. When I did this, the file saved properly with the text object in it. Additionally, you should memset the VECTORTEXT.Font.LogFont property to all zeros before you change any of the other properties:
memset(&Text.Font.LogFont, 0, sizeof(LOGFONTW));
For DGN, this didn't affect anything, but for formats that support rotated text and other formatting like DXF, it did alter the output. I'm not sure if this is how it's designed, or if L_VecInitObject should be doing this for you.
In summary, I want to report three incidents for you:
1. documentation update for DGN
2. L_VecSaveFile returning SUCCESS when it shouldn't because of a bad object
3. inquiry into whether or not L_VecInitObject should be setting the VECTORTEXT.Font.LogFont property to zeros.
However, in order to do that I need you to send an email to
support@leadtools.com including the following information:
1. The company you work for
2. The LEADTOOLS serial number(s) you own (if you are evaluating, just say so)
3. The name(s) of the developer(s) using the serial number
4. A link to this forum post