(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-28-24 10:53 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - VB - Cannot Find File error
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Sukasa
Posts: 1687/2068
Try rebuilding the .dll or whatever. I just had a similar problem, and regsvr32.exe couldn't register the .dll, because it turned out to be bad. mayeb that's the problem with mzme.dll?
Sukasa
Posts: 1680/2068
Hmm... well, the only other problem I can see if the space in your filename, is that supposed to be there, as jagori mentioned?
MisterJones
Posts: 112/125
Originally posted by HyperHacker
Even better. I wasn't sure VB did that.


I have yet to see a language that doesn't do that (relative search on its own application directory when not using an absolute path).
HyperHacker
Posts: 3232/5072
Even better. I wasn't sure VB did that.
Kyoufu Kawa
Posts: 1097/1353
Originally posted by HyperHacker
You should consider moving the DLL to \Windows or \Windows\System32 and just writing "mzme.dll". Giving an absolute path means it won't work on other computers.
The app path itself is also searched, though.
HyperHacker
Posts: 3222/5072
You should consider moving the DLL to \Windows or \Windows\System32 and just writing "mzme.dll". Giving an absolute path means it won't work on other computers.
interdpth
Posts: 246/362
Well this is for my purposes at the moment with this DLL I don't know how broke
But it somehow did :/
Sukasa
Posts: 1674/2068
If the file is in the same folder as your project, you would be better of using "App.path + mzme.dll" ", so tha tmovign the folder or whatever won't break mzme.
Jagori
Posts: 119/155
Is that a copy and paste from your code? If so, is there really supposed to be a space between "vb_" and "MZMMEsrc" in the path? Unfortunately I don't actually know VB so I have no guesses beyond that.
interdpth
Posts: 244/362
Mind posting something helpful at least, Kawa?

Why would VB be doing this it looks like it'd work
Kyoufu Kawa
Posts: 1091/1353
Originally posted by MisterJones
Isn't backslash a escape character in VB?
Nope.
MisterJones
Posts: 110/125
Isn't backslash a escape character in VB? If so, you need double backslashes in a string to parse it correctly. Like: "C:\\Projects\\VB\\vb_ MZMMEsrc\\gbadecmpdll_my_ver\\mzme.dll"
interdpth
Posts: 242/362
Ok, so I had to write a DLL and C and i'm trying to link it in VB, for some reason when ever I call it VB reports it can not find the DLL, when I gave VB the correct location of where the DLL is located

Public Declare Function RLUnComp Lib "C:\Projects\VB\vb_ MZMMEsrc\gbadecmpdll_my_ver\mzme.dll" (decmpsize As Long, source As Byte, dest As Byte) As Long

The file is in fact at that location


The C call is u32 WINAPI RLUnComp(u32 decmpsize, u8 *source, u8 *dest)

So any obvious reason this shouldn't work? Help is needed, thanks!
Acmlm's Board - I3 Archive - Programming - VB - Cannot Find File error


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 348.41 kB (max 398.05 kB)