Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

ActiveX in VB 05??

Problem: I need to create ActiveX controls that will among other things read and write to PC files. The application is an INTERNET app and the system runs on a non-Windows server. But, of course the PC's are all running Windows OS with IE 7. (A desktop app is out of the question.)

The app currently uses Java applets for the purpose of reading and writing the user's PC's, but for reasons I won't go into in this post, I need to abandon Java. So I thought writing ActiveX controls in VB shouldn't be too hard.

However unlike VB 6 there is no ActiveX control project. How the bleep do I go about starting this? Ie., which project and which control do I start with? And to repeat, the server is non-Windows.

Any experts out there that can tell me where to get started?

Yes, I've tried Googling, searching the index of VB 2005 books on Amazon.com, and searched the MSDN Library, but so far zilch.

Any competent help would be much appreciated!!!
[1019 byte] By [HKUSP45] at [2007-11-11 10:08:50]
# 1 Re: ActiveX in VB 05??
VB.NET cannot create ActiveX controls (nor can C#). If you can get a copy of VB6, I recommend using that.
Phil Weber at 2007-11-11 20:48:27 >
# 2 Re: ActiveX in VB 05??
Phil thanks for the response!

I think I can get a copy of VB 6. This is probably a dumb question, but is there any danger that the modules created by VB 6 could become unexecutable in future Windows OS's?

Would it be worth my while to attempt it with C++?
HKUSP45 at 2007-11-11 20:49:32 >
# 3 Re: ActiveX in VB 05??
Anything's possible, but VB6 creates standard Win32 executables and there's an awful lot of Win32 code out there. I think it will be a long time before MS releases a version of Windows that won't run Win32 code.

If you're conversant in C++, that's certainly an option, but I don't believe that C++ executables will have more longevity than those created with VB6.
Phil Weber at 2007-11-11 20:50:31 >
# 4 Re: ActiveX in VB 05??
Thanks again Phil. That probably settles it.
HKUSP45 at 2007-11-11 20:51:32 >