Results 1 to 10 of 21

Thread: [help] web server and ado connection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and you know other method to doing web service easier...

  2. #2
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2
    If you were just going to write a web server that serves pages and files (as opposed to a web service like SOAP), I'd go for the completely self contained option using the Indy HTTP server. Unfortunately, you're not, so the answer is no I don't.

    If it's going bang when you're connecting to the database, then something is either wrong with your connection settings (unlikely as you can connect at design time, unless you're testing it on another machine where the user doesn't have access to the database - MySQL permissions allow for host specific access control, so what works for one user on machine A may not work for that same user on machine B), or you've not done something that the IDE does for you at design time.

    ADO uses COM (I believe), in your code, have you made a call to coInitialize? If not, the COM/ActiveX won't be initialised and all your ADO calls will fail. So if you've got a datamodule, then I would be inclined to use the create and destroy events of the module to call coInitialize and coUninitialize.
    :: AthenaOfDelphi :: My Blog :: My Software ::

  3. #3
    i tried but dont work :s

  4. #4
    ok i will try but now only tomorow i will post the changes , thanx a lot, tomorow i will write to you...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •