
|
email this FAQ to a colleague
Q:
How do I make a simple component with VB 5.0?
A:
- Start Visual Basic 5
- Select ActiveX DLL
- Name the Class Module something that relates to your component
- Name the project the name of your company or whatever.
- In the Class Module, write the following code:
Public Function HelloWorld() As String
HelloWorld = "Hello, World!"
End Function
That's it! Make the DLL file in the system32 directory. Then try with the following ASP code:
<% Set Say = Server.CreateObject("YourCompanyName.YourSmartName") %>
<% = Say.HelloWorld %>
- Jacob Munk-Stander
|
Articles
|
|
|
Apr 22, 1997 - Active Server Components with VS 5.0
|
|
|
A rewrite of part one of a four-part series on Active Server objects. A simple example of creating a Active Server Component in Visual Studio 5.0 using the Active Template Library 2.0. The example component retrieves the user's cookie, if not available issues a new 128-bit cookie. Included in the issue is the source code and step by step instructions. This issue has been rewritten to illustrate the use of Visual Studio 5.0 and ATL 2.0 in writing Active Server Components.
[Read This Article] [Top]
|
|
|
|
Mar 16, 1997 - Debugging Active Server Objects
|
|
|
Part two of a four-part series on Active Server components. In this issue 15 Seconds discuss how to write and debug an Active Server object that writes to the Event Log. Included in the issue is the source code and step by step instructions. This issue uses MSVC 4.2 and ATL 2.0
[Read This Article] [Top]
|
|
|
|
|