cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

C++ TOOLKIT async tutorial

tekknow
8-Gravel

C++ TOOLKIT async tutorial

Hi Creo C++ TOOLKIT users,

I'm looking for a step-by-step tutorial on how to create a Full Asynchronous C++ TOOLKIT app. The C++ User Guide doesn't have one, nor does the C++ Getting Started guide. How are beginners supposed to figure it out without any documentation?

Here's what I've done so far:

1. Copied folder C:\Program Files\PTC\Creo 4.0\M030\Common Files to C:\ptc\Creo4CommonFiles
2. Create folder C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async
3. Copy contents of protk_install_example (from tutorial on how to get that running) to pt_async folder.
4. Renamed make_install folder (inside of pt_async folder) to make_async
5. Inside make_async folder, deleted creotk.dat
6. Copied protk.dat_exe to creotk.dat
7. Modified creotk.dat file as follows:
name make_async
startup spawn
exec_file C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async\pt_async.exe
text_dir C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async\text
allow_stop true
delay_start false
end
8. in the make_async folder, deleted file make_install
9. copied C:\ptc\Creo4CommonFiles\protoolkit\x86e_win64\obj\make_async to C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async
10. in the make_async file, modified PROTOOL_SRC to PROTOOL_src=C:/ptc/Creo4CommonFiles/protoolkit
11. renamed make_install.vcxproj to make_async.vcxproj
12. renamed make_install.vcxproj.filters to make_async.vcxproj.filters
13. renamed make_install.vcxproj.user to make_async.vcxproj.user
14. modified make_install.vcxproj replacing all occurances of "make_install" with "make_async"
15. in make_install.vcxproj, modified all occurances of "nmake /f make_async dll" with "nmake/f make_async"
16. modified make_async.vcxproj.filters replacing "make_install" with "make_async"
17 deleted C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async\text folder
18 copied C:\ptc\Creo4CommonFiles\protoolkit\protk_appls\pt_async\text folder to C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async\text
19. in C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async, renamed all occurances of filenames make_install* with make_async*
20. In that folder, modifed make_async.sln replacing all occurances of "make_install" with "make_async"
21. In Visual Studio 2015, did File > Open > Project/Solution..., and navigated to C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async.sln
22. Did Build > Build Solution. Build was successful.
23. Placed a Creo Parametric 4.0 shortcut into the folder C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async. Shortcut target shows "C:\Program Files\PTC\Creo 4.0\M030\Parametric\bin\parametric.exe"
24. Double-clicked the shortcut. Saw a dos shell appear momentarily and saw it doing something, then a dialog pops up that says "pt_async.exe has stopped working" - "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." I click the "Close program" button and Creo locks up. I have to use the task manager to kill it.
25. Added Environment variable PRO_COM_MSG_EXE and set the value to C:\ptc\Creo4CommonFiles\x86e_win64\obj\pro_comm_msg.exe
26. Double-clicked the shortcut. Creo appeared. No dialog this time but got the blue spinner which never stopped spinning. Creo is locked up again.
27. Unlocked the app like this:
C:\Program Files\PTC\Creo 4.0\M030\Parametric\bin>protk_unlock.bat "C:\Users\Greg\Documents\Visual Studio 2015\Projects\pt_async\make_async\pt_async.exe". Unlock was successful.
28. Double-clicked the shortcut. Same result as 24.

0 REPLIES 0
Top Tags