This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Any .NET wrappers?


Postby dan.p » Jan 30, 2005 @ 7:51pm

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby jweldin » Jan 30, 2005 @ 8:31pm

User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


Postby jweldin » Jan 30, 2005 @ 10:23pm

User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


Postby dan.p » Jan 30, 2005 @ 11:14pm

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby j.edwards » Jan 30, 2005 @ 11:50pm

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby jweldin » Jan 31, 2005 @ 8:53pm

User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


Postby dan.p » Jan 31, 2005 @ 8:58pm

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby dan.p » Jan 31, 2005 @ 9:03pm

This info should help:

Passing Parameters (value and reference types):
http://msdn.microsoft.com/library/defau ... meters.asp

Passing Parameters with ref:
http://msdn.microsoft.com/library/defau ... lrfref.asp

Passing Parameters with out:
http://msdn.microsoft.com/library/defau ... lrfout.asp

NOTE: I believe passing parameters with the out keyword is the solution for dllimporting functions with reference types. Maybe try this:

In C++:
void func(type& t) { t.val = someVal; }

In C#:
// dll import
void func(out type t);

type t;
func(out t);

Something like that anyway. Check the links above to make sure I got it right, then test. :) I have a feeling it may work!
dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby jweldin » Jan 31, 2005 @ 10:20pm

Thank you for the info. I will read through them tonight. I think I know why the marshaling of my struct is failing. I am trying to pass a struct with an enum as a member as if it were a simple struct with all blittable members. I have some ideas now on how to tackle it. Can't wait to try them.
User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


Postby jweldin » Feb 1, 2005 @ 6:23am

User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


Postby dan.p » Feb 1, 2005 @ 7:13am

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby Guest » Feb 18, 2005 @ 9:52am

Guest
 


Postby jweldin » Feb 18, 2005 @ 2:09pm

User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


Postby Guest » Feb 18, 2005 @ 5:38pm

Guest
 


Postby jweldin » Feb 18, 2005 @ 5:53pm

I don't mind sending what I have but its rough, I'll send it to you sometime this weekend.
User avatar
jweldin
pm Member
 
Posts: 70
Joined: May 4, 2004 @ 2:54pm
Location: New York, US


PreviousNext

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron