Solved

Winamp plugin trouble

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

12 Experts available now in Live!

Get 1:1 Help Now