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

Re: [V8i C++] Losing My Mind in Function To Read Cell

$
0
0

Diagnostics

  1. What is pCellname?  As an argument we know it's a char*, but what does it point to?
  2. If you remove the call to attach the cell library, do you get the same result?
  3. Is this a Debug or Release build?  Your other post about WString informs that question.

Alternative

You're writing C++, so use it!

 std::string l_cellname;
l_cellname = pCellName;

printf ("(1) pCellname [%s], l_cellname=%s\n",
      pCellname, l_cellname.c_str () );

Since model and cell names in V8 are always Unicode strings, you would be better off using std::wstring. And then it's only a short step to use WString.

Regards, Jon Summers
LA Solutions


Viewing all articles
Browse latest Browse all 1677

Trending Articles



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