|
kbalias wrote: Just want to hear whether C# can be successfully used to develop games in general and particularly multiplayer games? Or else what would be the preferred language for these higher end games?
Yes, it can. If you download Visual C# 2005 Express Edition[^] and then the XNA Game Studio Express 1.0[^] (both free) you can develop games in C# for Windows and the XBOX360. (NOTE: XNA sits on top of C# Express which is why you need to download and install both items. If you already have Visual Studio it will happily sit side by side - I have that set up at home)
|
|
|
|
|
C++ is king, but C# can do a lot of types of games, I just wouldn't choose it for an intense 3D experience.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: I just wouldn't choose it for an intense 3D experience
Oh I don't know. It would be interesting to have Sloths as the monsters in the new version of Quake.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm trying to find c# barcode generator control (code128). Does anyone know where can I find one? I found some on codeproject, but they're all either generators for other barcode styles, or they're written in other languages.
thanks in advance
cellardoor
|
|
|
|
|
What are the other languages ? If VB.NET, that's easy to convert, or use in a DLL.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I found one written in c++ and I really don't know how to use it...
cellardoor
|
|
|
|
|
OK, you could try to make it a managed DLL, or you can try to rewrite it in C#.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
How do I make it a managed DLL? Is there a step by step guide to this problem, or at least an example?
cellardoor
|
|
|
|
|
A managed DLL is a Class Library project written in a .NET language
|
|
|
|
|
search on code project, and you will find many; all kinds of bar code in all kinds of languages.
Did you see this one [^]?
Luc Pattyn
|
|
|
|
|
Hi all,
In VS2005, is it possible to set a USercontrol's property in the "Properties Window" when designing the container form? How can I make that a Usercontrol property appears in the "Properties Window"?
Thanks in advance,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hi Marc,
While developping your UserControl, add a property the way you always do it.
Then add XML comments (triple slashed) if you want these
Then add attributes for the future users of your UserControl
When using your UserControl, the Designer will:
- show the description you gave as a help text (at bottom of pane)
- use "Category" to group properties (when in grouped rather than alphabetical order)
in the Properties panel of your UserControl,
An unfortunate consequence seems to be, if you want both XML and Designer help,
you end up repeating the same textual description.
like so:
[Category("MyUserControl"), Description("Gets or sets a flag to "+
"indicate ...")]
public bool SomeFlag {get {return someFlag;} set {someFlag=value;}}
Luc Pattyn
|
|
|
|
|
Helo
im trying to get MCTS exams , can anybody give me an idea about it
or any materials ,
thanks
|
|
|
|
|
And this is why the exams are useless. People pass because they get the info they need online, not because they know anything.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Hello...
Does anyone have a problem in WebBrowser.Print() Method ?
My code is :
this.webBrowser.Navigate("http://www.microsoft.com");
this.webBrowser.Print();
It prints always 2 pages, the first page is always empty. The second page is the microsoft website.
Is that a bug from microsoft ?
Thanks...
|
|
|
|
|
What happens if you try to print that page using Internet Explorer 6?
|
|
|
|
|
I implemented same call in my program few days ago and it works nice so it must be your host have problem with IE or something...
|
|
|
|
|
Hi All,
Iam using this multi threading concept to load an xml file from web to a dataset.
Here iam generating lot of threads say around 10. In this few threads where not completed till the end, when i checked the thread status it is still alive.
So what should i do to overcome this problem.
Thanks in Advance,
Justin
Justin
|
|
|
|
|
Here are some facts:
By themselves, threads stay alive as long as they have something to do; most likely this
means they are inside a loop (could be a message loop as inside Application.Run, and
in Form.ShowDialog) or they are waiting on something that has not happened yet (such as
Thread.Join).
From outside the thread, a thread could get aborted or killed, to make it stop.
When Thread.IsBackground is true, then that thread will not prevent the app from exiting.
And some suggestions:
- watch your CPU activity (Windows Task Manager, Processes, column: CPU); if not near zero,
your app is still busy (calculating, or looping, anything that exceeds waiting)
- if CPU is near 100% you are probably stuck inside a loop that contains no wait, and also
no delay (something like a polling loop without a Thread.Sleep; a very bad idea!)
- add logging to your threads
- make sure you do not eat Exceptions; they are there for a purpose, act on them, dont
just catch and ignore them
- use Visual Studio to observe and debug your app
- try and avoid potential deadlocks (you know, the situation where multiple threads need
access to the same resources, which are protected in some way, say by locks;
thread 1 grabs resource 1 then tries to grab resource 2, whereas thread 2 grabs
resource 2 then tries to grab resource 1.). If this is too mysterious, find yourself
some articles on the subject (and again add logging to your app, with logging you pretty soon
should notice a deadlock if and when it happens.
Cheers
Luc Pattyn
|
|
|
|
|
Hi all,
I've created a usercontrol library (VS2005) and when I use one of its controls in an app I'd like to change some properties of the controls that are contained in the usercontrol. By default, when I drag a usercontrol to the app form, its controls remain locked and I just can change the general properties of the UC.
Is it possible to change the container controls properties?
Thanks in advance,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Hello,
If the properties are public and the ReadOnly Attribute is not set to "true", it should work.
All the best,
Martin
|
|
|
|
|
Hello,
Martin# wrote: If the properties are public and the ReadOnly Attribute is not set to "true", it should work
how do you make that control public? I mean: the control that I want to change is a Button and in some Apps I'd like to make it visible and in some others no. Can I do this in the Form DEsigner or by code at runtime?
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
You can change the attributes of a Control in Designer; look for "Modifiers"
in the Control's Properties list.
Now if your UserControl really has two states (say "simple", and "full") I think it would
be much better to make that explicit feature of your UserControl:
keep the internal Controls private, but give the UserControl one more Property
(say bool "reducedFunctionality"); with this property you can choose, either at build-time
with the Designer while putting it on your Form, or programmatically at run-time
(by assigning a value).
Luc Pattyn
|
|
|
|
|
Hello !
When an object is marshalled by ref (through .net remote client call),
all references it hold also get marshalled too--except those new inside itself.
Is this the correct statement?
Technically,
<br />
class MyService : MarshalByRefObject {<br />
MyObject myObj = new MyObject();
MyObject hisObj = someOneElse.Object;
...<br />
}<br />
Thanks,
sovann
|
|
|
|