Click here to Skip to main content
16,014,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Controls and events Pin
therealmccoy7-Oct-05 5:50
therealmccoy7-Oct-05 5:50 
QuestionSystem.Diagnostic.Process question/problem Pin
XRaheemX7-Oct-05 3:28
XRaheemX7-Oct-05 3:28 
AnswerRe: System.Diagnostic.Process question/problem Pin
therealmccoy7-Oct-05 7:59
therealmccoy7-Oct-05 7:59 
GeneralRe: System.Diagnostic.Process question/problem Pin
XRaheemX7-Oct-05 8:02
XRaheemX7-Oct-05 8:02 
GeneralRe: System.Diagnostic.Process question/problem Pin
therealmccoy7-Oct-05 8:57
therealmccoy7-Oct-05 8:57 
Questionaccessing a C DLL with C# Long/Int problem Pin
CalvinB7-Oct-05 3:26
CalvinB7-Oct-05 3:26 
AnswerRe: accessing a C DLL with C# Long/Int problem Pin
mav.northwind7-Oct-05 4:15
mav.northwind7-Oct-05 4:15 
GeneralRe: accessing a C DLL with C# Long/Int problem Pin
CalvinB7-Oct-05 4:59
CalvinB7-Oct-05 4:59 
C: typedef void (WINAPI* TDM3TOOLKITShowForm)(long Slot);



C#:
[DllImport("mydll.dll")]
public static extern void ShowForm(int Slot);

private void btnShowtest_Click(object sender, EventArgs e)
{
int Slot = 3;

try
{
ShowForm(Slot);
}
catch (Exception ex)
{
lstBox.Items.Add(ex.ToString());
}
}



here is the code with only names changed for anonymity. Smile | :)
the winapi* part dont make a difference I dont think because I have used other functions out of this DLL. The ones that give me a problem are ones that have longs in them.

-- modified at 10:59 Friday 7th October, 2005
GeneralRe: accessing a C DLL with C# Long/Int problem Pin
leppie7-Oct-05 7:25
leppie7-Oct-05 7:25 
QuestionData Access & Tab Control Pin
rich_wenger7-Oct-05 2:49
rich_wenger7-Oct-05 2:49 
QuestionSoftware Architecture - HELP! Pin
trjones17-Oct-05 1:44
trjones17-Oct-05 1:44 
AnswerRe: Software Architecture - HELP! Pin
Dan Neely7-Oct-05 2:04
Dan Neely7-Oct-05 2:04 
AnswerRe: Software Architecture - HELP! Pin
Carl Mercier7-Oct-05 4:47
Carl Mercier7-Oct-05 4:47 
Questionconverting array of byte to string in c# Pin
TssPrasad7-Oct-05 1:16
sussTssPrasad7-Oct-05 1:16 
AnswerRe: converting array of byte to string in c# Pin
Andrew Kirillov7-Oct-05 1:34
Andrew Kirillov7-Oct-05 1:34 
GeneralRe: converting array of byte to string in c# Pin
tssp7-Oct-05 2:12
tssp7-Oct-05 2:12 
QuestionLDAP Pin
ramenk6-Oct-05 23:45
ramenk6-Oct-05 23:45 
AnswerRe: LDAP Pin
ehuysamer7-Oct-05 2:25
ehuysamer7-Oct-05 2:25 
Questionhow to run resgen utility from post build com Pin
Kaushik J6-Oct-05 23:22
sussKaushik J6-Oct-05 23:22 
QuestionPlease Help!! Pin
Dipendra Singh6-Oct-05 22:43
Dipendra Singh6-Oct-05 22:43 
AnswerRe: Please Help!! Pin
XRaheemX7-Oct-05 7:08
XRaheemX7-Oct-05 7:08 
Question.NET and LDAP Pin
ehuysamer6-Oct-05 21:04
ehuysamer6-Oct-05 21:04 
AnswerRe: .NET and LDAP Pin
leppie6-Oct-05 22:34
leppie6-Oct-05 22:34 
GeneralRe: .NET and LDAP Pin
ehuysamer6-Oct-05 22:41
ehuysamer6-Oct-05 22:41 
GeneralRe: .NET and LDAP Pin
leppie7-Oct-05 1:34
leppie7-Oct-05 1:34 

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.