Using old com objects
-
I was previously developing an application using vb6 with some third party COMS. Now that I plan to upgrade to vb.net, I find that these COMs no longer works. Is there any way to make them work, short of looking for updated versions of these COMs( some of these third party companies are no longer operational) Thanx Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain -
I was previously developing an application using vb6 with some third party COMS. Now that I plan to upgrade to vb.net, I find that these COMs no longer works. Is there any way to make them work, short of looking for updated versions of these COMs( some of these third party companies are no longer operational) Thanx Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark TwainHi, yes you can reuse them,you need to create a COM runtime wrapper for them which can then be used as a proxy to your original COM objects. Use the "tlbimp.exe" tool which comes with Visual Studio .NET like this,
tlbimp oldcom.dll /out:oldcom.asm.dll
then you add a reference to theoldcom.asm.dll
file to your .NET app. regards, DarkAngel -
Hi, yes you can reuse them,you need to create a COM runtime wrapper for them which can then be used as a proxy to your original COM objects. Use the "tlbimp.exe" tool which comes with Visual Studio .NET like this,
tlbimp oldcom.dll /out:oldcom.asm.dll
then you add a reference to theoldcom.asm.dll
file to your .NET app. regards, DarkAngelThanx man! you're a life saver!:rose: Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain -
Thanx man! you're a life saver!:rose: Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark TwainIn fact, if you use VS.Net you dont even need to do this manually as by referencing a COM componant VS will notice what you are trying to do and do this for you...