DLL's

  • Thread starter Thread starter Josh
  • Start date Start date
J

Josh

OTAY here's my problem!!!!!!

I was programming in VB.NET, I made a nice DLL and used
the Import keyword in my app.
And I include the DLL name (not path) to it when I
compile like so:
r:/dllname

Everything worked fine and dandy as long as I kept that
DLL in the same folder as the app.

Well then I decided to switch to C#. Now all works,
except when I compile, I can't just do a:
r:\[dll name]
Instead it wants me to include the full path to the dll!
Why???? Thanks!
 
Are you aware that the '\' character has a special meaning in string
constants in C#?

You would need to use either
"r:\\[dll name]"
or
@"r:\[dll name]"
(note the "@" prefix in the second example)
 
Back
Top