reg4soft Posted June 27, 2014 Share Posted June 27, 2014 can someone give me a sample to show how SDAC works with UniGui?Thank! Quote 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. Quote 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. Quote 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) Quote 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 Quote 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.