|
netJP12L wrote: trasferring an object through wire
I expect that doesn't include files.
You don't need to, but it may be good practice for when you do need to.
Also, I would always write custom serialization; the automated serialization is generally too limited.
|
|
|
|
|
Hi
I need to take the user session ID number (maybe is called session token or SID) in my windows C# application, it is a unique number per session, same user different sessions should have different numbers. I tried a lot of ways (almost everything from win32) without success....
|
|
|
|
|
MeNot,
I am guessing you're talking ASP.NET. This?[^]
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
No, it's windows application, every windows session has a ID (if I am sure).
My problem is that I log the user in a service (in another machine) using just his user id, but if he restart his machine I should be able to log him again, and for this I need an information about his session at windows.
|
|
|
|
|
Hi, i'm trying to write a function where i can do this:
private bool ParameterCheck(Type[] expected, object[] actual)
{
if (actual.Length != expected.Length)
return false;
for (int i = 0; i < actual.Length; i++)
{
if(actual[i] as expected[i] == null)
return false;
}
return true;
}
The goal is to check if a object array is the same length and same type as some expected parameters.
|
|
|
|
|
FocusedWolf wrote: if(actual[i] as expected[i] == null)
if (actual[i].GetType() != expected[i])
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
|
|
|
|
|
Oops, wrong answer, see mine
|
|
|
|
|
I see them both wrong, see another one
|
|
|
|
|
You could, but them the method would not be called paramatercheck.
|
|
|
|
|
Bah, well, I made his code compile, didn't fix his problems. Call me an ugly patcher.
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
|
|
|
|
|
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.
|
|
|
|