Solved

Winamp plugin trouble

Posted on 1998-05-07
4
267 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now