Solved

Can Delphi make Netscape's Plugin?

Posted on 1998-12-19
8
524 Views
Last Modified: 2013-11-18
Hi!! I am working on a speech compression scheme on Delphi, and now I need to transfer the code to make netscape's plugin.

From reading the netscape's sdk, it saids the plugin should be make from VC. Can delphi programme a plugin? So that I can save lots of times from translate my code to VC.

Do you have sample code for making these plugins?

regards,
James
0
Comment
Question by:jhui
[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
  • 5
  • 3
8 Comments
 
LVL 4

Expert Comment

by:dwwang
ID: 1352051
Check this site, there is a framework with full source for building netscae plugin by Delphi:
http://ourworld.compuserve.com/homepages/mikes/
0
 

Author Comment

by:jhui
ID: 1352052
I am sorry to reject the answer. It is not exactly the answer's problem. It is the my problem.

I have read the programme and find it is too difficult for me. Can you give me some simpler answer? something like if 2 is feed into the plugin, it will time 3 and output a 6 for display. Anything simple can do.

Since I am asking for extra helps. I increase point by 50.
Thanks.

regards,
James.
0
 
LVL 4

Accepted Solution

by:
dwwang earned 150 total points
ID: 1352053
Hi, don't be terrified by those complex code, it is a evry good framework for building a plugin.

When we say a FRAMEWORK, it means you needn't care about any details in those units, simply inherit the TPluginForm to create your own form, and write the code you want in the form, just like normal Delphi programming.

The most easy way to build your plugin is just use this sample project, the only thing you need to do is to change the name of the form/project/etc.

Below is an example, by simply deleting all the components and procedures from the original test form, then add my own ones to it.

-------------------------------------------------------
unit Test;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Grids, DBCtrls, DBGrids, ExtCtrls, NPForm;

type
  TPluginTestForm = class(TPluginForm)
    Edit1: TEdit;
    Edit2: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Button1: TButton;
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  PluginTestForm: TPluginTestForm;

implementation

{$R *.DFM}

procedure TPluginTestForm.FormCreate(Sender: TObject);
begin
     edit1.Text:='';
     edit2.text:='';
     label3.caption:=''
end;

procedure TPluginTestForm.Button1Click(Sender: TObject);
begin
     label3.Caption:=IntToStr(StrToIntDef(edit1.text,0)*StrToIntDef(edit2.text,0));
end;

initialization
  RegisterPluginForm( '', TPluginTestForm ) ;
end.

it does a simple calculation, such as 2*3=6 :-)

I have never built plugins myself, but with this frame work, I can do it within 5 minutes now!

Regards,
Wang
0
Technology Partners: 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!

 
LVL 4

Expert Comment

by:dwwang
ID: 1352054
Hi, how are things going? Need more suggestions?
0
 

Author Comment

by:jhui
ID: 1352055
Thanks for you answer!!

I am still thinking how to use the framework on my speech coompression programme like RealAudio on the Web.

The answer is just slightly different from what I used to think.

regards,
James.
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1352056
Speech compression? Sounds interesting, so is there any difficulties to apply this frame work to you application?
0
 

Author Comment

by:jhui
ID: 1352057
Yes, the project is quite interesting.

Since I want to place the compressed sound clip on a web site, and when user click on the file. The plugin should then decompress it and play it through MCI.

What I am puzzling is the frame work seems like only making the programme work on a browser, so it can only decompress the speech file stored on local harddisk. What I need is to decompress the data from the server and playback on local machine.
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1352058
Oh, I see.

However, as I said, the frame work is the tool for you to programm NS-plugs just like programming normal Delphi Apps. So if you know how to communicate with the server, i.e. receive a datastream via TCP/IP, I think you can put TClientSocket component on the form and then again do what you want to do, as a normal delphi programm.

Hopefully TClientSocket can work within a Netscape browser window :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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 this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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