From: "Isabelle L." Date: 2012-10-15T21:56:40+09:00 Subject: Re: Problems calling a DLL from Ruby Joel Pearson wrote in post #1079891: > Did you register the DLL as an administrator? > > Also, did you escape the backslashes in the path name? > 'C:\\Windows\\System32\\gbda_aut.dll' > Sometimes windows will accept '/', but not reliably enough for me. Thanks for answering so quickly. I resgistered as an administrator, yes. I haven't tried escaping the '/'. I should've thought about that! However, I think I may have fixed the problem myself, with some help from a collegue. We checked the registry to see if the DLL was indeed registered. It was registered under the name "Graybox.OPC.DAWrapper", so I figured I'd try using this in Win32OLE's new function, as so : test = WIN32OLE.new('Graybox.OPC.DAWrapper') It seems to work so far since I don't have the error anymore and I've successfully called one function. -- Posted via http://www.ruby-forum.com/.