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

[Connect C++] mdlRefFile_attach changes the directory of the file given in parameters

$
0
0

Hi everybody,

Since the migration on MS Connect Edition, I have a problem with the function mdlRefFile_attach

I want to attach a file which has the same name than the active file but which is in another directory. The attachment works well but the attached file is the same than the active file. The function doesn't attach the file which is in the other directory.

In the function "mdlRefFile_attach ", I check that the correct directory is passed

mdlRefFile_attach(&ModelRefP,gFichierCompare,nom,L"",&origine,&origineref,1.0,NULL,0,NULL, DgnPlatform::REF_FILE_LEVEL_DISPLAY_DEFAULT,true,true);
WChar fileName[MAXFILELENGTH];
mdlModelRef_getFileName(ModelRefP, fileName, sizeof(fileName));

I control the result after the attachement, the file attached is not the good one.

As I said before, this procedure was working well in V8i.

Thanks for your help,

Hervé


Viewing all articles
Browse latest Browse all 4331

Trending Articles



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