.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

32 bit dll file on 64 bit OS???

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
1014 Views, 7 Replies

32 bit dll file on 64 bit OS???

Hello,

We have made a program for 32 bit AutoCAD Mechanical 2010 with Microsoft Visual Basic 2008 Express Edition.
The program is made with Visual Basic.
This program is running on Windows XP 32 bit and will work fine for AutoCAD Mechanical 2010 32 bit.
Now we have loaded the builded dll file inside AutoCAD Mechanical 2010 64 bit and the program won't work and give a error message. AutoCAD Mechanical 2010 64 bit is running on Windows XP 64 bit.
We think that the builded 32 bit dll file won't work on 64 bit.
Is it possible to load a 32 bit dll file inside 64 bit operating system?
Could the 32 bit dll file converted to 64 bit dll file?
Or has the dll file to be builded on Windows XP 64 bit machine?
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

You'll need to build a 64 bit DLL for use in a 64 bit process. 🙂
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


"RuuBoe" wrote in message news:6242649@discussion.autodesk.com...
Hello,

We have made a program for 32 bit AutoCAD Mechanical 2010 with Microsoft
Visual Basic 2008 Express Edition.
The program is made with Visual Basic.
This program is running on Windows XP 32 bit and will work fine for AutoCAD
Mechanical 2010 32 bit.
Now we have loaded the builded dll file inside AutoCAD Mechanical 2010 64
bit and the program won't work and give a error message. AutoCAD Mechanical
2010 64 bit is running on Windows XP 64 bit.
We think that the builded 32 bit dll file won't work on 64 bit.
Is it possible to load a 32 bit dll file inside 64 bit operating system?
Could the 32 bit dll file converted to 64 bit dll file?
Or has the dll file to be builded on Windows XP 64 bit machine?
Message 3 of 8
Anonymous
in reply to: Anonymous

If your DLL is a native image (e.g., not a .NET assembly) the
native DLLs must be compiled for 64 bit.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6242649@discussion.autodesk.com...
Hello,

We have made a program for 32 bit AutoCAD Mechanical 2010 with Microsoft
Visual Basic 2008 Express Edition.
The program is made with Visual Basic.
This program is running on Windows XP 32 bit and will work fine for AutoCAD
Mechanical 2010 32 bit.
Now we have loaded the builded dll file inside AutoCAD Mechanical 2010 64
bit and the program won't work and give a error message. AutoCAD Mechanical
2010 64 bit is running on Windows XP 64 bit.
We think that the builded 32 bit dll file won't work on 64 bit.
Is it possible to load a 32 bit dll file inside 64 bit operating system?
Could the 32 bit dll file converted to 64 bit dll file?
Or has the dll file to be builded on Windows XP 64 bit machine?
Message 4 of 8
Anonymous
in reply to: Anonymous


odd, I  use the same dll for both x32 and x64 with no problems..



Work: VISTA
Ultimate/Windows 7 x32 - AMD 64 X2 Dual Core 4200 2.2GHz, 4 Gigs
Ram, GeForce 6800GS 256MB


Home: Windows 7 x64 - AMD 64 Quad Core
2.2GHz, 8 Gigs Ram, GeForce 8600GT 512MB


Laptop (17" HP): VISTA Premium x32 -
color="#000000">AMD Turion X2 Dual Core TL-50 1.6GHz, 2 Gigs Ram,
color="#666666">Nvidia GeForce 6150





RuuBoe wrote:

Hello,

We have made a program for 32 bit AutoCAD Mechanical 2010 with Microsoft Visual Basic 2008 Express Edition.
The program is made with Visual Basic.
This program is running on Windows XP 32 bit and will work fine for AutoCAD Mechanical 2010 32 bit.
Now we have loaded the builded dll file inside AutoCAD Mechanical 2010 64 bit and the program won't work and give a error message. AutoCAD Mechanical 2010 64 bit is running on Windows XP 64 bit.
We think that the builded 32 bit dll file won't work on 64 bit.
Is it possible to load a 32 bit dll file inside 64 bit operating system?
Could the 32 bit dll file converted to 64 bit dll file?
Or has the dll file to be builded on Windows XP 64 bit machine?


Message 5 of 8
Anonymous
in reply to: Anonymous

Hello RuuBoe,
If this is a .NET dll then look at your project compile options in Visual
Studio, on the compile tab press the "Advanced Compile Options" button and
set the "Target CPU" option to AnyCPU. It should then run on either 32bit
or 64bit frameworks without recompiling. If it is set to 32bit then it will
only run inside 32bit applications.

> Hello,
>
> We have made a program for 32 bit AutoCAD Mechanical 2010 with
> Microsoft Visual Basic 2008 Express Edition.
>
> The program is made with Visual Basic.
>
> This program is running on Windows XP 32 bit and will work fine for
> AutoCAD Mechanical 2010 32 bit.
>
> Now we have loaded the builded dll file inside AutoCAD Mechanical 2010
> 64 bit and the program won't work and give a error message. AutoCAD
> Mechanical 2010 64 bit is running on Windows XP 64 bit.
>
> We think that the builded 32 bit dll file won't work on 64 bit.
>
> Is it possible to load a 32 bit dll file inside 64 bit operating
> system?
>
> Could the 32 bit dll file converted to 64 bit dll file?
>
> Or has the dll file to be builded on Windows XP 64 bit machine?
>
Message 6 of 8
Anonymous
in reply to: Anonymous

There's nothing odd about it.

Managed assemblies can run on any platform.

It's native DLLs that can't.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

"C Witt" wrote in message
news:6243077@discussion.autodesk.com...
odd, I use the same dll for both x32 and x64 with no problems..


Work: VISTA Ultimate/Windows 7 x32 - AMD 64 X2 Dual Core 4200 2.2GHz, 4 Gigs
Ram, GeForce 6800GS 256MB
Home: Windows 7 x64 - AMD 64 Quad Core 2.2GHz, 8 Gigs Ram, GeForce 8600GT
512MB
Laptop (17" HP): VISTA Premium x32 - AMD Turion X2 Dual Core TL-50 1.6GHz, 2
Gigs Ram, Nvidia GeForce 6150


RuuBoe wrote:
Hello,

We have made a program for 32 bit AutoCAD Mechanical 2010 with Microsoft
Visual Basic 2008 Express Edition.
The program is made with Visual Basic.
This program is running on Windows XP 32 bit and will work fine for AutoCAD
Mechanical 2010 32 bit.
Now we have loaded the builded dll file inside AutoCAD Mechanical 2010 64
bit and the program won't work and give a error message. AutoCAD Mechanical
2010 64 bit is running on Windows XP 64 bit.
We think that the builded 32 bit dll file won't work on 64 bit.
Is it possible to load a 32 bit dll file inside 64 bit operating system?
Could the 32 bit dll file converted to 64 bit dll file?
Or has the dll file to be builded on Windows XP 64 bit machine?
Message 7 of 8
Anonymous
in reply to: Anonymous


ah



Work: VISTA
Ultimate/Windows 7 x32 - AMD 64 X2 Dual Core 4200 2.2GHz, 4 Gigs
Ram, GeForce 6800GS 256MB


Home: Windows 7 x64 - AMD 64 Quad Core
2.2GHz, 8 Gigs Ram, GeForce 8600GT 512MB


Laptop (17" HP): VISTA Premium x32 -
color="#000000">AMD Turion X2 Dual Core TL-50 1.6GHz, 2 Gigs Ram,
color="#666666">Nvidia GeForce 6150





Tony Tanzillo wrote:

There's nothing odd about it.

Managed assemblies can run on any platform.

It's native DLLs that can't.




Message 8 of 8
_rhenley
in reply to: Anonymous

This is all great in theory, but in practical application it might be possible that something else is going on as Mechanical is involved. Of which I have no experience with, but - for instance,

try doing what you suggest with the Sheet Set sample: ..\ObjectARX 2010\samples\dotNet\SheetSet here.

Unless I missed something obvious, I don't find that in this case that the AcSmComponents18.tlb is functioning on the x64 platform the same way it does on x32:

[x32 sp1] ->

Command: runsamplessc
Enter the name of the sheet set(extension not needed): TestSheetx32
\nSheetset not initialized!!\nNew sheet set C:\Documents and
Settings\richard\My Documents\TestSheetx32.dst createdAcSmFileReference
Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmSubset Modified!!!
AcSmSubset Modified!!!
AcSmSheet Modified!!!
AcSmSheet Modified!!!
AcSmSheet Modified!!!
AcSmSheet Modified!!!
AcSmSheetSelSet Modified!!!

[x64 sp1] ->

Command: RunSampleSSC
Enter the name of the sheet set(extension not needed): TestSheet
\nSheetset not initialized!!\nNew sheet set
C:\Users\henleyr\Documents\TestSheet.dst createdAcSmFileReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmAcDbBlockRecordReference Modified!!!
AcSmSubset Modified!!!
AcSmSubset Modified!!!
AcSmSheetSelSet Modified!!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost