大家谈谈Delphi7中的intraweb(100分)

  • 主题发起人 主题发起人 xuwenzhong
  • 开始时间 开始时间
X

xuwenzhong

Unregistered / Unconfirmed
GUEST, unregistred user!
Delphi7中新增了Intraweb,初试了一下感觉良好。可不知道怎样在IIS中部署,如何用第三方编辑软件进行加工,
性能怎样?大家一起谈一谈吧!
 
delphi7是正式版么?
 
才装上,听课
 
我用的是d5,下载了一个。非常好的东西啊,开发web程序非常方便,
但是我也不知道怎么发布,运行其编写的cgi时,总是弹出它自己的调试窗口
 
欢迎有Intraweb编程经验的高手谈一谈
 
把它编译成DLL文件,放到wwwroot目录下,访问的时候直接打
http://ComputerName/XX.dll/start
就可以进行访问了,其它的我就不知道了,大家互相学习
 
When I compile my application with Delphi 6, I get an error message saying: "InGlobal" was compiled with a different version of System.rtl

You need to make sure you have Delphi 6 Update Pack 2 installed. If you have already installed the Update Pack previously, re-install.



--------------------------------------------------------------------------------

When I upload my standalone EXE to the webserver and try and access it, the browser prompts me with a Save dialog

IntraWeb standalone applications are not CGI's. They are standalone executables that have a built-in web server. To access the IW application you need to specify the following URL:

http://your_ip_address:port_assigned

where port_assigned is the port that is set in the ServerController in your project.



--------------------------------------------------------------------------------



How can I convert my stand alone application to ISAPI in Delphi?

Lets take the Guess demo as an example:

program Guess;

uses
IWInitStandAlone, Main in 'Main.pas' {formMain: TIWFormModuleBase},
ServerController in 'ServerController.pas' {IWServerController: TDataModule};

{$R *.res}

begin
IWRun(TFormMain, TIWServerController);
end.
Change the program clause to library.
Chage IWInitStandAlone in the uses clause to IWInitISAPI.

Your project file should now look like this:

library Guess;

uses
IWInitISAPI, Main in 'Main.pas' {formMain: TIWFormModuleBase},
ServerController in 'ServerController.pas' {IWServerController: TDataModule};

{$R *.res}

begin
IWRun(TFormMain, TIWServerController);
end.

--------------------------------------------------------------------------------


How can I convert my ISAPI application to stand alone in Delphi?

Lets take the GuessDLL demo as an example:

library GuessDLL;

uses
IWInitISAPI,
ServerController in 'ServerController.pas' {IWServerController:
TIWServerControllerBase},
Main in 'Main.pas' {formMain: TIWFormModuleBase};

{$R *.RES}

begin
IWRun(TFormMain, TIWServerController);
end.
Change the library clause to program.

Change IWInitISAPI to IWInitStandAlone
Your project file should now look like this:

program GuessDLL;

uses
IWInitStandAlone,
Main in 'Main.pas' {formMain: TIWFormModuleBase},
ServerController in 'ServerController.pas' {IWServerController:
TDataModule};

{$R *.res}

begin
IWRun(TFormMain, TIWServerController);
end.

--------------------------------------------------------------------------------

How can I convert my stand alone application to ISAPI in C ++ Builder?

Open your bpr file in a text editor such as NotePad.
Locate the line that says:
<PROJECT value="MyProject.exe"/>

Change the EXE to DLL

3. Locate the line that says

-tW -tWM"/>

and add "D" after the first W

4. Locate the line that says

<ALLOBJ value"c0w32.obj $(PACKAGES) Memmgr.Lib sysinit.obj $(OBJFILES)"/>

and change c0w32.obj to c0d32.obj

5. Save the changes and open the updated project file in C++ Builder

6. Change IWInitStandAlone to IWInitISAPI in the uses clause.

7. Build the project



--------------------------------------------------------------------------------

What are the A-Team and TeamZed designations I see on some newsgroup post signatures?

Please see the A-Team page and the TeamZed pages.



--------------------------------------------------------------------------------

When I install IntraWeb I receive an error about not being able to install into Delphi 5 but I have never installed Delphi 5 or have removed it since then. What is wrong?

Another major software vendor has a problem with their install that creates a Delphi 5 registry key even if Delphi 5 is not installed. To fix the problem:

Run regedit and remove this key: HKEY_LOCAL_MACHINE//Software/Borland/Delphi/5.0
Run the IntraWeb install again.


--------------------------------------------------------------------------------


How can I install my IntraWeb application in Apache?

After you have created the DSO, you may find Apache Shared Modules of use. This is an article by Brian Long which includes information on installing Apache DSOs. You can deploy applications you create using Apache Shared Modules on either Win32 or Linux Apache web servers with IntraWeb.


--------------------------------------------------------------------------------


Can I develop for Linux?

Yes, using Kylix 2 or 3 you can deploy in standalone mode, or as an Apache DSO.


--------------------------------------------------------------------------------


How can I have an ISAPI and a stand alone version of my application?

Create two project files with different names, but include the same main unit and other required files. Both the Guess/GuessDLL and Fishfact/FishfactDLL demos demonstrate this.


--------------------------------------------------------------------------------

I am trying to use ADO or some other COM component and I get an error about CoInitialize must be called?

Set InitializeCOM to True in your application's server controller.


--------------------------------------------------------------------------------

Why are fonts messed up in some browsers?

Most computers are set for small fonts. Since all rendering is based on the servers representation if a user has large fonts, the rendering will be slightly off. End users should use small fonts, or alternatively the developer should leave sufficient space around each component to compensate for the offset. Large fonts can be used if templates are used.


--------------------------------------------------------------------------------

Do I need a web-server to run IntraWeb?

This answer depends on how you deploy your IntraWeb application.

If you deploy using ISAPI, then yes you will need a web server which supports ISAPI such as Microsoft IIS or Omni HTTP.

If you deploy using the stand alone method, then no you will not need a web server because a specialized web-server is provided by IntraWeb. However, most people will want to run it in conjunction with a normal web server to serve static pages and graphics, but this is not required.


--------------------------------------------------------------------------------

Will I have any conflicts with our primary web server?

Web servers run on the default HTTP port 80. Unless the web-server has been configured to run on the IntraWeb application port or vice versa, there will not be any conflicts.


--------------------------------------------------------------------------------

Can I use Secure Sockets Layer (SSL) with IntraWeb and my IntraWeb applications?

IntraWeb when deployed as ISAPI can be used with SSL by using the SSL features of the hosting webserver.

When deployed in stand alone mode, IntraWeb can also support SSL. However, some countries disallow the use of strong methods of encryption. It depends on the location where the application is to be run. Atozed Software does not provide any rights or licenses to use strong encryption methods. However, IntraWeb can support SSL if the OpenSSL dynamic link libraries (DLL's) for Indy are installed. Download SSL Libraries.

For instructions on setting up an IntraWeb stand alone server to use SSL please see the SSL section in the IntraWeb Manual.


--------------------------------------------------------------------------------

Can I use the IntraWeb web-server as our primary web-server?

It is not recommended. The IntraWeb server provided in the package is a specialized server for running IntraWeb applications only. For web-servers, other products are available such as the Apache web-server that can be downloaded for both Windows and Linux and is freely available.

If the primary focus of the website is the IntraWeb application, the web-browser can be automatically redirected to the IntraWeb server.

Apache can be redirected by modifying its configuration file. Microsoft IIS can process a redirect by editing adding a virtual directory and redirect in IIS Manager.

Another option is to use an HTML page containing a meta-tag:

<META HTTP-EQUIV="Refresh" CONTENT="x; URL="http://<server name>:4321/start/<app name>/"">

Where x is the number of seconds to wait in the HEAD section of the HTML document such as:

<HTML><HEAD><TITLE>Redirecting to Our Application Server</TITLE><META HTTP-EQUIV="Refresh" CONTENT="3; URL=http://www.yourcompany.com:4321/FishFact/start"></HEAD><BODY><P>You should be redirected to our application server in three seconds. If you are not redirected, please <A HREF="http://www.yourcompany.com:4321/FishFact/start">follow this link to go to our application server</A>.</P></BODY></HTML>


--------------------------------------------------------------------------------

What IP addresses does my IntraWeb server listen on?

IntraWeb servers listen on all of the active IP addresses on the machine.


--------------------------------------------------------------------------------

How can I install a new IntraWeb program as a service?

Copy the executable file to the destination machine. From a command prompt run the executable with the "-install" parameter. This installs it as a service. Proceed to the Service applet in the Control Panel to set the startup. If running as a standalone application, by just copying it to the destination machine and starting it is sufficient.


--------------------------------------------------------------------------------

How can I update an IntraWeb program after I have deployed it?

First, stop the IntraWeb application service. Upload the newer version and restart the service. If running as a standalone, simply replace the existing file after stopping it, and then restart the application.


--------------------------------------------------------------------------------

How can I completely remove an IntraWeb service from my server?

Stop the IntraWeb application service. From a command prompt run the executable with the "-uninstall" parameter. Finally, delete the executable.


--------------------------------------------------------------------------------

Can users run an IntraWeb application through their firewalls?

Firewalls normally block unknown ports and only leave commonly used ports open (such as port 80). However, most firewalls allow all HTTP traffic to pass through regardless of what port they use. This is done by using an HTTP proxy. Therefore, IntraWeb is compatible with nearly all firewalls your users may be using.


--------------------------------------------------------------------------------

What do I do if I do not have permission to install my IntraWeb application on Windows NT or Windows 2000?

The IntraWeb applications must be installed from an administrator account. Contact your network administrator.

Note: This is only true for the stand alone versions of IntraWeb. The ISAPI versions can be installed by any user with upload access.


--------------------------------------------------------------------------------

Why does the port that the application runs on keep changing?

The evaluation version of IntraWeb picks the port at random. When the product is purchased, fixed port numbers can be specified in the Server Controller.


--------------------------------------------------------------------------------

Does IntraWeb support visual form inheritance?

Currently, IntraWeb does not support visual form inheritance. However as of 4.0.11 IntraWeb does support TFrame and is more flexible than visual form inheritance in most situations.


--------------------------------------------------------------------------------

Does IntraWeb support TFrame?

IntraWeb introduces support for TFrame in version 4.0.11.


--------------------------------------------------------------------------------

How do I control the session timeout?

Set the SessionTimeout property in the application's ServerController.


--------------------------------------------------------------------------------

Why when debugging using the IDE and Netscape 4 is the application is slow on the development machine and the task manager shows 100%?

This is a known problem between Netscape and the Delphi IDE. Task switch to your application when hitting a button in Netscape and it will respond. This only occurs when running from the Delphi IDE.


--------------------------------------------------------------------------------

When when using Internet Explorer is there a delay when I first click on a button?

The first time you click on a button or other submittable item in Internet Explorer and Internet Explorer has just recently been started, Internet Explorer pauses for 1 to 2 seconds and loads its Javascript libraries. Notice that this only happens on the first click, and subsequent actions are much quicker.


--------------------------------------------------------------------------------

I have installed IntraWeb but I receive an error "procedure entry point @Systemcrispi@initializtion$qqrv could not be located".



This situation occurs on system which had IntraWeb 3.0 installed prior to installing 3.1 or later. IntraWeb 3.0 was license to Nevrona and the installer was maintained by Nevrona. IntraWeb 3.0 does not completely uninstall itself and thus conflicts with IntraWeb 3.1.

To solve this problem perform the following steps:

Close all versions of Delphi
Uninstall IntraWeb 3.0
Uninstall IntraWeb 3.1
Search your complete file system for *intraweb*.bpl and *intraweb*.dcp - Delete all versions of this file.
Reinstall IntraWeb 3.1

--------------------------------------------------------------------------------

When I run my application it fails to work from Internet Explorer. IE fails to connect to host when launched. What is wrong?

Installation of a different browser (Netscapte 6.1, etc.) can alter the IE web settings which previously existed. Restoring IE to its original settings should resolve the problem. To restore the settings, open IE, select Tool | Internet Options | Program and click on Reset Web Settings.


--------------------------------------------------------------------------------

If I buy the developer edition, can I upgrade to the enterprise edition later?

Yes. You may upgrade from developer to enterprise for the difference in price plus $25 USD.

To upgrade use this order form.


--------------------------------------------------------------------------------


Why does IE give me a Javascript error and when I look at the javascript its incomplete?

Its a bug in IE. We have traced this with a network tracer and also see it on internet sites with IE. One thing we have noted is that it seems to only happen when IE is launched via a URL or the Execute (which uses a URL) in stand alone mode. Use the "Copy URL to Clipboard" function and open IE manually, then open the URL on the clipboard and it will work perfectly.


--------------------------------------------------------------------------------

Can I use GIFs in my application?




Yes, but with some special considerations. GIFs cannot be used in commercial software in most cases, but there is a way around it.


GIF images were free. Then Unisys said "we have a patent on the LZW compression that GIF uses". A judge then granted them the right to charge license fees. This was an idiotic decision as Unisys left their patent undefended for about 15 years and waited until it was in widespread use. You can read more about this at BurnAllGifs and GNU.org.

You can however use GIFs with IntraWeb by using TIWImageFile. With TIWImageFile IntraWeb merely passes the raw file data through to the web browser and does not compress or uncompress the GIF.

TIWImageFile can ignore the GIF at design time, or you can install a GIF processor into Delphi to display it at design time.

Below is a list of free GIF processors for Delphi to enable this. Just install them into any package that is loaded at design time. Some of them come with their own packages.

TGIFImage by Anders Melander
List of GIF processors at Torry's
The above restriction does not apply in all countries. For those countries that it does apply this should get you around the restriction, but the software you use to create the GIFs may have special restrictions when used to create GIFs for use on the internet.

We are not lawyers, but we know that IntraWeb's portion of your GIF puzzle is legal in all countries, however your other portions of the GIF puzzle are your legal responsibility.


--------------------------------------------------------------------------------


Why can I not use ShowModal?

IntraWeb requires that control be returned to its handling routines. Since ShowModal effectively blocks the program flow, control cannot be returned. Thus ShowModal cannot be used in an IntraWeb application, as it will cause the program to freeze. Instead merely display an IntraWeb form wtih an Ok or Close button which calls the Release method.

In essence though, since your IntraWeb application occurs in a single browser window typically, all forms are "modal".


--------------------------------------------------------------------------------


When using the BDE, I get the following error when starting my web application: "An error occurred while attempting to initialize the Borland Database Engine (error $2B05)"

Please see this article on the Borland Community website.



--------------------------------------------------------------------------------

Is source code available for IntraWeb?

Source code is available under certain conditions and as a seperate purchase.


--------------------------------------------------------------------------------



Why did the chicken cross the road?

Some people say "To get to the other side.". We however are not really sure why the chicken crossed the road. It shall remain a mystery to the world.

 
终于在IIS调试成功,可运行Features示例后,连续点击Dynamic Grid两次以上就会出错。
如果是运行Features.exe的程序并不会出错。
 
用它的数据模式向导怎么会出错呢?怎么修改?
用向导生成的模块没错,但是往里面加入ado就出错了。
 
只要把ComInitialization设为Cinormal或CiMultithreaded即可解决ADO问题
 
终于又自己解决了一些关键问题。真的可以用第三方制作软件进行加工!!!
 
还没下载delphi7,听听
 
请问,现在下载的Delphi7.0是正式版吗?是不是企业版。
 
是正式企业版
 
收藏,备用!
 
在intranet我想性能是不错,在internet上有人设计过吗?性能怎样?速度怎样?
 
intraweb的确很好用,功能也很强大,很方便的支持模板,session等。就是不知道
稳定性和性能怎么样,它的html和javascript代码不知道是怎么生成的(源码里找不到)
。自己控制不了,出了问题也没办法。
 
后退
顶部