Solved

how to convert a form in to DLL in VB6?

Posted on 2006-11-19
6
587 Views
Last Modified: 2011-08-18
I am doing  a project in which i want to convert entire project in to DLL .For that i want to convert the form in to dll and have to call from a html page..or how to call a form which is a dll from any asp or html page.pls help me with sample code
0
Comment
Question by:rahaman
6 Comments
 
LVL 9

Accepted Solution

by:
blandyuk earned 25 total points
ID: 17975986
In order to create a .dll file, you need to create a Class object. In there, you can specify all the functions / properties etc for the object. From there, you compile the project into a .dll file which can then be registered via "regsvr32.exe" in the "C:\Windows\system32" directory. Then you can simply reference the object in asp code via the name you used for the Class object.

You really need to read up on this first before trying to jump in at the deep end lol ;)
0
 
LVL 5

Assisted Solution

by:kumar_jac
kumar_jac earned 25 total points
ID: 17978235
Hi,
         Change the Project Type to ActiveX DLL in the Projects - > Properties

You have to create like this

For example Class User should like this

User class contains
 SigIn(uid,pwd)
 Create(arguments)
 ForgotPassowrd(uid)
 ResetPassword(oldPwd,newPwd)

then create dll
and register with the command "regsvr32.exe"

Then use in you ASP code like below

set obj = Server.CreatObject("Reference name");
obj.SigIn(uid, pwd)

also plz refere
http://www.thescripts.com/forum/thread538406.html

my suggestion why you would like to do with this old technice . Now ASP.Net is available to do with
0
 
LVL 5

Expert Comment

by:sivachirravuri
ID: 17985877
We cannot convert form directly to DLL. Some code changes are required based on your code. Check the following link for the same.

http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html?page=last
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
dividesSelf challange 15 81
sumHeights2  challenge 7 78
VBA color chart bars 12 67
mapShare challenge 13 69
A short article about problems I had with the new location API and permissions in Marshmallow
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now