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

RE: Opening a text file in Microstation 8.05.00.64

$
0
0

[quote user="Mohammad Aryafar"]I'm trying to open a simple text file[/quote]

Prefer to use the mdlTextFile_api.

[quote user="Mohammad Aryafar"]if (fopen_s(&fp , "text.txt","r") == 0)[/quote]

You probably need a full file specification...

FILE* fp = mdlTextFile_open ("C:\\temp\\text.txt", TEXTFILE_READ);
if (fp) {
  ...
  mdlTextFile_close (fp);
}

[quote user="Mohammad Aryafar"]Unresolved symbol xxx[/quote]

The linker is telling you that it can't find the implementation of xxx in any of the library files you have specified.  Look at the bmake (*.mke) files in the examples delivered with the SDK for more detail.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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