|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Run-time error '-2147221504 (80040000)I tried to run a vb application in debug mode and i got this Run-time
error '-2147221504 (80040000) it seems that has to do with a multilanguage dll file that needs to be register which I did, but it still didn't fix the error. the line that gives me the error is the one below: ResLoader.ResourceFile = App.Path & "\Report.res" Does someone know to resolve this? Cheers! Claudi *** Sent via Developersdex http://www.developersdex.com *** MSDN says this is the error:
-2147221504 (80040000) Invalid OLEVERB structure If SQL related, search for this KB article: Q234736 -- Show quoteSteve Easton "Claudia Fong" <cdolphi***@yahoo.co.uk> wrote in message news:%23ugcagEKIHA.5980@TK2MSFTNGP04.phx.gbl... >I tried to run a vb application in debug mode and i got this Run-time > error '-2147221504 (80040000) > > it seems that has to do with a multilanguage dll file that needs to be > register which I did, but it still didn't fix the error. > > the line that gives me the error is the one below: > > ResLoader.ResourceFile = App.Path & "\Report.res" > > Does someone know to resolve this? > > Cheers! > > Claudi > > *** Sent via Developersdex http://www.developersdex.com *** "Claudia Fong" <cdolphi***@yahoo.co.uk> wrote in message It's probably not the problem but App.Path & "\Report.res" will fail if the news:%23ugcagEKIHA.5980@TK2MSFTNGP04.phx.gbl... >I tried to run a vb application in debug mode and i got this Run-time > error '-2147221504 (80040000) > > it seems that has to do with a multilanguage dll file that needs to be > register which I did, but it still didn't fix the error. > > the line that gives me the error is the one below: > > ResLoader.ResourceFile = App.Path & "\Report.res" App.Path is a root directory. You should check to see if the trailing slash is needed and then only add one when appropriate. As an example (for one liner lovers everywhere): ResLoader.ResourceFile = App.Path & IIf(Right$(App.Path ,1) = "\","","\") & "Report.res" Regards Dave O. |
|||||||||||||||||||||||