Click here to Skip to main content
16,010,268 members
Home / Discussions / C#
   

C#

 
GeneralRe: Nice Link :) Pin
Nnamdi Onyeyiri16-Aug-02 0:49
Nnamdi Onyeyiri16-Aug-02 0:49 
GeneralPassing null to extern functions Pin
leppie15-Aug-02 15:14
leppie15-Aug-02 15:14 
GeneralRe: Passing null to extern functions Pin
albean15-Aug-02 18:02
albean15-Aug-02 18:02 
GeneralRe: Passing null to extern functions Pin
leppie16-Aug-02 0:27
leppie16-Aug-02 0:27 
GeneralRe: Passing null to extern functions Pin
Richard Deeming16-Aug-02 1:30
mveRichard Deeming16-Aug-02 1:30 
GeneralRe: Passing null to extern functions Pin
leppie16-Aug-02 1:38
leppie16-Aug-02 1:38 
GeneralProblem solved :) Pin
leppie16-Aug-02 14:09
leppie16-Aug-02 14:09 
GeneralCasting Repost Pin
leppie15-Aug-02 6:10
leppie15-Aug-02 6:10 
Hi, all. I posted this earlier, but it was a bit off topic in that thread. Smile | :)
Can anyone help me?

The question i have is, how does the conversion between a signed and an unsigned integer take place when the value is "out of bounds" ?

Eg.:

byte b = 200;
sbyte sb = (sbyte) b;
Console.WriteLine(sb);


I remember something from java and some c++ books about the "remainder" gets added starting from the minvalue. The sample would print -55 . UPDATE: i verified this with someone who knows this stuff. So howcome did they change a general intrepetation in .Net? Guess it has all todo with managed code and being CLS Compliant. Frown | :(

Is that correct? I cant seem to find any mention to this in MSDN. Frown | :(
I did find something about an OverflowException, but in my case, i pass the variable to an extern method (which seems to work as the same as my logic as explained above), or sending it as a MSG param via SendMessage.

Cheers Smile | :)


MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
GeneralRe: Casting Repost Pin
Nick Parker15-Aug-02 10:44
protectorNick Parker15-Aug-02 10:44 
GeneralRe: Casting Repost Pin
leppie15-Aug-02 13:54
leppie15-Aug-02 13:54 
GeneralRe: Casting Repost Pin
Eric Gunnerson (msft)16-Aug-02 7:06
Eric Gunnerson (msft)16-Aug-02 7:06 
GeneralRe: Casting Repost Pin
leppie17-Aug-02 3:18
leppie17-Aug-02 3:18 
GeneralHLS to RGB and RGB to HLS Pin
Derek Lakin15-Aug-02 4:24
Derek Lakin15-Aug-02 4:24 
GeneralRe: HLS to RGB and RGB to HLS Pin
leppie15-Aug-02 6:35
leppie15-Aug-02 6:35 
GeneralRe: HLS to RGB and RGB to HLS Pin
leppie15-Aug-02 7:06
leppie15-Aug-02 7:06 
GeneralRe: HLS to RGB and RGB to HLS Pin
Derek Lakin15-Aug-02 19:58
Derek Lakin15-Aug-02 19:58 
GeneralActiveX and C# controls Pin
Shaun Wilde15-Aug-02 1:35
Shaun Wilde15-Aug-02 1:35 
GeneralRe: ActiveX and C# controls Pin
Andy Smith15-Aug-02 4:44
Andy Smith15-Aug-02 4:44 
GeneralClickety Pin
David Stone15-Aug-02 6:04
sitebuilderDavid Stone15-Aug-02 6:04 
GeneralRe: ActiveX and C# controls Pin
Shaun Wilde15-Aug-02 22:44
Shaun Wilde15-Aug-02 22:44 
GeneralRe: ActiveX and C# controls Pin
James T. Johnson16-Aug-02 2:17
James T. Johnson16-Aug-02 2:17 
Generaldynamic object creation using eval Pin
chajadan14-Aug-02 20:12
chajadan14-Aug-02 20:12 
GeneralRe: dynamic object creation using eval Pin
Stephane Rodriguez.14-Aug-02 22:04
Stephane Rodriguez.14-Aug-02 22:04 
QuestionAm I dreaming? Pin
leppie14-Aug-02 14:21
leppie14-Aug-02 14:21 
AnswerRe: Am I dreaming? Pin
Nick Hodapp14-Aug-02 14:48
sitebuilderNick Hodapp14-Aug-02 14:48 

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.