>>Once it's declared it's basically just a static method call.
>>
>>
>>string result = Invoke1("StringHere");
>>
>
What do I need to call [DllImport] - I am getting an error about missing reference.
UPDATE. Never mind this question - figured this out.
Also, should I copy it to project directory (that dll)?
>Just to be very clear, the DllImport/static must be in an existing class definition. Ex.
>
>
>public static SampleClass
>{
> [DllImport("ww_local.dll")]
> static extern string Invoke1(string cInvokeString);
>}
>
>
>Then you'd call it from your code:
>
>
>public void DoSomething()
>{
> string result = SampleClass.Invoke1("String");
>}
>
If it's not broken, fix it until it is.
My Blog