Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method in DLL has no parms
Message
 
 
To
13/05/2004 09:29:21
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00903556
Message ID:
00903566
Views:
15
From VFP help for DEFINE CLASS:
"For the parameters and their types to appear in the type library, you must use the inline parameter syntax instead of using LPARAMETERS to declare the parameters: ex. FUNCTION Publisher_ShowPrice(Bookid As Integer, Bookprice As String)".

>I have a project with one program in it.
>That program defines an OLEPUBLIC class:
>DEFINE CLASS PostFolio AS SESSION OLEPUBLIC
>	PROCEDURE INIT
>		…
>	ENDPROC
>
>	PROCEDURE mTest
>		LPARAMETERS tcFirstParm
>		…
>	ENDPROC
>
>ENDDEFINE
>I am compiling that project into mtdll.
>
>When I add a reference to that component to VB6 project it does not show that
>mTest has any parameters. Why is that?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform