05-28-2008 11:16 AM
05-28-2008 12:09 PM
Hello pblase,
If I understand your situation correctly, your projects build and run correctly, but you have a problem when you try to run directly a function panel from the first dll.
The reason you're having this problem is because when you run a function panel, you're not really running the project. Function panels run in something called the interactive window, which is distinct from any of the projects in your workspace. Whenever you run something in the interactive window it needs to go through a separate linking step. In the case of function panels, for them to run successfully interactively, one of two things must be true: 1) the program file of the function panel (in your case, the dll's import library) must have no external dependencies, or 2) any external dependencies must be satisfied by additional function panel files, and these dependencies must be declared in the function panel.
To summarize, if you want to run a function panel from your first dll, then you need to also have an .fp file for your second dll, and that dependency must be declared in the function tree editor of the first function panel, by selecting Edit>>>FPAuto Load List and then specifying the dependent .fp file(s).
Luis
05-28-2008 01:02 PM
11-17-2008 10:11 PM
what can I do, if my function panel have to call to a fucntion in ".lib" file? Is there a way to convert a ".lib" file to ".fp" file? Thanks for help in advance.
11-18-2008 10:41 AM
Hello Vincent,
.lib files can be associated with .fp files, but you cannot convert one into the other. They're different things.
What you have to do is to create a separate .fp file (File>>New>>Function Tree) that includes a function panel for each function in the .lib file that you need to call from the first .fp. Then, you need to edit the first .fp and add the second .fp as an auto-load dependency (from the function tree editor, select Edit>>.FP Auto-Load List).
Luis
11-18-2008 06:49 PM
Luis,
Thanks! It does help!
Vincent Lee