Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
QuestionInterop Strong Names? Pin
Steven Behnke14-Apr-03 12:33
Steven Behnke14-Apr-03 12:33 
AnswerRe: Interop Strong Names? Pin
Steven Behnke14-Apr-03 12:48
Steven Behnke14-Apr-03 12:48 
General.NET 2003 and C# - Need to deploy app... Pin
ekuhner14-Apr-03 12:12
ekuhner14-Apr-03 12:12 
GeneralRe: .NET 2003 and C# - Need to deploy app... Pin
Steven Behnke14-Apr-03 12:49
Steven Behnke14-Apr-03 12:49 
GeneralRe: .NET 2003 and C# - Need to deploy app... Pin
Chris Austin14-Apr-03 12:53
Chris Austin14-Apr-03 12:53 
GeneralReturn S_FALSE Pin
J. Dunlap14-Apr-03 11:29
J. Dunlap14-Apr-03 11:29 
GeneralRe: Return S_FALSE Pin
J. Dunlap14-Apr-03 14:17
J. Dunlap14-Apr-03 14:17 
GeneralBitwise AND Pin
J. Dunlap14-Apr-03 10:47
J. Dunlap14-Apr-03 10:47 
I'm trying to find if a bit is set in a mask.

The code:
if(pdbi.dwMask & olelib.DESKBANDINFO_Masks.DBIM_TITLE)

gets an error:
error CS0029: Cannot implicitly convert type 'olelib.DESKBANDINFO_Masks' to 'bool'




and the code:
if(pdbi.dwMask & (int)olelib.DESKBANDINFO_Masks.DBIM_TITLE)

gets an error:
error CS0029: Operator '&' cannot be applied to operands of type 'olelib.DESKBANDINFO_Masks' and 'int'


Could someone kindly explain how to get around this?


"Do unto others as you would have them do unto you." - Jesus

"An eye for an eye only makes the whole world blind." - Mahatma Gandhi







GeneralRe: Bitwise AND Pin
J. Dunlap14-Apr-03 10:59
J. Dunlap14-Apr-03 10:59 
GeneralRe: Bitwise AND Pin
monrobot1314-Apr-03 11:32
monrobot1314-Apr-03 11:32 
GeneralRe: Bitwise AND Pin
J. Dunlap14-Apr-03 11:55
J. Dunlap14-Apr-03 11:55 
GeneralRe: Bitwise AND Pin
James T. Johnson14-Apr-03 14:33
James T. Johnson14-Apr-03 14:33 
GeneralTab page events Pin
vlusardi14-Apr-03 10:14
vlusardi14-Apr-03 10:14 
GeneralRe: Tab page events Pin
monrobot1314-Apr-03 10:48
monrobot1314-Apr-03 10:48 
GeneralRe: Tab page events Pin
vlusardi14-Apr-03 11:09
vlusardi14-Apr-03 11:09 
GeneralGetting the average width of a font Pin
monrobot1314-Apr-03 7:37
monrobot1314-Apr-03 7:37 
GeneralRe: Getting the average width of a font Pin
J. Dunlap14-Apr-03 7:43
J. Dunlap14-Apr-03 7:43 
GeneralRe: Getting the average width of a font Pin
moredip15-Apr-03 5:06
moredip15-Apr-03 5:06 
GeneralScrolling - Co-ordinates problem Pin
Paul Griffin14-Apr-03 3:30
Paul Griffin14-Apr-03 3:30 
GeneralRe: Scrolling - Co-ordinates problem Pin
Philip Fitzsimons14-Apr-03 3:33
Philip Fitzsimons14-Apr-03 3:33 
GeneralRe: Scrolling - Co-ordinates problem Pin
Paul Griffin14-Apr-03 3:47
Paul Griffin14-Apr-03 3:47 
GeneralRe: Scrolling - Co-ordinates problem Pin
Philip Fitzsimons14-Apr-03 3:55
Philip Fitzsimons14-Apr-03 3:55 
GeneralRe: Scrolling - Co-ordinates problem Pin
Paul Griffin14-Apr-03 4:00
Paul Griffin14-Apr-03 4:00 
GeneralSelected text in TextBox derivation Pin
Anonymous14-Apr-03 3:24
Anonymous14-Apr-03 3:24 
QuestionDrawString on MDI background?? Pin
mirano14-Apr-03 3:17
mirano14-Apr-03 3:17 

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.