(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-14-24 04:15 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - VB - Cannot Find File error New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 09-06-06 11:38 PM Link | Quote
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!
MisterJones

Tooky








Since: 12-08-05
From: Mexico

Last post: 6384 days
Last view: 6320 days
Posted on 09-07-06 12:46 PM Link | Quote
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"
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6294 days
Last view: 6294 days
Posted on 09-07-06 03:47 PM Link | Quote
Originally posted by MisterJones
Isn't backslash a escape character in VB?
Nope.
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 09-07-06 04:26 PM Link | Quote
Mind posting something helpful at least, Kawa?

Why would VB be doing this it looks like it'd work
Jagori

150


 





Since: 11-17-05

Last post: 6295 days
Last view: 6295 days
Posted on 09-08-06 06:35 PM Link | Quote
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.
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6295 days
Last view: 6294 days
Posted on 09-08-06 08:47 PM Link | Quote
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.
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 09-08-06 09:23 PM Link | Quote
Well this is for my purposes at the moment with this DLL I don't know how broke
But it somehow did :/
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6294 days
Last view: 6294 days
Posted on 09-08-06 09:48 PM Link | Quote
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.
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6294 days
Last view: 6294 days
Posted on 09-09-06 04:24 AM Link | Quote
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

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6294 days
Last view: 6294 days
Posted on 09-09-06 03:51 PM Link | Quote
Even better. I wasn't sure VB did that.
MisterJones

Tooky








Since: 12-08-05
From: Mexico

Last post: 6384 days
Last view: 6320 days
Posted on 09-10-06 01:26 AM Link | Quote
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).
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6295 days
Last view: 6294 days
Posted on 09-10-06 01:06 PM Link | Quote
Hmm... well, the only other problem I can see if the space in your filename, is that supposed to be there, as jagori mentioned?
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6295 days
Last view: 6294 days
Posted on 09-15-06 12:48 PM Link | Quote
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?
Add to favorites | Next newer thread | Next older thread
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.019 seconds; used 406.01 kB (max 506.95 kB)