• We've upgraded our forums. Please post any issues/requests in this thread.

Programming for Windows Phone 7 (C#)

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#1
Ok i have identical code written in C#. But for some reason the same C# code in a Windows Phone 7 app doesnt compile. The only things causing problems are ArrayLists are said to not exist, and also System.Enum does not have a GetValues() method for some reason. This is for the blackjack app i made a thread about a while ago.
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#2
I know somebody knows, or does this only use a subset of C#?
 

DirectorC

New Member
Joined
Nov 4, 2009
Messages
1,624 (0.55/day)
Likes
267
Location
Florizy
System Name -= Son of a Whore =-
Processor E8400 @ 4.0GHz (445 x 9)
Motherboard Gigabyte GA-EP45-UD3R
Cooling Cooler Master Hyper 212+
Memory 3GB Corsair XMS2
Video Card(s) EVGA 8800 GT 512
Storage 74GB Raptor + Caviars in RAID0
Display(s) I-Inc 19" LCD 1440x900
Audio Device(s) Audigy SE & Logitech X-540
Power Supply Corsair 750TX
Software Win32 v6.1.7600
Benchmark Scores Logitech KB & Sidewinder X3
#3
You should probably do some research into the differences of programming for Windows and Windows Mobile.
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#4
I probably should. I figured since windows phone 7 is a new architecture and it won't be released til the end of the year maybe some people were experimenting with it. I didn't think programming for windows mobile and windows phone were the same since they are pushing the fact that there is no backwards compatibilty.
 

DirectorC

New Member
Joined
Nov 4, 2009
Messages
1,624 (0.55/day)
Likes
267
Location
Florizy
System Name -= Son of a Whore =-
Processor E8400 @ 4.0GHz (445 x 9)
Motherboard Gigabyte GA-EP45-UD3R
Cooling Cooler Master Hyper 212+
Memory 3GB Corsair XMS2
Video Card(s) EVGA 8800 GT 512
Storage 74GB Raptor + Caviars in RAID0
Display(s) I-Inc 19" LCD 1440x900
Audio Device(s) Audigy SE & Logitech X-540
Power Supply Corsair 750TX
Software Win32 v6.1.7600
Benchmark Scores Logitech KB & Sidewinder X3
#5
Windows Phone is the new Windows Mobile right?
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#6
well windows phone is just windows mobile. But windows phone 7 is being put out as an all new thing.
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#7
everything is in xaml and c#.
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#8
well...looks like my dumbass doesnt know anything about silverlight. There are no arraylists. Shouldnt be hard to fix now that i have time to research.
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#9
i figured out my first problem. But i need help with my foreach loop now. Currently i'm using
Code:
foreach (Faces F in Enum.GetValues(typeof(Faces)))
But the GetValues method doesnt exist in Silverlight and i'm having a hard time finding an alternative.
 

Kreij

Senior Monkey Moderator
Staff member
Joined
Feb 6, 2007
Messages
13,817 (3.48/day)
Likes
5,524
Location
Cheeseland (Wisconsin, USA)
Processor Intel Core 2 Quad QX9650 Extreme @ 3.0 GHz
Motherboard Asus Rampage Formula
Cooling ZeroTherm Nirvana NV120 Premium
Memory 8GB (4 x 2GB) Corsair Dominator PC2-8500
Video Card(s) 2 x Sapphire Radeon HD6970
Storage 2 x Seagate Barracuda 320GB in RAID 0
Display(s) Dell 3007WFP 30" LCD (2560 x 1600)
Case Thermaltake Armor w/ 250mm Side Fan
Audio Device(s) SupremeFX 8ch Audio
Power Supply Thermaltake Toughpower 750W Modular
Software Win8 Pro x64 / Cat 12.10

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#11
great stuff man.
 

DanTheBanjoman

Señor Moderator
Joined
May 20, 2004
Messages
10,488 (2.11/day)
Likes
1,331
#12
Windows phone 7 works via Silverlight? No native .NET applications anymore? I understood a lot wouldn't work, but this is really crap.
 

spy2520

New Member
Joined
Mar 8, 2006
Messages
498 (0.12/day)
Likes
16
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
#13
i'm starting to question why i used enumerators for suits and faces in a blackjack app in the first place.



Windows phone 7 works via Silverlight? No native .NET applications anymore? I understood a lot wouldn't work, but this is really crap.
thats what it looks like.