Solved

how to convert a form in to DLL in VB6?

Posted on 2006-11-19
6
590 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

815 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

13 Experts available now in Live!

Get 1:1 Help Now