Hi.
Imagine this:
I make a UserControl DLL in VS 2003, of course using Framework V1.1
Now, could I use that control in a VS 2002 project (provided that both Framework V1.0 and Framework V1.1 is installed, of course)?
Printable View
Hi.
Imagine this:
I make a UserControl DLL in VS 2003, of course using Framework V1.1
Now, could I use that control in a VS 2002 project (provided that both Framework V1.0 and Framework V1.1 is installed, of course)?
My (limited) knowledge of VB.NET tells me: yes.
I would wait for someone to confirm this though.
Tho I am not intimately familiar with the differences in the two versions of the framework, I am familiar enough to know that if you make function calls in your 1.1 version control, it probably will not work in your 1.0 version project.
Now that I have provided an answer, could you please tell me what in the world would possess you to do such a thing?
It depends on which Framework your assembly (project) targets . You can set this via the project properties window . You can target both by the way .
I thought, and I could be really wrong here, that the list of breaking changes from 1.0 to 1.1 was pretty short - that the vast majority of things would continue to work.Quote:
Originally posted by CyberHawke
Tho I am not intimately familiar with the differences in the two versions of the framework, I am familiar enough to know that if you make function calls in your 1.1 version control, it probably will not work in your 1.0 version project.
Now that I have provided an answer, could you please tell me what in the world would possess you to do such a thing?
Hi guys.
Thanks for your answers. Since none of them are really conclusive I guess I have to try it.
The reason I wanna do this, is because some of the people that are going to use the control are only using VS 2002 (and are too cheap to update :bigyello: ).
So if they only need the V1.1 redistributable to use the control, I can easily create a wrapper-class for e.g. the FolderBrowserDialog and other V1.1 specific functions.
This is also the reason why I can't target the control to V1.0. It kind of defeats the purpose. :p
I know that it would require my users to distribute with both V1.0 and V1.1, but that's up to them. :rolleyes:
Besides, it only going to be used in-house so I guess it would be ok.
At any rate, I will try it tomorrow and I will post the result, just in case anyone else was wondering the same thing.
Thanks again guys.
Hi guys.
I have just tried it, and it does not appear to work.
At least, when I tried to add the DLL to the toolbox, it claimed that there where no items in the DLL that could be placed in the toolbox.
I tried just adding a reference, which went fine. I could then Dim it thru code, but it failed when instantiating it.
My control extracts some icons from Shell32.DLL, and the error was with Win32 Icon Handle, so it may not have anything to do with the framework, but the OS it self. (My V1.1 machine is XP and the test pc is Win2000).
But it doesn't matter. If it can't be placed in the toolbox I don't think it's worth it.
I just have to do what Pirate said, and target the control for V1.0 and miss out on the new features of V1.1