Click here to Skip to main content
15,922,407 members
Home / Discussions / C#
   

C#

 
QuestionPlaying media files in a Web Browser Pin
AB77717-Sep-06 4:53
AB77717-Sep-06 4:53 
AnswerRe: Playing media files in a Web Browser Pin
ic3b3rg38-Sep-06 12:09
ic3b3rg38-Sep-06 12:09 
QuestionGet a pixel color on the desktop Pin
Ista7-Sep-06 4:48
Ista7-Sep-06 4:48 
AnswerRe: Get a pixel color on the desktop Pin
Dustin Metzgar7-Sep-06 5:06
Dustin Metzgar7-Sep-06 5:06 
GeneralRe: Get a pixel color on the desktop Pin
Jun Du7-Sep-06 5:12
Jun Du7-Sep-06 5:12 
GeneralRe: Get a pixel color on the desktop Pin
leppie7-Sep-06 9:57
leppie7-Sep-06 9:57 
QuestionReading image pixel colors? Pin
Goalie357-Sep-06 4:31
Goalie357-Sep-06 4:31 
AnswerRe: Reading image pixel colors? Pin
User 66587-Sep-06 4:36
User 66587-Sep-06 4:36 
AnswerRe: Reading image pixel colors? Pin
Judah Gabriel Himango7-Sep-06 4:42
sponsorJudah Gabriel Himango7-Sep-06 4:42 
GeneralRe: Reading image pixel colors? Pin
User 66587-Sep-06 4:53
User 66587-Sep-06 4:53 
QuestionWhy is main() in a class?(About oo design) Pin
sawerr7-Sep-06 3:58
sawerr7-Sep-06 3:58 
AnswerRe: Why is main() in a class?(About oo design) Pin
User 66587-Sep-06 4:26
User 66587-Sep-06 4:26 
AnswerRe: Why is main() in a class?(About oo design) Pin
Nader Elshehabi7-Sep-06 4:45
Nader Elshehabi7-Sep-06 4:45 
GeneralRe: Why is main() in a class?(About oo design) Pin
KevinMac7-Sep-06 8:55
KevinMac7-Sep-06 8:55 
AnswerRe: Why is main() in a class?(About oo design) Pin
Kevin McFarlane7-Sep-06 5:18
Kevin McFarlane7-Sep-06 5:18 
QuestionPassing char array to c++ function Pin
Blubbo7-Sep-06 3:13
Blubbo7-Sep-06 3:13 
QuestionRe: Passing char array to c++ function Pin
Nader Elshehabi7-Sep-06 4:48
Nader Elshehabi7-Sep-06 4:48 
AnswerRe: Passing char array to c++ function Pin
Judah Gabriel Himango7-Sep-06 4:57
sponsorJudah Gabriel Himango7-Sep-06 4:57 
AnswerRe: Passing char array to c++ function Pin
Judah Gabriel Himango7-Sep-06 4:57
sponsorJudah Gabriel Himango7-Sep-06 4:57 
QuestionQuestion about Objects Pin
Chrismaster7-Sep-06 2:08
Chrismaster7-Sep-06 2:08 
Hi!
I'm assuming little problems instancing a set of sprites from a single
AnimatedSprite class using SDLdotNet with C# 2005.

let's check my Generate() function in the Stone Class:

<br />
<br />
AnimatedSprite asMySprite;<br />
<br />
public void Generate(AnimatedSprite asfOrigin)<br />
{<br />
    int iRND = Random.Next(0, 5);<br />
    asMySprite = new AnimatedSprite();<br />
    asMySprite = asfOrigin;<br />
<br />
    switch(iRND)<br />
    {<br />
    case 0:<br />
        asMySprite.CurrentAnimation = "aaa";<br />
    case 1:<br />
        .<br />
        .<br />
        .<br />
        <br />


So now my problem is, that after calling the Generate()
function, if I change some properties of the asfOrigin
structure, they are also changed in my asMySprite
structure, regardless to the fact that I am instanciating
asMySprite with the new keyword prior to copying it's
changes.

What am I doing wrong???

Thanks for help in advance,
Chris
AnswerRe: Question about Objects Pin
SeMartens7-Sep-06 2:23
SeMartens7-Sep-06 2:23 
AnswerRe: Question about Objects Pin
Not Active7-Sep-06 2:25
mentorNot Active7-Sep-06 2:25 
AnswerRe: Question about Objects Pin
mikone7-Sep-06 2:26
mikone7-Sep-06 2:26 
AnswerThanks! Pin
Chrismaster7-Sep-06 2:34
Chrismaster7-Sep-06 2:34 
AnswerRe: Question about Objects Pin
guygo7-Sep-06 2:48
guygo7-Sep-06 2: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.