1. Home
  2. Computing & Technology
  3. Delphi Programming
RTL reference|Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link To
 
ISAPI tutorial for Delphi developers
Page 12: Frequently Asked Questions
 More of this Feature
• Pg 1: Intro to web-broker
• Pg 2: Using this tutorial
• Pg 3: Getting started
• Pg 4: Web Actions
• Pg 5: The first ISAPI app
• Pg 6: TWebRequestObject
• Pg 7: Request-responding
• Pg 8: TPageProducers
• Pg 9: Cookies made easy
• Pg 10: Stateless HTTP
• Pg 11: DB enabled apps
• Pg 13: DB apps - Part 1
• Pg 14: DB apps - Part 2
• Pg 15: DB apps - Part 3
 Join the Discussion
"Post your questions, concerns, views and comments to this article..."
Discuss!
 Related Resources
• Internet programming
• CGI and ISAPI with Delphi

1. I get this message in IE5 saying Page cannot be displayed
This is because IE5 has the option 'Show friendly HTTP errors' activated. When created web-server applications, I recommend turning this option off in Tools -> Internet Options -> Advanced. That way, you will receive an error message that's a little more descriptive.

2. Why do I get the error 'The specified module could not be found' when running my DLL?
Make sure you have copied your DLL to the correct location that corresponds to the URL you are calling. For example, if your URL is the default http://localhost/scripts, then the DLL should be copied to c:\inetpub\scripts (default).

3. When I try to debug my application under IIS4 I get "Access violation" and the CPU window comes up.
IIS runs as a service in NT. To be able to debug, you need to change some registry settings to run it as a process. Look at chapter 2 for more information regarding debugging.

4. I keep having to re-start my computer everytime I change something in my DLL.
This should not happen if you are debugging, since when you reset the debugger the web-server stops and the DLL's are unloaded. If you are running the DLL's stand-alone, then you have various options:

1. If you are using IIS 4 or above, in the properties of your scripts directory there is an option to allow you to run the DLL's in a separate memory space. This will activate the Unload button, thus allowing you to unload a DLL that's been loaded into memory.

2. Use the kill.exe program that is included in the NT Resource Kit. From the command line type: kill inetinfo. This will stop the web-server. Make sure you start it again if you are using it in a production environment.

5. When the Tags are replaced in my HTML files, memo fields appear as (MEMO) instead of the value. There are two ways you can correct this:

1. In the OnHTMLTag, check for the field in question by examining the TagString and if it corresponds to a memo field, then do a manual replace with ReplaceText := Field.AsString.

2. Check the ReplaceText value and if it contains (MEMO), then to a manual replace with ReplaceText := Field.AsString.

Next page > Database enabled applications - Part 1 > Page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

All graphics (if any) in this feature created by Zarko Gajic.

 More Delphi
· Learn another routine every day - RTL Quick Reference.
· Download free source code applications and components.
· Talk about Delphi Programming, real time.
· Link to the Delphi Programming site from your Web pages.
· Tutorials, articles, tech. tips by date: 2001|2000|1999|1998 or by TOPIC.
· NEXT ARTICLE: ADO Cursors - DB/10.
Chapter ten of the free Delphi Database Course for beginners. How ADO uses cursors as a storage and access mechanism, and what you should do to choose the best cursor for your Delphi ADO application.
 Stay informed with all new and interesting things about Delphi (for free).
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.