Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Const Variable Declaration Converted to C# 1

Status
Not open for further replies.

ChadJK

IS-IT--Management
Nov 10, 2005
14
0
0
US
How would this snippet of VB code be done in C#

Code:
Private Const SRCCOPY = &HCC0020
 
you need a type, I dont think that line would work in VB.Net, perhaps VB 6, in which you could have Variant data types

in C# it would probably look like this, and I am guessing its a string

Code:
private const string SRCCOPY = "&HCC0020";

remember that C# is case sensitive.
 
Code:
private const int SrcCopy = 0xcc0020;


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top