I am new to IntraWeb. I want to make a simple application which connects and displays an access database using ADO controls. When I execute the server it gives me
“CoInitialize has not been called”
error. I searched the internet and found many text telling that
Change ComInitialization property of
IWServerController to ciMultiThreaded.
I tried to do this in IWAppFormCreate event. Then I got compilation error:
“Undeclared Identifier ciMultiThreaded”
I put the line IWServerController.ComInitialization:=ciMultiThreaded; then the runtime error comes up:
“Access violation at address . . .”
Since I don’t know what I am doing I cant find the problem. Please help me.
The CoInitialize error on IntraWeb using ADO gives you the correct answer.
As I catch from comments on @David answer to this question, there are two things left:
Answer to this is: IWServerControllerBase unit, part of Intraweb.
Example:
I then added a button, a label and properly configured ADOConnection (against SQL Server if that matters) and:
Hitting the button, produces this:
Hope this is enough to you.