Hi
I tried to do a shared dll with static variables.. The problem is that when
i try to
get value from add-in (set variables is from windows app) values are null..
Anyway I will try again to do this.. You are talking about a simple dll,
right?
Where can I find some source code about the dll i have to create?
Thanks
GaetanoG
Ps
Variables are in the add-in
Ah, does that mean the external program is not written by you so you
don't have the code? Or do you have the source?
What does the external program do?
If you have the source for the external program then all is good.
Further questions I'm afraid. do you intend to use the external
program to sort of remote control the add in or does it just share
code? So in your winform app there might be a method called "GetData"
and you just want to use that GetData in the add in?
If that's the case then yep create a class library (as you say just a
DLL (but isn't everything these days

)
In that you add a class or classes which do all the GetData type work.
You add a reference to that DLL to your winform app and then replace
the code in the winform app with calls to the new class(es). Finally
you add a reference to the class library to your add in and reuse the
Getdata methods. I don't know what your methods are called, so I'm
just using Getdata as an example.
Am I getting closer to what you're attempting?