Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create DLL from Prg file
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00932218
Message ID:
00932393
Views:
17
>Thanks George and Terry,
>
>George, that solved an immediate problem about why I couldn't create the dll immediately.
>
>Terry,
>
>Let me make sure I understand.
>>pre>COMs cannot push messageboxes or data back to the client (the client can ask and receive, but COM cannot give!)
>Shouldn't obj.CursorFill() be sufficient for the client to ask and receive? Is there something else I need to add.
>Sincerely,
>Michael
Yes it should - your client can ask the COM for information and then it (the client) can format it and present it. I noticed in your code you had a messagebox and an error.

If those pieces of the code are to reside in the COM, the COMS ERROR() ethod would use COMRETURNERROR to fire the client's ON ERROR handler. When the clients ON ERROR receives the event from COM's COMRETURNERROR, the client could then forward the error to the UI in your messagebox.

>
>>>Good Evening,
>>>
>>>I have a program that works very well as a prg file or as an exe, but I need to make it into a dll to instantiate through a ColdFusion web page as a com object.
>>>
>>>Any suggestions would be greatly appreciated.
>>
>>Download #9840 has a VFP DLL (com) PRG you can look at. In addition to George's advice (re:OLEPUBLIC), you should also be aware that COMs cannot push messageboxes or data back to the client (the client can ask and receive, but COM cannot give!), and that COM has to communicate errors back to the client typically implemented with COMRETURNERROR. No timers inside COM. You had a lot of [cool] code - you may want to break it down (as a start point) into smaller sets for DLL - (maybe) one DLL = one DEFINE CLASS.
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform