Solved

how to convert a form in to DLL in VB6?

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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…
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 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 …

752 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