Toolkit Library(C/C++)Matrix

如下图(Creo 2.0 至 Creo 5.0):
Snipaste_2019-03-05_15-56-11.jpg
注:

  • 后续说明均以 Creo 4.0 详细说明;

    按照开发语言分类

    PTK:Creo(Pro)Toolkit C

    OTK:Creo Object Toolkit C++

    注:

  • C与C++库可以同时使用。

    按照 Toolkit 库类别分类

    Standard Libraries(标准库)

    Standard Libraries(标准库):These libraries are available on all platforms and are used by the majority of Creo Parametric TOOLKIT sample applications.
    C语言:

Library Name Purpose
protoolkit_NU.lib
ucore.lib
udata.lib
Spawn mode library
pt_asynchronous.lib Asynchronous mode library
protk_dll_NU.lib
ucore.lib
udata.lib
DLL mode library

C++:

Library Name Purpose
protoolkit_NU.lib
otk_cpp.lib
ucore.lib
udata.lib
Spawn mode library
pt_asynchronous.lib
protoolkit_NU.lib
otk_cpp_async.lib
Asynchronous mode library
protk_dll_NU.lib
otk_cpp.lib
ucore.lib
udata.lib
DLL mode library
otk_222.lib If you have the advanced license option 222, include this library in your application.
otk_no222.lib If you do not have the advanced license option 222, include this library in your application.

Alternate Libraries(备用库)

Alternate Libraries(备用库):Maybe useful for applications compiled with /MD flag and built with msvcrt.lib. These libraries are similar to the standard Creo Parametric TOOLKIT libraries in content, but differ in using msvcrt.lib instead of libcmt.lib.
C语言:

Library Name Purpose
protkmd_NU.lib Spawn mode library
ptasyncmd.lib Asynchronous mode library
protk_dllmd_NU.lib DLL mode library

C++:

Library Name Purpose
protkmd_NU.lib
otk_cpp_md.lib
Spawn mode library
ptasyncmd.lib
otk_cpp_async_md.lib
Asynchronous mode library
protk_dllmd_NU.lib DLL mode library

特别的

  • 函数 user_initialize 是 Creo 加载 dll 时初始化函数;
  • 函数 user_terminal 是 Creo 卸载 dll 时调用的函数;
  • Compiling Creo Object TOOLKIT C++ applications with /MTd and /MDd flags is not supported.
  • Although /MD provides compatibility with multi-threaded components, PTC Creo Object TOOLKIT C++ calls must be made within a single thread. PTC Creo does not respond to calls made from multiple threads. Extra threads may be created by applications only to do tasks which do not directly call PTC Creo Object TOOLKIT C++ functions.