Click here to Skip to main content
15,890,506 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralXmlSerializer needs default constructor Pin
moredip5-Feb-03 6:25
moredip5-Feb-03 6:25 
GeneralRe: XmlSerializer needs default constructor Pin
Giles13-Feb-03 5:50
Giles13-Feb-03 5:50 
GeneralNeed help regarding marshaling Pin
Thomas Freudenberg5-Feb-03 4:50
Thomas Freudenberg5-Feb-03 4:50 
GeneralRe: Need help regarding marshaling Pin
Heath Stewart5-Feb-03 4:57
protectorHeath Stewart5-Feb-03 4:57 
GeneralRe: Need help regarding marshaling Pin
Thomas Freudenberg5-Feb-03 5:03
Thomas Freudenberg5-Feb-03 5:03 
GeneralRe: Need help regarding marshaling Pin
leppie5-Feb-03 6:12
leppie5-Feb-03 6:12 
GeneralRe: Need help regarding marshaling Pin
Thomas Freudenberg5-Feb-03 6:27
Thomas Freudenberg5-Feb-03 6:27 
GeneralRe: Need help regarding marshaling Pin
leppie5-Feb-03 7:00
leppie5-Feb-03 7:00 
I think it is time for a Custom Marshaller. You need to implement this interface.

public interface ICustomMarshaler
{
 public void CleanUpManagedData(object ManagedObj);
 public void CleanUpNativeData(IntPtr pNativeData);
 public int GetNativeDataSize();
 public IntPtr MarshalManagedToNative(object ManagedObj);
 public object MarshalNativeToManaged(IntPtr pNativeData);
}


And set MarshalAs(UnmanagedType.CustomMarshaler) on the class. From there you should havenough control to marshal just about anything. Note: You can now make classes without Layout.

Cheers Smile | :)

MyDUMeter: a .NET DUMeter clone
GeneralRe: Need help regarding marshaling Pin
Thomas Freudenberg5-Feb-03 7:05
Thomas Freudenberg5-Feb-03 7:05 
GeneralProblem with ASPNET Worker Process (aspnet_wp.exe) Pin
Vasudevan Deepak Kumar4-Feb-03 22:40
Vasudevan Deepak Kumar4-Feb-03 22:40 
GeneralRe: Problem with ASPNET Worker Process (aspnet_wp.exe) Pin
leppie5-Feb-03 10:19
leppie5-Feb-03 10:19 
GeneralRe: Problem with ASPNET Worker Process (aspnet_wp.exe) Pin
Vasudevan Deepak Kumar5-Feb-03 17:46
Vasudevan Deepak Kumar5-Feb-03 17:46 
Generalaspnet_wp.exe process runs continuously and takes too much of resources Pin
Vasudevan Deepak Kumar4-Feb-03 21:23
Vasudevan Deepak Kumar4-Feb-03 21:23 
GeneralUsage of System EventLogs Pin
Vasudevan Deepak Kumar4-Feb-03 21:18
Vasudevan Deepak Kumar4-Feb-03 21:18 
GeneralStrange PerformanceCounter behaviour Pin
solidstore2-Feb-03 23:46
solidstore2-Feb-03 23:46 
QuestionPerformance counters bug? Pin
solidstore2-Feb-03 23:28
solidstore2-Feb-03 23:28 
AnswerRe: Performance counters bug? Pin
leppie8-Feb-03 9:16
leppie8-Feb-03 9:16 
GeneralPerformance counters with instances Pin
solidstore2-Feb-03 23:27
solidstore2-Feb-03 23:27 
Question.NET Applets? Pin
Jörgen Sigvardsson1-Feb-03 13:35
Jörgen Sigvardsson1-Feb-03 13:35 
AnswerRe: .NET Applets? Pin
Vasudevan Deepak Kumar1-Feb-03 18:44
Vasudevan Deepak Kumar1-Feb-03 18:44 
GeneralRe: .NET Applets? Pin
Jörgen Sigvardsson1-Feb-03 23:31
Jörgen Sigvardsson1-Feb-03 23:31 
GeneralRe: .NET Applets? Pin
Tomas Petricek6-Feb-03 10:01
Tomas Petricek6-Feb-03 10:01 
GeneralRe: .NET Applets? Pin
Jörgen Sigvardsson6-Feb-03 10:49
Jörgen Sigvardsson6-Feb-03 10:49 
AnswerRe: .NET Applets? Pin
Victor Vogelpoel19-Feb-03 3:34
Victor Vogelpoel19-Feb-03 3:34 
GeneralCannot Access File Pin
Jonathan Austin31-Jan-03 5:09
Jonathan Austin31-Jan-03 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.