• Welcome to Valhalla Legends Archive.
 

DLL's

Started by g0dFraY, March 15, 2004, 06:47 PM

Previous topic - Next topic

o.OV

#15
Quote from: Grok on March 19, 2004, 07:59 PM
Quote from: o.OV on March 19, 2004, 07:17 PM
You are obviously a beginner trying to start off at a more advanced level then you should.

I'll bet he learns a lot of things that might not make sense now, but will as he acquires more knowledge.  Reaching for things out of reach is how humans advance.  Our trips to space, to the moon, and Mars, generates many scientific advances and new knowledge.

I'm not saying it is wrong to ask questions.
In my opinion. It would be easier to start off slow.
Read documentation on the stuff he wants to learn.
Save it hard disk and come back to it
when he feels he is ready to go at it again.
And if he still can't grasp it..
leave it and come back to it again when he has more "basic" knowledge.

This is how I learn.
Learning the basics first allows one to grasp new concepts.

In his case.
It seems to me he is trying to run before he can walk.
If the facts don't fit the theory, change the facts. - Albert Einstein

g0dFraY

Yes i may be aiming to high but its what humans do. NASA didnt send humans to the moon so they could play, but to gain knowledge from the moon. I am do not want knowledge of DLL's so i can never use it but so i can gain more from that knowledge.

CrAz3D

Quote from: g0dFraY on March 19, 2004, 06:53 PM
I have jusr tried a test and i seem to be doing something wrong.

My DLL (compiled as test.dll)

Public Function msg(Message as string)
   msg = msgbox & message
end function


New project

Option Explicit
declare msg lib "test.dll" (Message as string)

Private Sub Form_Load()
msg "Well done, it is working correctly."
End Sub


i know i must be doing something wrong because it isnt working.
If you could point out what iv done wrong.
Thank you

Edit:
Figured it out, but it now gives me that it cant find test.dll, its placed on the desktop would one need to move it or register it, how would one register.

You're on the right track.  Your .DLL is fine, it is how you ar trying to access it.

Dim obDLL as Object
    '//I have my object declared Publically in a module so I can use from other places
Set obDLL = CreateObject("PROJECT NAME.PROJECT CLASS")
    '//Inorder for your .DLL to work for others they must register the .DLL file on their computer (ie regsvr32)
msgbox obDLL.msg("Welcome to g0dFraY's DLLL")
    '//obDLL.RUN FUNCTION, you can run any Public function in your MAIN .DLL Project's Class
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...