TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Daniel van Pletzen
NA
25
0
problem with api call
Jul 28 2007 4:12 AM
hi im busy porting an old c++ project to c# (console) and having some issues with an API call the c++ api call is char p_DllVersion( char* Version); where the useage would be char version[256]; p_DllVersion(&version); printf("Version : %s",version); but im not getting this right in c# i tried [DllImport("c:\\p.dll")] public static extern char p_DllVersion(ref String Version); with useage String version; p_DllVersion(ref version); printf("Version : %s",version); but im getting error message Attempted to read or write protected memory. This is often an indication that other memory is corrupt. also tried to use out instead of ref and tried public static extern char p_DllVersion([Out] String Version); with no sucess ;( please help
Reply
Answers (
2
)
to center TabPage Scroll Bar
Generic lists and foreach type safety