reg4soft Posted June 27, 2014 Share Posted June 27, 2014 can someone give me a sample to show how SDAC works with UniGui?Thank! Link to comment Share on other sites More sharing options...
wangxuebin Posted July 5, 2014 Share Posted July 5, 2014 using unidac in unigui just as using in VCL model.put all unidac components in unimainmodule And using them in uniforms. Link to comment Share on other sites More sharing options...
chefdackel Posted July 5, 2014 Share Posted July 5, 2014 using unidac in unigui just as using in VCL model.put all unidac components in unimainmodule And using them in uniforms. .... or put the unidac components in a DataModule, but - important - FM explained just today that the DataModule has to be created from the UniGui Wizard, see... http://forums.unigui...t-demo/?p=21044 ...to be sure that every session uses its own DataModule. Link to comment Share on other sites More sharing options...
reg4soft Posted July 7, 2014 Author Share Posted July 7, 2014 I try to put a MSConnection into DataModule, and use it in MainForm,while try to connect SQL server ,i get the error like: CoInitialize has not be called by the way MSConnection is one of the Component in SQL Server Data Access Components (SDAC) Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 7, 2014 Administrators Share Posted July 7, 2014 Put it on MainModule ServerModule->AutoCoInitialize->True Link to comment Share on other sites More sharing options...
reg4soft Posted July 8, 2014 Author Share Posted July 8, 2014 Put it on MainModule ServerModule->AutoCoInitialize->True It works,Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now