Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

#import .tlb file make compile error in a specific configuration and specific project folder location

$
0
0

Hi

I make import

in stdafx.h

//----- Inventor interfaces include

#pragmawarning(disable:4192 4049)

#import<RxInventor.tlb>  rename_namespace("Inventor") named_guids raw_dispinterfaces raw_method_prefix("") high_method_prefix("Method") \

      rename("DeleteFile" , "IVDeleteFile")   \

      rename("CopyFile","IVCopyFile") \

rename("MoveFile","APIMoveFile")\

      rename("GetObject","IVGetObject")       \

      rename("SetEnvironmentVariable"  , "IVSetEnvironmentVariable")\

      rename("MoveFile","IVMoveFile"), no_implementation                 

in a cpp file:

//----- Inventor interfaces include

#pragmawarning(disable:4192 4049)

#import<RxInventor.tlb>  rename_namespace("Inventor") named_guids raw_dispinterfaces raw_method_prefix("") high_method_prefix("Method") \

      rename("DeleteFile" , "IVDeleteFile")   \

      rename("CopyFile","IVCopyFile") \

rename("MoveFile","APIMoveFile")\

      rename("GetObject","IVGetObject")       \

      rename("SetEnvironmentVariable"  , "IVSetEnvironmentVariable")\

      rename("MoveFile","IVMoveFile"), implementation_only        

and get an error:

Error 1186 error C2440: 'return' : cannot convert from 'Inventor::iFeatureEntityInput::GetEntityType::miFeatureEntityInputTypeEnum' to 'Inventor::iFeatureEntityInputTypeEnum' d:\install_2014\solidcam\output\releasewin32\tmp\hostlibiv2012\rxinventor.tli 218757

the strange thing about this problem is it happens in configuration Release Win32 but not in Release x64

Please advise


Viewing all articles
Browse latest Browse all 15302

Trending Articles



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