471,348 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

How to access c++ dl function in c# webservices

I have used vb_dll.dll. It is refering to particular dll

[DllImport(@"E:\LicenseProject\LicenseWebServicePro toType\bin\vb_dll.dll",
CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true,
CallingConvention = CallingConvention.StdCall)]
public static extern int lp_hostid(int HostType,
StringBuilder hostidstr);
It refers particular dll but when we try to access lp_hostid() function with
proper parameter in webservices like

lp_hostid(vb_dll_interface.HOSTID_ETHER, temp);

It is providing following error
"Attempted to read or write protected memory. This is often an indication
that other memory is corrupt."

It is working fine with web application but not in web services.

It is very urgent. Any body help is most appreciated.
It has very good site to post question and take question to resolve issues.
Jun 27 '08 #1
0 771

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Johan Johansson (Sweden) | last post: by
1 post views Thread by Duffman | last post: by
2 posts views Thread by ad | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.