Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
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: 6427 days Last view: 6427 days |
| ||
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: 6517 days Last view: 6453 days |
| ||
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: 6427 days Last view: 6427 days |
| ||
Originally posted by MisterJonesNope. |
|||
interdpth Mole MZM rapist Since: 11-18-05 Last post: 6427 days Last view: 6427 days |
| ||
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: 6428 days Last view: 6428 days |
| ||
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: 6428 days Last view: 6427 days |
| ||
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: 6427 days Last view: 6427 days |
| ||
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: 6427 days Last view: 6427 days |
| ||
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: 6427 days Last view: 6427 days |
| ||
Originally posted by HyperHackerThe 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: 6427 days Last view: 6427 days |
| ||
Even better. I wasn't sure VB did that. | |||
MisterJones Tooky Since: 12-08-05 From: Mexico Last post: 6517 days Last view: 6453 days |
| ||
Originally posted by HyperHacker 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: 6428 days Last view: 6427 days |
| ||
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: 6428 days Last view: 6427 days |
| ||
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 | | |