|
Look at Type.IsInstanceOfType()
|
|
|
|
|
Brilliance.
You would have thought that runtime would let you call the method and catch the exception
(no language in the world should allow for that scenario)
|
|
|
|
|
can any one help me. i am new to c# and i have to make an online timetable schedular using round robin algorithm. plz can any one help me in this plz plz this is my final project plz help me
modified on Wednesday, June 4, 2008 1:56 PM
|
|
|
|
|
Member 3633992 wrote: my final project
Oh I hope you have a flame retardant suit.....
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
namespace NeedsCode
{
class Program
{
static void Main(string[] args)
{
throw new NotImplementedException("The program code needs to be implemented.");
}
}
}
“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra
|
|
|
|
|
I've created a monster weeeeeee!!
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
I thought I'd seen that excellent code example before. It has so many uses too.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Have you thought about studying languages instead of programming? Here's an example to maybe inspire you to consider the possibility of taking a new direction.
Incorrect:
can any one help me. i am new to c# and i have to make an online timetable schedular using round robin algorithm. plz can any one help me in this plz plz this is my final project plz help me
Correct:
I have searched the internet and this site, but I couldn't find any examples or theories to help me progress, so I was hoping that someone here may know of some resources that may help. The task I have been assigned is to produce a Timetable Schedular using a 'round robin' algorithm.
I am new to C#, but I have worked through 'xxx' examples/articles to try and get a basic knowledge. The code below is what I have attempted so far.
Your code goes here...
Any assistance you could give by way of code correction, theory, or other links to help me finish my final project would be greatly appreciated.
Dave
|
|
|
|
|
Member 3633992 wrote: this is my final project plz help me
How did you get this far, if you have no idea how to write code, how to use google, or how to properly ask for help online ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Answer: Copy from course mates or senior.
|
|
|
|
|
What the hell was in your original message that this pile of crud is what you modified it to. Don't use textspeak, and don't try to get people in the forums to do your homework for you - at least you'll have the pride when you fail your course, you'll fail on your own.
|
|
|
|
|
Repeat 100,000,000 times "Would you like fries with that?"
This'll leave you fully prepared for your post graduate career.
You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4....
-- El Corazon
|
|
|
|
|
How can we be certain you'll use the code for good instead of evil?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
hush now, we must never find the master plan of 1337 #@X0r'5 to come to code project so they can get us to write application their tools which pwned the world!
It does make me wonder if someone did send evil codz to one of those "plz send teh codz" what would happen to them when their professor ran it :/
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Hi,
I've strange requirement to meet, please some one help out.
I've two EXE one for uploading data into DB and another is Searching DB. But i can search the DB by using the Object which is created by first EXE. Is there any possibility that second EXE should be able to access the Object which has been created by another EXE.
Or is there any other way to resolve it.
Thanks in advance.
|
|
|
|
|
You can share objects between processes by using .NET remoting and MarshalByRef objects. Look up some remoting examples on the web.
Life, family, faith: Give me a visit.
From my latest post: "How differently the psalmist saw it! How blessed -- how truly happy with real joy! -- is the man who delights in the Law of the Lord."
Judah Himango
|
|
|
|
|
You have to make third application much probably a class library, the purpose of that class library is to read,write in db
use that class library in your both exe's
|
|
|
|
|
What does a method return type followed by a question mark (?) indicate?
I just saw this in code that I am maintaining and I have never seen this before.
|
|
|
|
|
|
Hi all,
i need to generante random number and it's range should be between
1.3200 & 1.3500
i tryed
Random r=new Random();
1.3200+r.next()*1.3500
but it didnt work!!!
|
|
|
|
|
mrcooll,
MSDN[^]
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Try selecting between 132 and 135, then divide by 100.0 ( dividing by 100 will give you an int, not a float )
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Use the NextDouble method instead of the Next method. The Next method returns a number between 0 and int.MaxValue .
The range (difference between lowest and highest) is not 1.35, it's 0.03, so that's what you should multiply the random number by.
double n = 1.32 + r.NextDouble() * 0.03;
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
mrcooll wrote: but it didnt work!!!
of course: it is wrong.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hello,
First of all thank you for this magnificent web site.
I am new to C# and trying some basics on my own.
As you may know if you try to define a path variable as a string in C# you must use "\\" to indicate backslashes:
i.e.:
string filePath = "C:\\Windows\\Temp\\file.txt";
But what if I should received the path information as a parameter to my main() method?
I have tested it many times in simple applications but I could not open a SaveFileDialog in the specified directory. Please consider the following examples that sets SaveFileDialog.InitialDirectory property.
The operation of the application is simple, just display a SaveFileDialog pointing to the location passed to the Form1:
This one works pretty fine:
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
string initialDirectory = "C:\\Windows\\Temp";
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1(initialDirectory ));
}
and Form1 class has the following codes inside:
public partial class Form1 : Form
{
private string initialDirectory;
public Form1(string initialDirectory)
{
this.initialDirectory = initialDirectory;
InitializeComponent();
InitializeSvFDlg();
}
private void InitializeSvFDlg()
{
this.saveFileDialog1.InitialDirectory = this.initialDirectory;
this.saveFileDialog1.ShowDialog();
}
}
--------------------------------------------------------------
I observed that SaveFileDialog does not show the passed directory when I use the following method in main() and start the program from Command Prompt with SvFileDlgShow.exe "C:\\Windows\\Temp" command:
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
string initialDirectory = args[0];
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1(initialDirectory));
}
Form1 class is the same.
--------------------------------------------
But the executable works fine if I use SvFileDlgShow.exe "C:\Windows\Temp" as the start-up command.
Is this the intended operation?
Any help is appreciated.
|
|
|
|