Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
QuestionImage from an array Pin
filinM17-May-07 9:32
filinM17-May-07 9:32 
AnswerRe: Image from an array Pin
Dave Kreskowiak17-May-07 11:19
mveDave Kreskowiak17-May-07 11:19 
QuestionPublic Key & Certificate Validation Pin
Nicholas Cardi17-May-07 8:51
Nicholas Cardi17-May-07 8:51 
AnswerRe: Public Key & Certificate Validation Pin
led mike17-May-07 9:04
led mike17-May-07 9:04 
GeneralRe: Public Key & Certificate Validation Pin
Nicholas Cardi17-May-07 9:35
Nicholas Cardi17-May-07 9:35 
GeneralRe: Public Key & Certificate Validation Pin
led mike17-May-07 9:44
led mike17-May-07 9:44 
GeneralRe: Public Key & Certificate Validation Pin
Nicholas Cardi17-May-07 10:14
Nicholas Cardi17-May-07 10:14 
QuestionDllNotFoundException Pin
thebeekeeper17-May-07 8:46
thebeekeeper17-May-07 8:46 
Hi Everybody,
I'm getting DllNotFoundException when trying to execute some code, and I'm lost as to what's happening. Anyways, here's what I've got:

1. I wrote some code on machine A that consists of a C++ dll which interfaces with an external library (lib files for MATLAB). I set the include search path to include the directory that those files are in on machine A.

2. I wrote some C# code on the same machine to access that dll using:
[DllImport("savemat.dll")]
static extern void SaveData(string filename, string colname, double[] data, int length);

3. When I run the code on machine A, everything works fine, but on any other machine I get a DllNotFoundException.

I'm assuming that this is coming from interop not being able to load the MATLAB lib files that I use in the dll. I tried putting copies of those files in the same location on other machines, but that doesn't work. I also tried having those .lib files in the execution directory.

I hope this is a clear enough description of my problem and that somebody can help.

Thanks,
Nick


p.s. Yes, I definitely do have savemat.dll in the execution directory Dead | X|
AnswerRe: DllNotFoundException Pin
kubben17-May-07 8:53
kubben17-May-07 8:53 
GeneralRe: DllNotFoundException Pin
thebeekeeper17-May-07 9:06
thebeekeeper17-May-07 9:06 
AnswerRe: DllNotFoundException Pin
Wes Aday17-May-07 9:52
professionalWes Aday17-May-07 9:52 
GeneralRe: DllNotFoundException Pin
thebeekeeper17-May-07 10:12
thebeekeeper17-May-07 10:12 
GeneralRe: DllNotFoundException Pin
mav.northwind17-May-07 19:38
mav.northwind17-May-07 19:38 
GeneralRe: DllNotFoundException Pin
thebeekeeper18-May-07 6:42
thebeekeeper18-May-07 6:42 
QuestionRead from text file..! Pin
mr jets17-May-07 8:26
mr jets17-May-07 8:26 
AnswerRe: Read from text file..! Pin
Not Active17-May-07 9:02
mentorNot Active17-May-07 9:02 
AnswerRe: Read from text file..! Pin
led mike17-May-07 9:11
led mike17-May-07 9:11 
GeneralRe: Read from text file..! Pin
mr jets17-May-07 11:31
mr jets17-May-07 11:31 
QuestionHow do I call javascript functions from my c# application? Pin
chance@crwmail.com17-May-07 8:23
chance@crwmail.com17-May-07 8:23 
AnswerRe: How do I call javascript functions from my c# application? Pin
led mike17-May-07 9:06
led mike17-May-07 9:06 
QuestionRe: How do I call javascript functions from my c# application? Pin
chance@crwmail.com17-May-07 10:02
chance@crwmail.com17-May-07 10:02 
QuestionClass Modifiers Pin
Chwins17-May-07 7:00
Chwins17-May-07 7:00 
AnswerRe: Class Modifiers [modified] Pin
Edmundisme17-May-07 7:27
Edmundisme17-May-07 7:27 
GeneralRe: Class Modifiers Pin
Dave Doknjas17-May-07 14:03
Dave Doknjas17-May-07 14:03 
GeneralRe: Class Modifiers Pin
Mundo Cani17-May-07 18:35
Mundo Cani17-May-07 18:35 

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.