Hi, I'm using the following code to get the Machine name in an app
System.Environment.MachineName
On most computers this works fine but on one of our testers computers (machine is a windows 2000 desktop pc), it's throwing the following exception.
Request for the permission of type...
Hello,
I'm tring to use a win32/api dll in c#
The vendor I received the dll from doesn't know anything about .net
I received two files
ACGAPI.DLL +
ACGAPI.LIB
and some example source code
Declaration:
Visual C/C++
extern "C" __declspec(dllimport) int __stdcall...
Hello
From what I can tell your having problems instantiating your word object. I'm assuming you've made a reference to the word (com object version 8.1)
you want to instantiate the word object as follows:
Word.Application word = new Word.Application();
then you can do whatever you want...
If you figure out the above problem, please let me know.
I've been working on the same issue and can't come up with anything. From what I can tell my code should work, it compiles, but I get an exception when I try to execute the code.
Here's a link that explains all the parameters...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.