-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Iamtheoneurwarnedabout
Message 7 in Discussion

Hi Guys,   Thank u very much for the help. But my problem is still persisting. See 
this is how I have done:  
[DllImport("RawDll.DLL")] 
public static extern long AddNumber([MarshalAs(UnmanagedType.U8)]long val1, 
[MarshalAs(UnmanagedType.U8)]long val2); 
  
long res;  
 
res =AddNumber(120, 132); 
MessageBox.Show(""+ res); 
The result Iam getting is some junk value: 52834660450828288. Dont u think this is 
some thing weird. But when I call the same DLL in any C++ console application iam 
getting perfect result.  
Why is it happening like this? Is there any remedy for this. 
All thru ur help is very much appreciated. 
Cheers!!! 
Arshad 
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to