Solved

how to convert a form in to DLL in VB6?

Posted on 2006-11-19
6
592 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 114
Programatically extract date from website 8 83
draw a Christmas tree by using a nested loop? 26 92
Java pass by reference 3 16
This article will show, step by step, how to integrate R code into a R Sweave document
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

756 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