Click here to Skip to main content
15,927,921 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Tim Carmichael14-Mar-08 5:25
Tim Carmichael14-Mar-08 5:25 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs15-Mar-08 10:04
Capitanevs15-Mar-08 10:04 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak14-Mar-08 8:10
mveDave Kreskowiak14-Mar-08 8:10 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs15-Mar-08 9:59
Capitanevs15-Mar-08 9:59 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak15-Mar-08 11:22
mveDave Kreskowiak15-Mar-08 11:22 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs16-Mar-08 11:24
Capitanevs16-Mar-08 11:24 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak17-Mar-08 5:22
mveDave Kreskowiak17-Mar-08 5:22 
QuestionMORE TEST PERFORMED: the situation is very curious and annoying!! [modified] Pin
Capitanevs16-Mar-08 13:09
Capitanevs16-Mar-08 13:09 
Boys, it doesn't work.

There has been an intermediate phase in the development of my program in which EVEN on the "development machine" the DLL seemed not to work (with the same error: path not found).

Anyway, now I have a WORKING DLL again and I made this test
(l[dev-mac]=development machine and [gen-mac]=generic machine)

On [dev-mac] I have a directory placed in c:\ containing the files
C:\EcoNoBLaSt++\EcoNoBLaST++.xls
C:\EcoNoBLaSt++\PRICER_LIBRARY.dll
C:\EcoNoBLaSt++\Pricer_Library.lib
C:\EcoNoBLaSt++\test.exe

test.exe is an executable I have compiled in C++; it calls the dll using the LoadLibrary call.
On [dev-mac] both VBA script contained in *.xls and C-generated EXE file correctly invoke the DLL Cool | :cool:

I copy the aforementioned folder in the same path on [gen-mac].
Neither VBA script nor the EXE file longer work!!Mad | :mad:

If I execute them remotely (with [dev-mac] connected to [gen-mac]) everything is ok) Suspicious | :suss:

It seems to be something connected to dependencies of my DLL...
I point out this two observations:
1) The error I retrieve in VBA script is "File not found" (#48), not "Missing dependencies" or something like that...
2) My DLL doesn't depend dynamically on anything. I had to use an external precompiled library, but It should be embedded in the code, shouldn't it?
4) As the DLL doesn't work neither in VB-code nor in C-build-exe, we should exclude syntax error in calling the function. Unsure | :~



I REALLY HAVE NO IDEA OF WHAT IT CAN BE!!Dead | X|

modified on Monday, March 17, 2008 5:02 AM

GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak17-Mar-08 5:25
mveDave Kreskowiak17-Mar-08 5:25 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs17-Mar-08 11:37
Capitanevs17-Mar-08 11:37 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak17-Mar-08 12:58
mveDave Kreskowiak17-Mar-08 12:58 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs19-Mar-08 12:07
Capitanevs19-Mar-08 12:07 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak19-Mar-08 12:57
mveDave Kreskowiak19-Mar-08 12:57 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs21-Mar-08 5:41
Capitanevs21-Mar-08 5:41 
QuestionRe: A bit confused about DLL dependencies of new VC++ executables... Pin
Capitanevs19-Mar-08 12:45
Capitanevs19-Mar-08 12:45 
GeneralRe: A bit confused about DLL dependencies of new VC++ executables... Pin
Dave Kreskowiak19-Mar-08 13:03
mveDave Kreskowiak19-Mar-08 13:03 
QuestionPLZ do tell me how to Read, write and Append a txt file. Pin
varun conday14-Mar-08 3:10
varun conday14-Mar-08 3:10 
GeneralRe: PLZ do tell me how to Read, write and Append a txt file. PinPopular
Smithers-Jones14-Mar-08 3:42
Smithers-Jones14-Mar-08 3:42 
GeneralRe: PLZ do tell me how to Read, write and Append a txt file. Pin
Dave Kreskowiak14-Mar-08 8:06
mveDave Kreskowiak14-Mar-08 8:06 
GeneralComboBox Search AutoSuggest Pin
SIlviaTerzi14-Mar-08 1:37
SIlviaTerzi14-Mar-08 1:37 
GeneralRe: ComboBox Search AutoSuggest Pin
C1AllenS14-Mar-08 1:59
C1AllenS14-Mar-08 1:59 
GeneralRe: ComboBox Search AutoSuggest Pin
SIlviaTerzi14-Mar-08 2:47
SIlviaTerzi14-Mar-08 2:47 
GeneralRe: ComboBox Search AutoSuggest Pin
C1AllenS14-Mar-08 3:41
C1AllenS14-Mar-08 3:41 
GeneralRe: ComboBox Search AutoSuggest Pin
AshokPatra14-Mar-08 2:21
AshokPatra14-Mar-08 2:21 
GeneralRe: ComboBox Search AutoSuggest Pin
Dave Kreskowiak14-Mar-08 8:00
mveDave Kreskowiak14-Mar-08 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.