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
vijaya.nutakki
NA
23
0
unmanaged code structure with a pointer
Sep 29 2003 7:21 AM
my unmanaged code contains a structure with a stringpointer. This string pointer should point out to a string buffer typedef struct dat { LPSTR add; dword a; } what is the equivalent declaration in managed code of the above structure? i've used the following prototype: public class UserData { [ MarshalAs( UnmanagedType.ByValTStr, SizeConst=20000 )] public string buffer; public int callcount; } but it's not giving me the desired o/p. Is my declaration correct? please suggest me a way at the earliest.
Reply
Answers (
0
)
callback fucntions in unmanaged code
Call "Open With" Dialog Box