hallo leto!
um einen MSAccess-catalog zu erstellen bedarf es etwas mehr arbeit...
- sofern du es noch nicht gemacht hast, importierst du die typenbibliothek
Microsoft ADO Ext 2.5 für DLL (version 2.5 ist schon ganz brauchbar)
- in die uses-klausel nimmst du ADOX_TLB auf und ggf ComObj
und mit hilfe dieser funktion
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| function TMainDlg.CreateKatalog(aFilename:TFilename):string; var cat: OleVariant; begin Result:= ''; try cat:= CreateOleObject('ADOX.Catalog'); ConString:= Format('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;',[aFilename]); cat.Create(ConString); cat:= NULL; except on e: Exception do Result:= e.message; end; end; |
erstellst du deinen datencatalog.
mfg, stefan