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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

64 bit Environment for Visual Studio IDE

pwilliams-3
11-Garnet

64 bit Environment for Visual Studio IDE

Having trouble setting up Visual Studio to compile your 64 bit Pro/TOOLKIT applications? This document will get you started.

http://portal.ptcuser.org/p/do/sd/sid=373&type=0

Patrick Williams | Sr. Application Engineer | Engineering Systems | Steelcase Inc. | 616.698.4078







This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
5 REPLIES 5

Hello Patrick,

Thank you for posting very useful information.

I tried to compile one simple ProToolkit application for 64 bit configuration using steps described in the document.
The project setting works well for Win32 configuration but fails for x64.
I am using WF 3.0 and visual studio 2005 on a 32 bit machine and getting errors for ProToolkit functions while linking.

main.obj : error LNK2001: unresolved external symbol ProMdlRetrieve

Are different protk_dllmd.lib, prodev_dllmd.lib needed for 64 bit machines?

Thanks,

Regards,

Amar Junankar
Imagecom, Inc.

In Reply to Patrick Williams:

Having trouble setting up Visual Studio to compile your 64 bit Pro/TOOLKIT applications? This document will get you started.

http://portal.ptcuser.org/p/do/sd/sid=373&type=0

Patrick Williams | Sr. Application Engineer | Engineering Systems | Steelcase Inc. | 616.698.4078






Amar,

It sounds like the linker can't find the Pro/TOOLKIT library. Did you
also add the C:\ptc\pro\protoolkit\i486_nt\obj directory to the
Additional Includes setting?



Patrick Williams | Sr. Application Engineer | Engineering Systems |
Steelcase Inc. | 616.698.4078 | My Site
<">http://my.steelcase.com/Person.aspx?accountname=NA\PWILLIA3>





Hello Patrick,

Thank you for your reply.

I had added protoolkit\i486_nt\obj folder to additional include settings.
32 bit project configuration works well with that setting.
However, 64 bit project settings need protoolkit\x86e_win64\obj.

Thanks,

Regards,
Amar S. Junankar
Imagecom, Inc.


On Thu, Feb 26, 2009 at 8:44 AM, Williams, Patrick S. <
-> wrote:

> Amar,
>
> It sounds like the linker can’t find the Pro/TOOLKIT library. Did you also
> add the C:\ptc\pro\protoolkit\i486_nt\obj directory to the Additional
> Includes setting?
>
>
>
> *Patrick Williams* | Sr. Application Engineer | Engineering Systems |
> Steelcase Inc. | 616.698.4078 | My Site<">http://my.steelcase.com/Person.aspx?accountname=NA%5CPWILLIA3>
>
>
>
> [image: horizontalsignature_blue2]
>
> *From:* Amar Junankar [

> Are different protk_dllmd.lib, prodev_dllmd.lib needed for 64 bit machines?

While you can build 64bit applications on 32bit systems, you will need the
64bit versions of the Pro/Toolkit .lib files to do this. These files can be
obtained by going through the install process of 64bit Pro/E. You are probably
using the 32bit .lib files which cannot be used to build 64bit applications.

Unfortunately for WF3 and WF4 installs, PTC did not provide a way to install
64bit Pro/E (or any of its components) on a 32bit system. They seem to have
forgotten that multi-architecture Pro/E installs have had built-in support for
about two decades.

Anyway, by copying setup.exe and the dsrc\i486_nt\obj folder from a 32bit install
disk image into all disks of the 64bit install disk image, you can install 64bit
Pro/E on a 32bit system. For your application, you only need the Pro/Toolkit stuff,
but you will need a 64bit install for testing sooner or later.



Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email





Hello Marc,

Thanks for your reply.

I agree that PTC did not provide an easy way to get both 32 and 64 bit
Pro/Tookit libraries.
Problem was due to 32-bit libs from <pro e=" folder=">\protoolkit\i486_nt\obj.

Following is the summary (I hope this will be helpful for other users):

To build both 32 and 64-bit pro/toolkit applications using 32-bit Visual
Studio IDE:
1. Follow instructions given in dwamd_30887.pdf
2. Make sure 64-bit project settings has _X64_ defined in C/C++ ->
preprocessor definitions.
3. Use <pro e=" folder=">\protoolkit\x86e_win64\obj for 64-bit project
Linker->Additional library directories setting.
and <pro e=" folder=">\protoolkit\i486_nt\obj for 32-bit project
Linker->Additional library directories setting.

I will also suggest to refer to Marc's blog about using environment
variables to simplify protk.dat files for 32 & 64-bit pro/toolkit
applications.
Here is the link