P
Paul Dolen
I've been mainly using Delphi for years, and just starting on a
personal project in C#. I'm going to need to access an external DLL,
so, I searched the net for examples, and found this MSDN article:
http://msdn.microsoft.com/en-us/library/e59b22c5.aspx
Here, the MSDN sample imports user32.dll:
[DllImport("User32.dll", CharSet=CharSet.Unicode)]
public static extern int MessageBox(int h, string m, string c, int
type);
When I try to compile, I get an error that indicates I don't have the
required reference. USER32.DLL isn't in my list of possible
references. I find out that I can add to my path, so I add
windows\system32 to my references
path, and user32.dll still doesn't show up in the possible references.
So, how do I get the DLL as an available reference?
I am using C# 2008 Express Edition. I figure that since I'm working
from an MSDN example, it should work and I'm just missing one minor
thing or not understanding something. Any ideas?
I haven't been in these MS newsgroups in quite some time. Activity
level is lower than I would have expected, just a few posts per day
here. So, am I posting in the right spot? If someone knows a better
newsgroup for my question, let me know.
Thanks!
personal project in C#. I'm going to need to access an external DLL,
so, I searched the net for examples, and found this MSDN article:
http://msdn.microsoft.com/en-us/library/e59b22c5.aspx
Here, the MSDN sample imports user32.dll:
[DllImport("User32.dll", CharSet=CharSet.Unicode)]
public static extern int MessageBox(int h, string m, string c, int
type);
When I try to compile, I get an error that indicates I don't have the
required reference. USER32.DLL isn't in my list of possible
references. I find out that I can add to my path, so I add
windows\system32 to my references
path, and user32.dll still doesn't show up in the possible references.
So, how do I get the DLL as an available reference?
I am using C# 2008 Express Edition. I figure that since I'm working
from an MSDN example, it should work and I'm just missing one minor
thing or not understanding something. Any ideas?
I haven't been in these MS newsgroups in quite some time. Activity
level is lower than I would have expected, just a few posts per day
here. So, am I posting in the right spot? If someone knows a better
newsgroup for my question, let me know.
Thanks!