cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Include standard c++ functions in Creo

Sekar1
12-Amethyst

Include standard c++ functions in Creo

I have creo toolkit project and I am trying to perform File operations  using Headers :

iostream,fstream,sstream,string.h.

Whenever I try to build the code I am getting Linking errors and the file responsible is Protoolkit_NU.lib.

when I comment the code which is using fstream etc, the project builds fine.

 

I am using Creo M030 and  VS 2015.

I have written all the File operation code in separate Header file and calling it in Creo project.

 

any suggestions ?

 

Thanks and regards,

Sekar

3 REPLIES 3

Hi

 

seems like you use the wrong libs to link against. Some of the definitions are already done in other libs, so you should check which of them and exclude or replace them.

 

You can also ignore all double definitions, but this could result in linker warnings and memory errors.

 

If I need to do this I use options like these.

/ignore:4049 /ignore:4099 /ignore:4217 /FORCE:MULTIPLE

 

Br,

Eike

Thanks for the reply,

 

I am new to creo toolkit customization.

can I import an external C# dll into my Creo Custom toolkit project ?

 

regards,

Sekar

You are in a std. C / C++ Application. So you can do whatever you like (don't forget CCW), but we have decided to use a monolith C/C++ DLL for the reason of path building and depencies also from UNC Path and all that stuff.

 

So as far as I now you need to use COM (C# in C++) or CLR (C++ in C#) to get this running. But I have only used CLR for an async application right now COM only for testing purpose and never have written a real application in it. Also remember that you get a dependency to the installed .NET Version on the Client machine.

 

So I would recommend to use a std. C/C++ library (.lib), but also a C# library or dll (remember to append the search path) should be possible.

 

Br,

Eike

Announcements