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
normanordas
NA
25
0
Pass by value or by reference?
Apr 23 2004 3:33 AM
Using P/Invoke how would i know that i should be passing "by value" or "by reference" to the arguments of a method or function of the DLL? 2. Equivalent type in .Net of the used data type for each variable (e.g what's the equivalent type of BSTR in VB.Net/C#? 3. In the type library it says: VARIANT_BOOL _stdcall NE_QueryElementByID( [in] long net, [in] ElementTypeEnum eltype, [in, out] IDAttRec* id, [in, out] HandleAttRec* h); This is the way i called it in VB.Net...is this correct? ...
_ Public Shared Function NE_QueryElementByID(ByRef net As Long, ByRef eltype As ElementTypeEnum, ByRef id As IDAttRec, ByRef h As HandleAttRec) As Boolean End Function ... Dim h1 As HandleAttRec hi.Handle = 0 Dim id1 As IDAttRec Dim m_startid As Int32 = 4424 id1.UserID = 99 id1.LayerKey = 1 dim bol as Boolean = NE_QueryElementByID(net, ElementTypeEnum.NE_EDGE, id1, h1) Tnx a lot!
Reply
Answers (
0
)
Reflecting methods on a module
How to Convert old Visual Basic 6.0 API calls to C#