Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled DLL does not appear when called
Message
 
 
To
21/09/1998 20:30:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00139335
Message ID:
00139528
Views:
16
Andrew,

Which version of VFP? In 5 you can create a OLEPublic DLL (in-proc server) based on Form it can be made visible but about all you can do is change the BackColor of the window. If you make it an EXE (out-of-proc server) it can be a fully functional form.

In VFP6 you can no longer create DLL servers that have any visual interface, it will have to be an EXE instead. Non visual servers can be either DLL or EXE.

>I have been trying to compile a simple DLL, based on a form, and call it from the command window using a CREATEOBJECT command. It compiles fine, registers itself, etc, but when I try to "show" it, it does not appear. However, it is instantiated and I can run its methods, and view its properties successfully. When I instantiate it, this is my code:
>
>x = createobject('oletest.test')
>x.visible = .t.
>x.show
>
>As I said, it does get created, but does not visually appear anywhere on the screen. Am I missing something obvious?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform