Solved

Winamp plugin trouble

Posted on 1998-05-07
4
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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