eVc4++ DLL for c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi all,

when I create a Dll file by using eVc4.00 for C#

what is the pointer I should pay attention?

Thanks
 
Huh? You'll have to rephrase that for us to understand your question.

Paul T.
 
Oh, Sorry,
My question is not clear.

what I means is that when I want to create DLL by using evc++ for C#;
What should I pay attention to?

Because currently:I create a DLL file(For email parse) by using evc4.0++,
It works pretty good for evc++ project. but It does not work on C# Project;
Only one method everytime when I want to set Flag to a Message;
I get an exception:and I do not know why?

I create the DLL is that:
one C# project call a method in DLL file, and dll method call internal method.
the internal method pop up me a Exception:

HRESULT hr = m_pMessage->SetProps(1,prop,NULL);
the SetProps exception:
Exception is:

exceptionCode: 0xc0000005
exceptionAddress:0x123456dfe
reading:0x27e6a068
 
Since you're probably using C++, you should make sure that you declare
exported functions, which will be accesses from C# by name with extern "C",
so that their names are not mangled. Avoid overloading functions (because
name mangling is needed for that). Avoid trying to export classes.

It sounds to me like you're trying to use objects in the C++ code from C#.
That's not going to work, in general.

Paul T.
 
Back
Top