Click here to Skip to main content
15,851,510 members
Home / Discussions / C#
   

C#

 
GeneralRe: Crystal Reports and Sql Server 2000 Pin
obelisk298-Jan-04 15:30
obelisk298-Jan-04 15:30 
GeneralDynamic Casting for use in Polymorphic/overloaded methods. Pin
Scott Barr8-Jan-04 12:12
Scott Barr8-Jan-04 12:12 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Heath Stewart8-Jan-04 12:50
protectorHeath Stewart8-Jan-04 12:50 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Scott Barr9-Jan-04 5:42
Scott Barr9-Jan-04 5:42 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Heath Stewart9-Jan-04 6:15
protectorHeath Stewart9-Jan-04 6:15 
GeneralRe: Dynamic Casting for use in Polymorphic/overloaded methods. Pin
Scott Barr9-Jan-04 6:30
Scott Barr9-Jan-04 6:30 
GeneralType convertion and Unmanaged code Pin
Shahin778-Jan-04 11:48
Shahin778-Jan-04 11:48 
GeneralRe: Type convertion and Unmanaged code Pin
Heath Stewart8-Jan-04 12:39
protectorHeath Stewart8-Jan-04 12:39 
For information on P/Invoking native functions, see the DllImportAttribute documentation in the .NET Framework SDK. An example follows:
[DllImport("x.dll")]
private static extern long Test(
  string f1, long f2, long f3, CDCAResult CDCAr);
For the struct, you create the managed version just like you would re-create it in VB:
[StructLayout(LayoutKind.Sequential)]
public struct CDCAResult
{
  public byte id0;
  [MarshalAs(UnmanagedType.ByValTStr, SizeConst=17)]public string id1;
  public long id2;
  [MarshalAs(UnmanagedType.ByValTStr, SizeConst=41)]public string id3;
}


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Type convertion and Unmanaged code Pin
Shahin778-Jan-04 12:52
Shahin778-Jan-04 12:52 
GeneralRe: Type convertion and Unmanaged code Pin
Heath Stewart8-Jan-04 13:16
protectorHeath Stewart8-Jan-04 13:16 
GeneralRe: Type convertion and Unmanaged code Pin
Heath Stewart8-Jan-04 13:37
protectorHeath Stewart8-Jan-04 13:37 
GeneralRe: Type convertion and Unmanaged code Pin
Shahin778-Jan-04 15:15
Shahin778-Jan-04 15:15 
GeneralStartup Switch Options ... Pin
Daniel Negron8-Jan-04 11:08
Daniel Negron8-Jan-04 11:08 
GeneralRe: Startup Switch Options ... Pin
Niels Penneman8-Jan-04 11:43
Niels Penneman8-Jan-04 11:43 
GeneralRe: Startup Switch Options ... Pin
Heath Stewart8-Jan-04 12:34
protectorHeath Stewart8-Jan-04 12:34 
GeneralWriting CD/DVD Pin
Christian Graus8-Jan-04 10:37
protectorChristian Graus8-Jan-04 10:37 
GeneralRe: Writing CD/DVD Pin
Mazdak8-Jan-04 10:55
Mazdak8-Jan-04 10:55 
GeneralRe: Writing CD/DVD Pin
Christian Graus8-Jan-04 10:59
protectorChristian Graus8-Jan-04 10:59 
GeneralRe: Writing CD/DVD Pin
Kentamanos8-Jan-04 11:25
Kentamanos8-Jan-04 11:25 
GeneralRe: Writing CD/DVD Pin
Kentamanos8-Jan-04 17:51
Kentamanos8-Jan-04 17:51 
GeneralRe: Writing CD/DVD Pin
Christian Graus8-Jan-04 18:08
protectorChristian Graus8-Jan-04 18:08 
GeneralRe: Writing CD/DVD Pin
leppie8-Jan-04 11:21
leppie8-Jan-04 11:21 
GeneralRe: Writing CD/DVD Pin
Christian Graus8-Jan-04 11:36
protectorChristian Graus8-Jan-04 11:36 
Generalprinting custom page sizes Pin
lostegg8-Jan-04 10:06
susslostegg8-Jan-04 10:06 
GeneralRe: printing custom page sizes Pin
Heath Stewart8-Jan-04 12:30
protectorHeath Stewart8-Jan-04 12:30 

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.