Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Samir Ibrahim
  Where is Samir Ibrahim?
 Chekka
 Lebanon
 Samir Ibrahim
 To: Pablo Taminelli
  Where is Pablo Taminelli?
 Bs As
 Argentina
 Pablo Taminelli
 Tags
Subject: RE: DLL
Thread ID: 191728 Message ID: 191743 # Views: 32 # Ratings: 0
Version: Visual FoxPro 6 Category: Visual Basic
Date: Thursday, August 28, 2008 4:15:38 PM         
   


> Hi, how can I create a DLL in VisualBasic 6 and use it in VisualFox 6. It must take parameters
>
> Thanks
>
> Pablo Taminelli

File >> New Project >> ActiveX DLL >> OK
** In class1(class1.cls)
Public Function Multiply(X As Integer, Y As Integer)
    Multiply = X * Y
End Function

File >> Make Project1.dll

register the dll using REGSVR32

** in VFP
oDLL = CREATEOBJECT('Project1.Class1')
? oDLL.Multiply(5,7) && 35

Samir R. Ibrahim
Good things Take time, Great things happend all at once.

My WebLog
My Website: www.cdcity.org



COMPLETE THREAD
DLL Posted by Pablo Taminelli @ 8/28/2008 2:47:57 PM
RE: DLL Posted by Mike Gagnon @ 8/28/2008 3:08:24 PM
RE: DLL Posted by Samir Ibrahim @ 8/28/2008 3:38:55 PM
RE: DLL Posted by Samir Ibrahim @ 8/28/2008 4:15:38 PM