Skip to main content

OpticStudio can not load DLLs


I tried to use the original Gaussian.cpp in Visual Studio 2019 to create a dll project. I created a default dll project and copied the Gaussian.cpp and tried to build the file. The header file is left empty. The build was successful but when I tried to load into Zemax, it gives error saying cannot load DLL as in the attachment.

 

44af84f0e52b783940cf338525865c7.png
Did this topic help you find an answer to your question?

2 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2

Hi Xiaohui,

I don't have a file Gaussian.cpp in my default installation of OpticStudio. Can you elaborate what DLL you are trying to build? Is that a source, or a surface? Can you also share the file you are trying to compile for troubleshooting?

Take care,

David


  • Visible
  • 22 replies
  • May 23, 2023
David.Nguyen wrote:

Hi Xiaohui,

 

I don't have a file Gaussian.cpp in my default installation of OpticStudio. Can you elaborate what DLL you are trying to build? Is that a source, or a surface? Can you also share the file you are trying to compile for troubleshooting?

 

 

Take care,

 

 

David

 

 

Hi David,

 

I currently face a similar issue with a Source DLL and I’d be happy to get help with it.

I’ve tried to modify AstigmaticGaussian.cpp to produce higher transverse modes.

 

Unfortunately I face the same error message as Xiaohui attached above.

See my code attached.

 

Looking forward your reply,

Oran


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings