Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
Questionchange a user's group or account type Pin
am2h18-Feb-06 23:36
am2h18-Feb-06 23:36 
QuestionwseAbout "WebBrowser" control Pin
zhouyinhui18-Feb-06 23:28
zhouyinhui18-Feb-06 23:28 
QuestionGetting progress of a Method Pin
emran83418-Feb-06 21:00
emran83418-Feb-06 21:00 
AnswerRe: Getting progress of a Method Pin
Stanciu Vlad18-Feb-06 22:07
Stanciu Vlad18-Feb-06 22:07 
QuestionPropery Grid Pin
deepscyberpulse18-Feb-06 18:56
deepscyberpulse18-Feb-06 18:56 
QuestionForm Count Pin
deepscyberpulse18-Feb-06 18:54
deepscyberpulse18-Feb-06 18:54 
QuestionMemory Reading Pin
Expert Coming18-Feb-06 17:55
Expert Coming18-Feb-06 17:55 
AnswerRe: Memory Reading Pin
Sean8918-Feb-06 18:19
Sean8918-Feb-06 18:19 
This example just declares an integer value of 5 and uses a pointer to access the memory that 5 is in and display it.
<br />
//number that will be read with a pointer<br />
int number = 5;<br />
<br />
// must use the unsafe keyword with pointers because<br />
// the code is not executed under full control of CLR<br />
unsafe<br />
{<br />
    // pointer to read memory<br />
    // an asterisk(*) after the data type is used to declare a pointer<br />
    // this must be the same data type as the value you are pointing to!<br />
    int * pointer;<br />
<br />
    // pass the memory address of number to pointer<br />
    // the '&' symbol simply means "address of"<br />
    // If you output &number to the console you will get the memory address of     number<br />
    pointer = &number;<br />
<br />
    // the asterisk(*) in front of the variable name means "value pointed to"<br />
    // so the value pointer is pointing to in memory<br />
    Console.Write(*pointer);<br />
}


Hope that helps. Pointers are not very common in C# (I dont see them much anyway) but more so in C++.

Try checking out some C++ articles on pointers. The syntax is pretty much identical. Poke tongue | ;-P
QuestionLink label transparency... Pin
Kasic Slobodan18-Feb-06 16:27
Kasic Slobodan18-Feb-06 16:27 
AnswerRe: Link label transparency... Pin
Joshua Quick18-Feb-06 17:16
Joshua Quick18-Feb-06 17:16 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 3:43
Kasic Slobodan19-Feb-06 3:43 
GeneralRe: Link label transparency... Pin
Joshua Quick19-Feb-06 10:43
Joshua Quick19-Feb-06 10:43 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 14:01
Kasic Slobodan19-Feb-06 14:01 
GeneralRe: Link label transparency... Pin
mav.northwind19-Feb-06 20:08
mav.northwind19-Feb-06 20:08 
GeneralRe: Link label transparency... Pin
Kasic Slobodan20-Feb-06 4:53
Kasic Slobodan20-Feb-06 4:53 
QuestionGetType() fails, but why Pin
User 665818-Feb-06 14:01
User 665818-Feb-06 14:01 
AnswerRe: GetType() fails, but why Pin
darkelv18-Feb-06 14:39
darkelv18-Feb-06 14:39 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 2:10
User 665819-Feb-06 2:10 
AnswerRe: GetType() fails, but why Pin
Guffa19-Feb-06 2:17
Guffa19-Feb-06 2:17 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 2:58
darkelv19-Feb-06 2:58 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 4:08
User 665819-Feb-06 4:08 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 5:26
darkelv19-Feb-06 5:26 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 5:49
User 665819-Feb-06 5:49 
AnswerRe: GetType() fails, but why Pin
leppie19-Feb-06 6:08
leppie19-Feb-06 6:08 
QuestionSuggestions for a C# Windows project to learn C# Pin
LuluSailor18-Feb-06 12:57
LuluSailor18-Feb-06 12:57 

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.