|
Re: .Net Question, How to reference a dll with different names
01/29/07 07:32 PM
|
|
|
> > I've used dllimports under windows & windows ce where this often happens. You create > two functions with different names and specify an entry point ( because the entry > point is often the same in the two dll's ). From then on you can either use an if > check on every call as dot net is helpful and will only try to open the dll when the > code actually is called, the alternative is to use a delegate ( though this only > works if the two functions take identical pointers ). > > I don't have any code to hand, but I can dig something out if you need it. > > smf
Thanks for the help and reply. I think I get what you are saying in the first example, but if you get a chance some example code would help me get it to click. Do you have any standard you follow for naming the two functions?
I have no experience with and I'll have to check if I can use a delegate, but I've put it on my list of things to read up on.
|
|