Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a .dll for VB
Message
 
To
30/08/2000 14:43:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00410896
Message ID:
00410955
Views:
22
>I've now used regsvr32. Then I coded createobject("altertable.altertable"), which is the name of my dll and the name of the class, as Vin suggested. Now I get a OLE error, unspecified error.
>
judy,

I'll bet you didn't have anything in the error handler. First, I suggest that you read MS KB article Q187908 on how to use COMRETURNERROR(). Second, to get you up and running now, try the following in the object's error event:
LPARAMETERS nError, cMethod, nLine
     
LOCAL lcmsg
lcmsg = TRANSFORM(nError) + ": " +;
  MESSAGE() + " on line " + TRANSFORM(nLine)
COMRETURNERROR(cMethod, lcmsg)
RETURN
It might help you track down the problem.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform