|
great reference!
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
That's exactly why I used it
|
|
|
|
|
I'm looking for a tool or a standard for writing software requirements (SRS) for a .NET application.
Does anyone have any tips on this matter?
|
|
|
|
|
|
I see your point - thanks Mark!
|
|
|
|
|
hii all i want to create a desktop application using csharp .net.
can anybody give me link from where i can learn how to create windows application(project)
,database connectivity etc.plz help.....
|
|
|
|
|
You should be reading a .Net book. Almost all books have samples.
Have a look here.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
|
How to display 60 questions with options for an online exam
|
|
|
|
|
Lakshmithangaraj wrote: How to display 60 questions with options for an online exam
Well, you're normally going to have some form of datasource backing this up - be it a database or XML file. You'd have a question with a number of possible answers, some of which would be marked as correct answers and some incorrect. Then you display the questions along with the possible answers - the user chooses what they think is correct and you store their answers. Finally, you'll compare their answers with your reference answers and see how many they got right.
That seems straightforward enough.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
I need a sample online quiz application
|
|
|
|
|
Well try google then. Nobody is going to do your homework for you. You have been given a straight forward explanation, so try coding it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi.....
i am doing my final year project in C# integrated with grid.
i have a problem here which is...
i want to connect all computers in my lan network using ip address and need to access the file contents present in them....
i have connected the computers using this coding,
Console.Write("Enter the IPAddress of the file:");
string ipadd = Console.ReadLine();
IPAddress[] ips = Dns.GetHostAddresses(ipadd);
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Console.WriteLine("Establishing Connection to{0}", ipadd);
s.Connect(ips[0], 9001);
Console.WriteLine("Connection Established");
now i want to access the file contents present in that system.is it possible and i would do it through the use of streamreader class........
the important thing is it is not a client-server coding....
it is a single application coding that needs to access another system's file contents...
thanx in advance.
|
|
|
|
|
thivya n wrote: the important thing is it is not a client-server coding
It is by its very nature client/server as you cannot do this without having a listener (aka server) socket on the destination computer.
MVP 2010 - are they mad?
|
|
|
|
|
is it not possible to connect a socket(connected to other system) to a streamreader to access a file contents...
|
|
|
|
|
I think so, take a look at this article[^] here on CodeProject.
MVP 2010 - are they mad?
|
|
|
|
|
the article u mentioned is based on a server and a client.
but the one i require is for a single-ended application......
connection between a socket and a stream......
could u help me with that.....
|
|
|
|
|
I guess in theory, though that is not the problem.
As has been said, creating a socket from machine A to machine B is no good to you if nothing is on the other end of the socket. All sockets require an endpoint for communication, in this case a service on the remote machine that sends you the file content.
If, as it seems, you are writing a single ended application you just need to create a stream reader on the remote file using the UNC path. This of course assumes the network security setup is such that you have access to the file on the remote computer.
|
|
|
|
|
could u help me ur idea explained with an example! please...
also the project i am doing is an integration of grid computing and C# console application, so it is a single-ended application...
the main idea i want to implement is...
1.connect to a remote computer using its ip address from my computer in LAN.
2.specify the path of the file in the remote computer from my computer.
3.read its contents through a stream reader.
4.access its contents using stream writer.
thanks in advance.
|
|
|
|
|
I think there are two possibilities you can try:
1. Create a client server setup where the server connects to the cient, and a reader on the client feeds the file data back to the server.
2. Create a reader on the server that accesses the client's filesystem directly, via network shares.
I do not know of any way, and I think it would be very dangerous, that a server could access a client's filesystem without the client's permission and active assistance.
MVP 2010 - are they mad?
|
|
|
|
|
Hi there,
Screencaptureing seems to not let go of me. Right now I'm using the Method Graphics.CopyFromScreen to capture screen images (whole desktop and parts of it) and I think, that using this method is quite costly regarding CPU and memory consumption.
So I'm wondering how other projects deal with this task... I don't want to reinvent VNC or something. The goal here is to grab a movie-like thing from the desktop with minimum CPU/memory consumption.
Is there a best practices guide or something floating around? I need everything from algorithms to actual source code...
Thank you very, very much in advance!
Best regards,
Stevie
Greetings,
Stephan Eberle
hawke@deltacity.org
|
|
|
|
|
If you decompile Graphics.CopyScreen with Reflector you can see it's quite simple
DeviceContext context = DeviceContext.FromHwnd(IntPtr.Zero))
SafeNativeMethods.BitBlt(...)
I don't see how you can improve on that...
And I believe VNC does that the 1st time then plug a Window Hook on the WM_PAINT event to repaint just what's needed... (through GDI, miss the DirectX stuff)
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Hi,
hooking WM_PAINT sounds like a good way, but how is it done? Is every application hooked or is there some über-hook to catch all redraws appearing?
Thank you,
Stevie
Greetings,
Stephan Eberle
hawke@deltacity.org
|
|
|
|
|
problem is.. you can't do WM_PAIN hook in C# (in fact I'm not sure you can hook WM_PAINT) but anyway, here are some links:
Global Windows Hooks[^]
http://msdn.microsoft.com/en-us/library/ms997537.aspx[^]
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|