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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to build 64Bit Toolkit DLL

msteffke
12-Amethyst

How to build 64Bit Toolkit DLL

Hi group,
I need to convert all my dlls to 64 bit. They need to be WF3
compatable.

From what I understand I need to use SDK 2003. Is this really a free
download? Are there sample mak files for 64?

Also, my development workstation is 32 bit. Can I build a 64 bit app on
it?

Thanks ,
Mark Steffke

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

Yes, you need the 64-bit SDK, which is indeed free.
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24826
or http://www.microsoft.com/download/en/details.aspx?id=22668 (install from web)


No, you cannot build the 64-bit dll on a 32-bit PC.
The above SDK must be instaleld and compile & link on a 64-bit PC with 64-bit Windows OS.


Compiling and linking are nearly identical.
See my attached makefiles.

Gerry

In Reply to Mark Steffke:


Hi group,
I need to convert all my dlls to 64 bit. They need to be WF3
compatable.

From what I understand I need to use SDK 2003. Is this really a free
download? Are there sample mak files for 64?

Also, my development workstation is 32 bit. Can I build a 64 bit app on
it?


Hi Gerry -

Thanks for posting these links. There's one mistake in your post, though:

> No, you cannot build the 64-bit dll on a 32-bit PC.
> The above SDK must be instaleld and compile & link on a 64-bit PC with
> 64-bit Windows OS

While it's really preferable to have a 64-bit machine for this, you can
still compile and link your applications on a 32-bit machine with this SDK.
Just make sure you download the 32-bit version, it contains the compiler,
linker and libraries to to write both 32- and 64-bit DLLs.

I did this on and off for 3 years on a 32-bit machine. The big problem was
that I couldn't TEST the 64-bit DLLs. When someone discovered bugs in the
64-bit version that didn't show up in the 32-bit version, I didn't have
the means to debug the 64-bit version.

(Patrick Williams could tell you how to set up remote debugging in a
situation like this, but that's a subject for another thread).

To reiterate, anyone developing 64-bit Windows DLLs should get a 64-bit
computer and OS. That way, you can write and test for both 32-bit and
64-bit environments.

|+| M a r k |+|

Mark Stallard
Rapid Response Development
information Solutions
Integrated Defense Systems
Raytheon Company




(business)
+1.978.436.6016
(cell)
+1.617.331.5443
(tie line)
239.6016

-



880 Technology Drive
Billerica, MA 01821
www.raytheon.com


Raytheon Sustainability

This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this message
in error, please so advise the sender by reply e-mail and delete this
message. Thank you for your cooperation.









benz2
1-Newbie
(To:msteffke)

body{font-size:10pt;font-family:arial,sans-serif;background-color:#ffffff;color:black;}p{margin:0px;}Here's a hint that cost me a few days...

VS2008 does NOT install 64-Bit support by default, even if you are on a 64-bit machine. While you are installing it, (or afterward, re-invoking the installer and using the Add Option) you need to expand the C++ option and check the checkbox for the the option to support 64-bit support.

See:
benz2
1-Newbie
(To:msteffke)

body{font-size:10pt;font-family:arial,sans-serif;background-color:#ffffff;color:black;}p{margin:0px;}Re-reading the tread.... My hint is for WF5.0, which uses VS2008, and according to MSDN also seems to apply to VS2005, but I don't see the same for VS2003

Ben Franklin
Ben Franklin

Mark,
The other responses to your question are correct. You can compile a 64 bit dll on a 32 bit Windows machine however you can't test it. The SDK is a free download and it comes with the 64 bit cross compilers. I have a walk-through on how to do this in the Pro/TOOLKIT course I teach for WF 3.0. There's a few hoops to jump through but it does work quite nicely. You would have to follow the same procedure if you were on a 64 bit Windows machine.

Are you using MSVC .NET 2003?

Here are the basic steps:

1. Acquire the 64 bit protoolkit directory from a 64 bit installation and put it on your machine.

2. Download and install the Windows Server 2003 SDK R2.

a. Web install PSDK-x86.exe

6. Create a new Console Application that creates a dll.

7. Open one of the 64 bit protoolkit make files and mimic the settings from the makefile in the project.


Patrick Williams | Engineering Systems | o: 616.698.3766 | c: 616.947.2110
[cid:image001.jpg@01CC6D31.10227320]
Top Tags