Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

inventor 2014 VBA cant see DLLs

1 REPLY 1
Reply
Message 1 of 2
mikuz
275 Views, 1 Reply

inventor 2014 VBA cant see DLLs

Hello. I Know that inv 2014 has is 64 bit and has new version of VB, but I can still use for example windows 32bit DLL  (Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongPtr) ), but when I try to import other 32bit created in VC++, the VBA simply refuses to work. CAn anyone help? Why one 32 bit dll work and other not? I got message "File not found" where the file is 100% in good place.

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: mikuz

Hi

 

On 64-bit platform, the Kernel is definitely a 64-bit dll. It's always called kernel32.dll, even on 64-bit windows. This is for the same compatibility reasons that system32 contains 64-bit binaries, while syswow64 contains 32-bit binaries.

 

You will have to compile your dlls for 64-bit if you want to be able to import functions under VBA x64.

 

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report