Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO CREATE A TEXTBOX IN DLL

Status
Not open for further replies.

athom

ISP
Joined
Apr 4, 2001
Messages
20
Location
CA
for properties use in a dde conversation ? (ex .LinkRequest)

Thanks...
 
I don't think forms are allowed in DLL's you might need to make and OCX instead. Though I have been mistaken before. Craig, mailto:sander@cogeco.ca

Bow Before me for I am ROOT
<Beer>Happiness</Beer>
 
Nikita

How do they work. I tried to add a form to a DLL I made, just so that I could test the reult path of the DLL without going through the bother of creating a vbg. But it's wouldn't let me start in the form. It kept asking me how to start the DLL. Craig, mailto:sander@cogeco.ca

Bow Before me for I am ROOT
<Beer>Happiness</Beer>
 
Hey Craig. I am sorry that I confused you but I meant that you in general can create forms in DLLs the same way you do it in your Standard EXE projects. Then you can invoke these forms the regular way from classes in your DLL or other objects. But you still need to create DLL object in other programs though. I do not think there is away to just start your DLL in VB IDE. Although who knows.

Nikita
 
If you haven't created the DLL yet, but have the code in a Vbp, you can start it (it will then be registered) - but it justs sits there and waits for something to tell it what to do, because the start object has to be a multi use class, and of course a class object has to be created using the New keyword before it can be used, and this class object is created form a normal vbp.
The class, or another object that the class calls, then creates an instance of the form it needs to open.

So, I create a DLL with a multiuse class and a form. A method in the multiuse class creates a new instance of the form in the same dll project.

In a vb exe project, I reference the dll and then create a new object with the class in the dll. Then I execute the method of the class which will open the form in the dll.
 
Have you considered doing the DLL in VC++, that way you create the Dialog to host the controls, derive a class for the Dialog and export it.

Then using STD VB notation create it like you normally would. If you generate a typelib as well it's even easier.

HTH.
William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top