Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Created DLL
Message
De
13/06/2002 16:55:44
 
 
À
13/06/2002 16:19:36
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00668224
Message ID:
00668253
Vues:
25
VB DLL's are automation objects (ActiveX, OLE Server, other names). You would call them like so:
Private Sub txtOrder_KeyPress(KeyAscii As Integer)
   Dim myDLL As SCheck.StringCheck

   Set myDLL = New SCheck.StringCheck

   KeyAscii = myDLL.NumericOnly(KeyAscii) 'Returns zero if not numeric.

End Sub
You would need to add a reference to your project prior to this. HTH

>Hi I created my own DLL in visual basic call SCheck.dll the project had only one file in it call StringCheck.cls. In this class there were different functions NumericOnly, AlphOnly, etc... When I go to declare a function in a program that is in that dll I get a message say that it couldn't find the entry point and I'm a bit confused why it won't work here is a piece of sample code from a program that I'm writing.
>
>
>
>Option Explicit
>
>Private Declare Function NumericOnly Lib "C:\VBProjects\DLLS\SCheck.dll" (ByVal ASCIIVal As Integer) As Integer
>.
>.
>.
>.
>.
>Private Sub txtOrder_KeyPress(KeyAscii As Integer)
>
> KeyAscii = NumericOnly(KeyAscii) 'Returns zero if not numeric.
>
>End Sub
>
>
>Please help!!!!!
>
>Thank you,
>Derek J. Klingman
>System Programmer
>Micro League Software
>www.MicroLeagueSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform