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
sjones
NA
135
0
How to get address of a string?
Apr 21 2004 3:24 PM
I took this from some sample code: [StructLayout(LayoutKind.Sequential)] public class BrowseInfo { public int hWndOwner; public int pIDLRoot; public int pszDisplayName; public int lpszTitle; public int ulFlags; public CallBack lpfnCallback; public int lParam; public int iImage; } I need to set the lpszTitle to a pointer to a string. The sample I took this from uses this: bi.lpszTitle = lstrcat(strTitle, ""); to do it, because the lstrcat WinAPI returns the address. The code does not concatenate the string, it seems to only be doing this to get the address. There has to be a more direct way. I already tried the "&" and the compiler complained about trying to get the address of a managed type.
Reply
Answers (
3
)
Serialize Just a Questioon...
Process.GetProcessesByName giving an error