Click here to Skip to main content
15,915,839 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Printable Reports from Access DB Pin
KaptinKrunch31-May-05 19:04
KaptinKrunch31-May-05 19:04 
GeneralRe: C# Printable Reports from Access DB Pin
Glenn E. Lanier II1-Jun-05 3:01
Glenn E. Lanier II1-Jun-05 3:01 
GeneralRe: C# Printable Reports from Access DB Pin
Anonymous2-Jun-05 6:14
Anonymous2-Jun-05 6:14 
GeneralRe: C# Printable Reports from Access DB Pin
Glenn E. Lanier II2-Jun-05 6:32
Glenn E. Lanier II2-Jun-05 6:32 
GeneralRe: C# Printable Reports from Access DB Pin
KaptinKrunch2-Jun-05 16:14
KaptinKrunch2-Jun-05 16:14 
GeneralRe: C# Printable Reports from Access DB Pin
Glenn E. Lanier II6-Jun-05 6:57
Glenn E. Lanier II6-Jun-05 6:57 
GeneralI'm Totally Stumped - DirectDraw C# Surfaces Pin
YawgmothIII31-May-05 8:59
YawgmothIII31-May-05 8:59 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Christian Graus31-May-05 11:53
protectorChristian Graus31-May-05 11:53 
YawgmothIII wrote:
Now that I understand what the compiler is saying is wrong i was able to make that error go away.. though i don't fully understand why...lol.
Appearently all i needed was:
- SpriteSet[(int)Sprite.BlueBlob] = new classSprite();

but i thought it already did that when I did this:
- private classSprite[] SpriteSet = new classSprite[2];

So if anyone could explain that to me, it would be greatly appreciated.
The new problem is:
- Value does not fall within the expected range

when i try to do this:
TempSurface = new Surface(SpriteSet[(int)Sprite.BlueBlob].FilePath, description, display);


Hi - welcome to CP !!

private classSprite[] SpriteSet = new classSprite[2]; creates an array of two classSprites.

SpriteSet[(int)Sprite.BlueBlob] = new classSprite(); this assumes SpriteSet exists as an array already, and assigns the classSprite at the position Sprite.BlueBlob ( which must be 0 or 1 ) to be a new classSprite. This is obviously a class of your own design, is there some reason why you'd need to do both, that is, why you'd need to call the constructor for every item in the array ?

"Value does not fall within the expected range"

At a guess, this means that SpriteSet does not contain enough values for there to be one at Sprite.BlueBlob.



Christian Graus - Microsoft MVP - C++
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Anonymous31-May-05 12:42
Anonymous31-May-05 12:42 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Christian Graus31-May-05 12:50
protectorChristian Graus31-May-05 12:50 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Anonymous31-May-05 15:04
Anonymous31-May-05 15:04 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Christian Graus31-May-05 15:21
protectorChristian Graus31-May-05 15:21 
Generalusing windows' auto complete Pin
Green Fuze31-May-05 8:43
Green Fuze31-May-05 8:43 
GeneralRe: using windows' auto complete Pin
OMalleyW31-May-05 9:00
OMalleyW31-May-05 9:00 
GeneralRe: using windows' auto complete Pin
Green Fuze31-May-05 12:35
Green Fuze31-May-05 12:35 
QuestionVideo Buffer? Pin
OMalleyW31-May-05 8:13
OMalleyW31-May-05 8:13 
AnswerRe: Video Buffer? Pin
OMalleyW1-Jun-05 7:16
OMalleyW1-Jun-05 7:16 
GeneralLooking for MS Word AutoShape like Toolbar Pin
Don Ashworth31-May-05 7:56
Don Ashworth31-May-05 7:56 
GeneralOdbcDataReader!! Pin
trk_wakil31-May-05 7:34
trk_wakil31-May-05 7:34 
GeneralRe: OdbcDataReader!! Pin
KaptinKrunch31-May-05 19:47
KaptinKrunch31-May-05 19:47 
GeneralRe: OdbcDataReader!! Pin
trk_wakil1-Jun-05 1:08
trk_wakil1-Jun-05 1:08 
Generalneed client-based component for use in web pages Pin
ctlajoie31-May-05 6:54
ctlajoie31-May-05 6:54 
QuestionProcessStartInfo.Arguments - No Spaces in Path? Pin
pgaribay521131-May-05 6:46
pgaribay521131-May-05 6:46 
AnswerRe: ProcessStartInfo.Arguments - No Spaces in Path? Pin
r_u_i_z_m31-May-05 7:06
r_u_i_z_m31-May-05 7:06 
AnswerRe: ProcessStartInfo.Arguments - No Spaces in Path? Pin
S. Senthil Kumar31-May-05 7:13
S. Senthil Kumar31-May-05 7:13 

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.