Solved

Winamp plugin trouble

Posted on 1998-05-07
4
272 Views
Last Modified: 2013-11-18
I'm making a winamp plugin and have some problems with creating forms.
If I use system calls to create a window it works fine but I want to use forms.
As soon as I run "pluginform.create(bla bla);" it crashes...
Anyone know anything 'bout this?
Btw. I'm a beginner at Windows programming.

/Anders
0
Comment
Question by:andersh012098
  • 2
4 Comments
 
LVL 4

Expert Comment

by:d003303
ID: 1342711
Yo,
I'm not familar to the Winamp plugin API. What is the call to create the window ? How did you succesfuly create a window ? What do you mean with "pluginform.create(bla bla);" ?

Slash/d003303
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1342712
Ditto...
0
 

Author Comment

by:andersh012098
ID: 1342713
The plugin is a DLL.
I can create a window by using windows api but then it's so much trouble to make buttons and all that. Therefore I want to use a form.
The form can't be autocreated becase it's in a library and therefore I must create it in runtime and that's done with the tfrom.create procedure. What I ment by "bla bla" is the parent witch is winamp.

/Anders
0
 
LVL 4

Accepted Solution

by:
d003303 earned 100 total points
ID: 1342714
Yo,
you cannot use Winamp as a parent. The TForm.Create method needs an object pointer to a component, Winamp isn't a Delphi component.
I think you have the handle to the Winamp window. So use TForm.CreateParented(TheHandle) to create the form. Then it will show 'real' modal to Winamp when you call ShowModal.

Slash/d003303
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question