all groups > c# > august 2003 > threads for saturday august 30
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
A good way of programming?
Posted by Hans Kamp at 8/30/2003 11:40:33 PM
I am programming an easy game (not with a commercial purpose, just with
learning purpose), but I doubt whether the following way of programming is
proper or advisable.
The main form (BugEaterForm) that has a module, has the following objects:
- Snake, for drawing and being controlled;
- Playe... more >>
Problem passing structs in C#?
Posted by Schorschi NO[at]SPAM DSLExtreme.COM at 8/30/2003 9:16:20 PM
Can someone please point out why I am getting an 87 error? I am sure
it is obvious, but I am new to C# and seem to be having a lot of
stress understanding managed versus unmanaged code when API calls are
needed!
//
using System;
using System.Runtime.InteropServices;
//
namespace Dev... more >>
default value of type
Posted by Franz at 8/30/2003 9:05:21 PM
I would like to know if there is a list for default values of types (e.g.
int, float, bool, System.Drawing.Color, String, etc)?
Thanks.
--
Franz Wong
My C++ and C# Site (Traditional Chinese) : http://www.franzwong.com
... more >>
Why are arrays objects (on heap) instead of structs (on stack)?
Posted by Gomaw.Beoyr NO[at]SPAM no.spam.please.no at 8/30/2003 7:18:44 PM
Hello
Is there any explanation why Microsoft chose to implement
arrays as objects allocated on the heap instead of structs
allocated on the stack?
For "mathematical stuff", one normally wishes to avoid
unnecessary garbage collection, but that is exactly what's
going to happen if a lot of... more >>
Customizing FlexGrid w/ a check box
Posted by VR at 8/30/2003 7:02:42 PM
I am trying to embed a check box into a FlexGrid's cell,
but having a problem when I start scrolling the grid.
Here is my MyCheckBox class...
class MyCheckBox : CheckBox
{
void Init
(
AxMSFlexGridLib.AxMSFlexGrid oGrid,
int iRow,
int iCol
)
{
...
... more >>
Delegates ..
Posted by Pawan at 8/30/2003 6:56:26 PM
Hullo Mates,
I am looking for some resource on delegates and event raising in C# for
my threading application. Actually the whole delegation process seems very
confusing to me :( ... Well I am going through MSDN, still any further
resources with some examples on delegates that might help me ... more >>
adding quotation marks to a string?
Posted by vince at 8/30/2003 4:19:45 PM
need to create a string with embedded quotation marks,
like
string str1 = " they said "go away" ";
How can this be done?
Thanks,
vince... more >>
C# and SAX
Posted by Jeremy McPeak at 8/30/2003 3:48:01 PM
I have searched for information on C# and SAX, and have yet to find
anything. Is there any documentation on this subject?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
persistant variables with local scope?
Posted by Michael Roper at 8/30/2003 1:47:00 PM
Is there a C# approach that allows you to define locals with program
lifetime? That is, I don't want to have to expand the scope of a variable
just so I can make it persistent.
For example, something like:
class myClass
{
int iCallCounter = 0;
int CallCounter() { return ++iCallCounte... more >>
Single Sign On
Posted by Tom at 8/30/2003 1:43:34 PM
I am trying to establish an infrastructure whereby I want
only one login screen for my .net application users.
In my experience, if the user's domain is different than
the application domain, the user is presented with the
Windows login screen a second time.
Is it possible for the brow... more >>
Game programming with C#
Posted by Hans Kamp at 8/30/2003 12:59:19 PM
As a programming exercise I try to program a game.
In my case it is called BugEater. The purpose is that you are a snake. It
moves automatically but you can control it with the keys on your keyboard.
In the field where your snake is, there are candies that you must eat. The
more candies you ea... more >>
run another .exe
Posted by MP at 8/30/2003 12:26:55 PM
How I can run some .exe from c# application?
Thanks
... more >>
C# visual inheritance...
Posted by Gordon Smith at 8/30/2003 11:22:28 AM
Hi,
I'm trying to create a form in c# that I visually inherit
from.
It includes a button, that when I click, displays a "hello
world" message.
I then create an inherited form, and create an event
handler for the button that displays a "hello world 2"
message.
The problem is, that when ... more >>
Buttons and Scopes of Forms
Posted by Patrick De Ridder at 8/30/2003 11:17:38 AM
Button1 displays Form1. Button 2 displays Form2. etc.
The changes are brought about by Buttoin_Clicks. How do I get rid of
Form1 purely by pressing Button2? Because as soon as I press Button2,
I have lost the scope of Form1 and I can no longer do Form1.Close();
(Of course I can get rid of Fo... more >>
CommandType.StoredProcedure - where defined ?
Posted by PeteZ at 8/30/2003 9:55:40 AM
what using . . . . statement do I need to get this value
(CommandType.StoredProcedure) defined ?
even when I have defined the using statements:
using System;
using System.Data.SqlClient;
using System.Data.Common;
using System.Data.OleDb;
using System.Data.SqlTypes;
I still get a compil... more >>
Easy Hex string "0x1234" to integer conversion?
Posted by Ed Sutton at 8/30/2003 8:56:16 AM
Is there an easy conversion from a hex string, for example "0x1234" to an
int?
I have written my own many times in other languages, I was just wondering if
there might be something already available for doing this.
-Ed
... more >>
new and Virtual.. differences...?
Posted by superfrog at 8/30/2003 7:50:44 AM
Hi there,
while trying to learn polymorphism, i am confused between
the 2.
=======================================================
class Person
{
...
public void someMethod()
{
//do something
}
}
class Guy :Person
{
public new void someMethod()
{
// do something
}... more >>
Printing a mix of tables and other text
Posted by Dennis C. Drumm at 8/30/2003 6:40:54 AM
I was wondering if someone could suggest were/how I could get started with
setting up printing of a collection of text that includes tables from a grid
and other supporting information about the grid's contents. If you could
just point me at the classes that I should consider and some very broad
... more >>
|