cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rune_paulsen
Level 5

Suite: FilenotfoundException when using "#using" in C++: Calling a Function in a DLL

I have used SuiteCalc as template
Calling a Function in a DLL from a Wizard Page or Window in a Suite Installation, http://blogs.flexerasoftware.com/installtalk/2012/03/validating-user-input-in-a-suite-project.html

Added
# using "d:\mycode\Mydll.dll

int Number=myClass:myMethod::("Input");

I can compile SuiteCalc without error.

I have updated the SuiteCalculator.issuite.
Added Mydll.dll to support files and packaged files.

Compiled SuiteCalculator.issuite without error.

But, when i run setup.exe for SuiteCalculator i get this error:
[Window Title]
Setup Suite Launcher Unicode

[Main Instruction]
Setup Suite Launcher Unicode has stopped working

[Content]
A problem caused the program to stop working correctly. Please close the program.

[Close the program] [Debug the program]

When i debug i get:

Could not file or assembly Mydll.dll. The system cannot find the file specified.

I have checked the temp folder, MyDll.dll is location in the same folder as SuiteCalc.dll.

What do i need to get this working?

I have used MyDll in another MSI installer
I have CA, call a public method in a managed assembly.
This is working without any problem.
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Since you mention the #using statement, it sounds like you're compiling with C++/CLI instead of C++, and are trying to bridge to managed code. This is not supported in the suite engine at this time—it only understands how to invoke C++ DLLs. (Although an explicitly coded bridge, or possibly even COM Interop, could theoretically work.)
0 Kudos