This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Suite: FilenotfoundException when using "#using" in C++: Calling a Function in a DLL
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 19, 2012
08:47 AM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 19, 2012
10:28 AM
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.)