mattn / go-adodb

Microsoft ActiveX Object DataBase driver for go that using exp/sql
http://mattn.kaoriya.net/
MIT License
142 stars 36 forks source link

"class not registered" error #20

Closed gitdlam closed 8 years ago

gitdlam commented 8 years ago

Hi mattn or anyone else reading,

With example mdb.go file. It compiles okay into an exe, when i run it, it gives:

create mdb Exception occurred. (Class not registered)

It was having trouble with oleutil.CallMethod(cat, "Create", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+f+";")

So maybe i need to modify that to an alternative. Can anyone point me in the right direction? So far it looks as though i need to be running the 32bit version of Go, or install 64bit version of Office, but i'm hoping to not do that.

Many thanks.

gitdlam commented 8 years ago

All i needed to do was change the environment GOARCH=386

All good now.