Thanks for your answer!!!!!!!!!
I don't think it's a calling convention beceause When I use the box
"call a dll" in labview and I select my dll, I can see all functions I
have create in the dll (just the extern functions). for the datatype,
I use int or unsigned int and sometimes char. and I can receive this
value in labwiew...

but for the pointer that's certainly my problem
this is the sourcecode of my function. I drive a digital to analogue
converter and I want to select the exit (There is 4 exit 0x00,01,10,11
)and a voltage (0 to 255 in d=E9cimal):
void __stdcall dac_sortie_tension (int sortie, int tension)
{
  =09outp(LPT1+0x000,4); /* not important*/
=09outp(LPT1+0x400,sortie);
=09outp(LPT1+0x000,2); /* ecriture de l'adresse2*/
=09outp(LPT1+0x400,0x00); /* not important*/
=09outp(LPT1+0x000,3); /* not important*/
=09outp(LPT1+0x400,tension);/*write voltage*/
}
if I use a constant to "sortie" & "tension" it's OK...
I try to use this:
 void __stdcall dac_sortie_tension (int *sortie, int *tension)
but it's the same...

Reply via email to