reg4soft Posted June 27, 2014 Posted June 27, 2014 can someone give me a sample to show how SDAC works with UniGui?Thank! Quote
wangxuebin Posted July 5, 2014 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
chefdackel Posted July 5, 2014 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
reg4soft Posted July 7, 2014 Author 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
Administrators Farshad Mohajeri Posted July 7, 2014 Administrators Posted July 7, 2014 Put it on MainModule ServerModule->AutoCoInitialize->True Quote
reg4soft Posted July 8, 2014 Author Posted July 8, 2014 Put it on MainModule ServerModule->AutoCoInitialize->True It works,Thanks! Quote
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.