ASP + Dll

N

Norberto

I have to make my own dll (a compiled class made in Visual Basic 6)
for my College, and I have no idea of how to do that.
The class (DLL) should do have methods for make a backup of an access
mdb file, and restore it too.

Then call this DLL from ASP, and use those methods (ex. thedll.backup
and thedll.restore).

That's all falks.

Any help will be more than helpfull.

Truly yours,

Norberto Herrera
Buenos Aires - Argentina.
 
J

Jeff Dillon

Do you have VB6? Step one.

From the File Menu, choose New Project, and choose DLL.

Jeff
 
R

Ray Costanzo [MVP]

Have you read any of the course material for your class? Were there not
prerequisites for the class? I know that I've never taken a class and been
asked to do something that has never been covered in that class or a
prerequisite.

Ray at work
 
N

Norberto Herrera

Jeff:

Step one completed, could you go faster, I mean, just tell me all the
steps at once. Thanks in advance.

Norberto.
 
N

Norberto Herrera

Ray:

They never teached how to do that, it was supposed that we learned by
owrselves reading books, and like I have very little time, that's why I
ask for help at you folks.

If you can help me to that, I'll really apreciatte it.
 
B

Bob Barrows [MVP]

Norberto said:
I have to make my own dll (a compiled class made in Visual Basic 6)
for my College, and I have no idea of how to do that.
The class (DLL) should do have methods for make a backup of an access
mdb file, and restore it too.

Then call this DLL from ASP, and use those methods (ex. thedll.backup
and thedll.restore).

That's all falks.

Any help will be more than helpfull.

A little searching at msdn.microsoft.com should get you the answer. I know
there is some material there that explains how to use VB6 to create an
ActiveX DLL which is capable of being called from ASP. I don't have time to
look for it now, but it should not be hard to find. Hone your research
skills (which you will need as a student), and go find it. It will really
help you.

Bob Barrows
 
R

Ray Costanzo [MVP]

But the point of school is not to get your assignments completed; it is to
learn the material. You will not learn the material if you do not read the
books. "Having very little time" is not going to work when you get out into
the real world, so if I were you, I'd try to break that habit now.

Ray at home
 
R

Ray Costanzo [MVP]

I've seen that article before but never noticed the author's name before.
:] Good job!

Ray at work
 
N

Norberto Herrera

To all:

I really thanks to all for your help, I really want to learn this issue,
reading the KB you said and everything, and let you know guys How much I
learned looking here at the forums, I found many tips & tricks, so much
data, that I read the forums even when I have no problems, just to
learn.

So if you, for example tell me the steps to do a dll, in fact you are
not doing the all thing, I have to go to Visual, type, debug, so on, and
let me tell you that I learn with that.

Once again thanks to all.
 
N

Norberto Herrera

Jeff / Ray:

The dead line is November 6th. Of course this is not the only thing I've
to do. It's a full system (shopping cart), and the professor wants some
parts using XML, Checksum, Encriptation, Different types of users, UML
diagram, and so on.
Too many things to learn in very little time. The system is almost done,
has to make a few UML diagrams, DER, and correct everything later. Also
the bussines part: Marketing, SWOF, and other stuff related.

This is why I ask for help...
 
M

Mark Schupp

Probably your best bet for a step by step procedure to build the component
would be one of the links that has already been provided such as
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvb600/html/404track.asp
(see starting the dll).

The general steps are

start vb6
create new ActiveX dll project
add public functions or subroutines to the .cls module (use variant, string,
or long for input parameters. only variants for output parameters).
add whatever code you want to the functions
compile the dll (this will also register the component)

in your asp page you can create an instance of the object with
CreateObject("<dll name>.<class name>")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top