Click here to Skip to main content
15,908,675 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting Output file from EXE Pin
Mr. VB.NET12-Jun-06 18:35
Mr. VB.NET12-Jun-06 18:35 
QuestionAlgorithm for searching for multiple patterns in a string? Pin
Psytherium11-Jun-06 15:05
Psytherium11-Jun-06 15:05 
QuestionUML [modified] Pin
TheBeginner7711-Jun-06 14:06
TheBeginner7711-Jun-06 14:06 
AnswerRe: UML Pin
Stefan Troschuetz11-Jun-06 23:08
Stefan Troschuetz11-Jun-06 23:08 
QuestionHow can draw a line like this Pin
zhok11-Jun-06 13:29
zhok11-Jun-06 13:29 
AnswerRe: How can draw a line like this Pin
Jun Du11-Jun-06 15:34
Jun Du11-Jun-06 15:34 
AnswerRe: How can draw a line like this [modified] Pin
rah_sin11-Jun-06 19:36
professionalrah_sin11-Jun-06 19:36 
QuestionConvert C++ typedef to C# Pin
Bill Richards11-Jun-06 12:15
Bill Richards11-Jun-06 12:15 
I have the following code in C++ that I'm trying to convert to C#.

C++ code:

typedef struct { unsigned no ; } IQHANDL ;
typedef IQHANDL * PIQHANDL ;

#define IQNDXTAIL ((PIQHANDL)(-2))

int IQAtInsert ( PIQHANDL coll, PIQHANDL elem, PIQHANDL ndx ) ;

myData[linenum].rc = IQAtInsert(myData[linenum].pInputString,
&myData[linenum].hWorkvar, IQNDXTAIL);

==================================================================

C# code:

[DllImport("iqappmgr.DLL", EntryPoint="IQAtInsert")]
public static extern int IQAtInsert (ref IQHANDL a,
ref IQHANDL b,
ref IQHANDL c);

//
// Define the IQHANDL structure
//
[ StructLayout(LayoutKind.Sequential) ]
public struct IQHANDL
{
public uint no;
}


IQHANDL IQNDXTAIL = new IQHANDL();

rc = IQAtInsert(ref inString, ref myString, ref IQNDXTAIL );

==================================================================

As you can see, I'm not really passing the -2 in C# correctly like we
do in C++. Can anyone help me define it correctly in C#?

Thanks!

Bill Richards
QuestionCommand line tool for publishing an app similiar to ClickOnce? Pin
Raffi Basmajian11-Jun-06 12:03
Raffi Basmajian11-Jun-06 12:03 
AnswerRe: Command line tool for publishing an app similiar to ClickOnce? Pin
leppie11-Jun-06 20:27
leppie11-Jun-06 20:27 
GeneralRe: Command line tool for publishing an app similiar to ClickOnce? Pin
Raffi Basmajian12-Jun-06 14:52
Raffi Basmajian12-Jun-06 14:52 
QuestionUrgent reply required pls [modified] Pin
ArunaGopalalkrishnan11-Jun-06 8:51
ArunaGopalalkrishnan11-Jun-06 8:51 
GeneralRe: Urgent reply required pls Pin
Guffa11-Jun-06 12:29
Guffa11-Jun-06 12:29 
GeneralRe: Urgent reply required pls [modified] Pin
ArunaGopalalkrishnan18-Jun-06 0:08
ArunaGopalalkrishnan18-Jun-06 0:08 
Questioncircle button Pin
Mohammed Elkholy11-Jun-06 8:30
Mohammed Elkholy11-Jun-06 8:30 
AnswerRe: circle button Pin
Robert Rohde11-Jun-06 8:55
Robert Rohde11-Jun-06 8:55 
AnswerRe: Remove table if condition is true Pin
Guffa11-Jun-06 8:52
Guffa11-Jun-06 8:52 
GeneralRe: Remove table if condition is true Pin
Yustme11-Jun-06 8:56
Yustme11-Jun-06 8:56 
GeneralRe: Remove table if condition is true Pin
Guffa11-Jun-06 12:35
Guffa11-Jun-06 12:35 
GeneralRe: Remove table if condition is true Pin
Yustme11-Jun-06 12:39
Yustme11-Jun-06 12:39 
AnswerRe: Remove table if condition is true Pin
Guffa11-Jun-06 18:48
Guffa11-Jun-06 18:48 
QuestionPagers and SMS messaging Pin
C# King11-Jun-06 8:14
C# King11-Jun-06 8:14 
AnswerRe: Pagers and SMS messaging Pin
martin_hughes11-Jun-06 8:43
martin_hughes11-Jun-06 8:43 
QuestionImage Comparison Algorithm... Pin
Shy Agam11-Jun-06 7:11
Shy Agam11-Jun-06 7:11 
AnswerRe: Image Comparison Algorithm... Pin
Robert Rohde11-Jun-06 8:57
Robert Rohde11-Jun-06 8:57 

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.