Click here to Skip to main content
15,911,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a problem. I want to create a DLL in Visual Basic 2005 functional for every version of Windows. My problem is, if I create the DLL in Windows Vista, it only works for Vista. If I create it in XP, it only works for XP.

I use the following steps for creating the DLL:

http://www.freshtings.com/vbnet/index.html

What am I missing? Can someone help me with this?

Thanks in advance.

Giovanni Galdamez.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Jan-11 21:13pm    
I guess this is because Microsoft don't care too much about Visual Basic, not anymore. Really, more and more features are left behind -- for a good reason. Just a thought...

1 solution

I haven't had the OS specific problem that you mention. However, I would not build a COM DLL. I would forget about the COM Class and just put your code in a regular class file. COM is not necessary with .NET
 
Share this answer
 
Comments
GiovanniGH 7-Jan-11 18:42pm    
Can you please give me a brief example of how to do it. I remember I tried to use a regular class file once, but I didn't know how to tell VB to Build a DLL out of it.
I would really appreciate your help.
My email: jggaldamez@gmail.com
Thanks.
Giovanni.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900