Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USING VFP DLL IN VB
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00471556
Message ID:
00471618
Views:
35
>Hi Nick
>thank you for the tip
>but can you tel me ,if I creat the .dll on my pc which file I copy to the second pc the .dll the .tlb or both. I'm just starting creating VFP COM server

The DLL file. If you are registering DLL on another PC you don't need to bring .TLB and .VBR files (of course it will not hurt if you copy them). You register the DLL manually with:

REGSVR32 mydllname.DLL

When you distribute your application with COM objects you can use VFP Setup Wizard. You will have to specify all your COM components in Setup Wizard. There is a checkbox "COM Components in it, that's where you specify your DLLs and it will take care of registering them on user's PC.

If you want to register the EXE COM server on the server - copy the .EXE, .TLB and .VBR files to the server PC. Then you run .EXE with the -regserver parameter.

myCOMname.EXE –regserver

TLB is a Type Library file, which contains information about Properties Events & Methods of the COModel object in a standard form which is recognized by any Windows application which supports COM. .VBR file contains the text of the registry entries which are added to your registry when the COM (DLL or EXE) is built. TLB info may be embedded into EXE and DLL.

You also can register the EXE COM component on the Client machine using the .VBR file:

CLIREG32.EXE myCOMname.VBR
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform