Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: A question on having multiple source log to an eventlog Pin
LongRange.Shooter7-May-08 7:18
LongRange.Shooter7-May-08 7:18 
GeneralRe: A question on having multiple source log to an eventlog Pin
Ashfield7-May-08 23:28
Ashfield7-May-08 23:28 
GeneralRe: A question on having multiple source log to an eventlog Pin
leckey7-May-08 6:44
leckey7-May-08 6:44 
GeneralRe: A question on having multiple source log to an eventlog Pin
LongRange.Shooter7-May-08 7:35
LongRange.Shooter7-May-08 7:35 
AnswerRe: A question on having multiple source log to an eventlog Pin
Dave Kreskowiak7-May-08 7:36
mveDave Kreskowiak7-May-08 7:36 
GeneralRe: A question on having multiple source log to an eventlog Pin
LongRange.Shooter7-May-08 8:20
LongRange.Shooter7-May-08 8:20 
GeneralRe: A question on having multiple source log to an eventlog Pin
Dave Kreskowiak7-May-08 8:28
mveDave Kreskowiak7-May-08 8:28 
QuestionHaving trouble calling legacy 'c' dll Pin
LouMattera7-May-08 4:02
LouMattera7-May-08 4:02 
I have function I need to call from an legacy dll. The first parameter I need to pass is a pointer to a structure which contains pointers to another structure. I tried everythiing I could find on the internet and nothing has solve this issue. following are the structure:
[StructLayout(LayoutKind.Sequential,Pack = 4)]
unsafe public struct s_ci
{

public String value;
public ushort ci;
public ulong num_valid;
public ulong num_blank;
public ulong num_invalid;
public ulong num_zero;
public ulong num_alpha;
public ulong num_other;
public double total;
public ushort maxsiz;
};
[StructLayout(LayoutKind.Sequential, Pack = 4)]
unsafe public struct Name_Struct
{

[MarshalAs(UnmanagedType.LPStruct, SizeConst = 4)]
public s_ci p_npnf;

[MarshalAs(UnmanagedType.LPStruct, SizeConst = 4)]
public s_ci p_npnt;

[MarshalAs(UnmanagedType.LPStruct, SizeConst = 4)]
public s_ci p_npfn;

[MarshalAs(UnmanagedType.LPStruct, SizeConst = 4)]
public s_ci p_npmn;

[MarshalAs(UnmanagedType.LPStruct, SizeConst = 4)]
public s_ci p_npln;
};

public static extern long Evaluate_Formatted_Name([In,Out]ref Name_Struct primary,
[In,Out]ref Mask p_mask,
int last_first, UInt32 handle);

public long ProcessRfmtName(string fname, UInt32 handle)
{
long rc = 0;
//create name structure
Name_Struct p_name = new Name_Struct();
p_name.p_npnf.value = fname.ToString();


Mask p_mask = new Mask();


rc = RFMT_NAME.Evaluate_Formatted_Name(ref p_name, ref p_mask, 1, handle);

return rc;
AnswerRe: Having trouble calling legacy 'c' dll Pin
led mike7-May-08 4:42
led mike7-May-08 4:42 
GeneralRe: Having trouble calling legacy 'c' dll Pin
LouMattera7-May-08 5:07
LouMattera7-May-08 5:07 
GeneralRe: Having trouble calling legacy 'c' dll Pin
led mike7-May-08 5:12
led mike7-May-08 5:12 
GeneralRe: Having trouble calling legacy 'c' dll Pin
LouMattera7-May-08 5:26
LouMattera7-May-08 5:26 
QuestionHow to get a datarow from a datable in C#? Pin
salon7-May-08 3:41
salon7-May-08 3:41 
AnswerRe: How to get a datarow from a datable in C#? Pin
Giorgi Dalakishvili7-May-08 4:08
mentorGiorgi Dalakishvili7-May-08 4:08 
AnswerRe: How to get a datarow from a datable in C#? Pin
LongRange.Shooter7-May-08 4:23
LongRange.Shooter7-May-08 4:23 
GeneralRe: How to get a datarow from a datable in C#? Pin
salon7-May-08 19:54
salon7-May-08 19:54 
Questionobject from/to XML Pin
George_George7-May-08 3:01
George_George7-May-08 3:01 
AnswerRe: object from/to XML Pin
J4amieC7-May-08 3:07
J4amieC7-May-08 3:07 
GeneralRe: object from/to XML Pin
George_George7-May-08 3:45
George_George7-May-08 3:45 
QuestionActive Directory Account Information [modified] Pin
Tim Carmichael7-May-08 2:06
Tim Carmichael7-May-08 2:06 
AnswerRe: Active Directory Account Information Pin
Abhijit Jana7-May-08 3:36
professionalAbhijit Jana7-May-08 3:36 
QuestionHow to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 2:05
Uttam Kumar Unik!7-May-08 2:05 
AnswerRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Christopher Stratmann7-May-08 2:13
Christopher Stratmann7-May-08 2:13 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Uttam Kumar Unik!7-May-08 2:31
Uttam Kumar Unik!7-May-08 2:31 
GeneralRe: How to generate automated code when implementing an interface in a class? (C#) Pin
Christopher Stratmann7-May-08 2:33
Christopher Stratmann7-May-08 2:33 

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.