Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

Cadence2 0

@Cadence2 0
About
Posts
18
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I finally did
    C Cadence2 0

    How did you get your software for cheap? Students of some universities can get microsoft software for free through the msdnaa Building a computer is a lot of fun though! Good luck!!!

    -K

    The Lounge

  • Transfer of XML
    C Cadence2 0

    On second thoughts, I do not think this would work as you are writing from server to client. That's something I didn't register the 1st time around. oops. Sorry.

    -K

    C# csharp sysadmin xml

  • Transfer of XML
    C Cadence2 0

    You could use the WebClient class Try this: string URL = "http://www.somesite.com/filename.fileExtention"; string localLoc = "C:\\filename.fileExtention"; System.Net.WebClient c = new System.Net.WebClient(); c.DownloadFile(URL,localLoc); You could use a browse dialog for the location to save the directory. Hope that helps, K

    -K

    C# csharp sysadmin xml

  • Socket code
    C Cadence2 0

    I liked this example a lot. It's an asynchronous TCP Server/Client. http://codeguru.earthweb.net/csharp/csharp/cs\_misc/sampleprograms/article.php/c7695/ http://codeguru.earthweb.net/csharp/csharp/cs\_network/sockets/article.php/c8781/ Good Luck

    -K

    C# sysadmin question

  • How to find out HD Size of a computer without using WMI
    C Cadence2 0

    Actually, I like WMI a lot. However, the application is required on an embedded system running Win XP Embedded that doesn't have WMI as a component. :~

    -K

    C# tutorial question

  • How to find out HD Size of a computer without using WMI
    C Cadence2 0

    Hey there, Is there any way to (programatically) find out the hard disk size of a computer without using WMI? My best idea is to recurse through all the directories (externally calling dir/p) and find out how much space is taken by each directory and then adding it to the free space. But that is quite cumbersome. Any ideas?

    -K

    C# tutorial question

  • Redirecting outputs if Process.Start is used.
    C Cadence2 0

    Process p = new Process(); // Redirect the output stream of the child process. p.StartInfo.UseShellExecute = false; //p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = "ipconfig.exe"; p.StartInfo.Arguments = ("/all"); p.StartInfo.RedirectStandardOutput = true; p.Start(); p.WaitForExit(); string s = p.StandardOutput.ReadToEnd(); Console.WriteLine(s); Console.ReadKey();

    -K

    C# question

  • Redirecting outputs if Process.Start is used.
    C Cadence2 0

    Bien! Just what I wanted. Thanks a million...:-D

    -K

    C# question

  • Redirecting outputs if Process.Start is used.
    C Cadence2 0

    Hi! Is it possible to redirect the output from Process.Start to a textfile or (even better) a variable? I'm using Process.Start to invocate ipconfig to get the mac address.. Thanks in advance,

    -K

    C# question

  • [Message Deleted]
    C Cadence2 0

    This might help you out. http://msdn.microsoft.com/coding4fun/inthebox/systrayalclock/default.aspx

    -K

    C#

  • DB Connection Failure using C#
    C Cadence2 0

    Indeed! Thanks for your help god_bless. Here is my final connection string: SqlConnection conn = new SqlConnection(@"Server=.\SQLEXPRESS; Connect Timeout=5; Database=myTestDb; User ID=****; Password=****"); Also, since I am not using Windows authentication, I had add a user which I accomplished by SQLCMD.exe -S (local)\SQLExpress -E > EXEC sp_adduser '[machineName]\[userName]', '[userNameInDB]' > GO > EXEC sp_ addsrvrolemember '[userName]', 'sysadmin' > GO These steps are from this (excellent) tutorial: http://www.aspfree.com/c/a/MS-SQL-Server/Configuring-SQL-Server-Express-2005/ Finally, I made sure that the server was listening for the user I specified instead of some other user; that got rid of my Login Failed attempts. Then, it finally worked!:cool: -K

    Database database question csharp sql-server sysadmin

  • DB Connection Failure using C#
    C Cadence2 0

    Hey there. I just installed SQL Server express 2005 yesterday and I'm trying to connect to it using C# on Win 2000 SP4. I've never used SQL server so this is probably a novice question. I used the following connection string to connect SqlConnection conn = new SqlConnection("Data Source=localhost; Integrated Security=SSPI; Initial Catalog=pubs"); However, I get the following error: Exception Occured -->> System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2 005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error : 40 - Could not open a connection to SQL Server) I am running the SQL Server service. I see the sqlservr.exe in the taskbar but I'm not sure if it is actually running. Anyone know how I can connect to the sql server from C#? Thank you! -K

    Database database question csharp sql-server sysadmin

  • Connecting to SQL Server Express 2005 using C#
    C Cadence2 0

    Hey Everyone, Can you connect to SQL Server Express using C# or VB? I've been reading that SQL Server doesn't allow remote connections, but that does mean that I can't connect to a localhost database? I'm trying to create an application that will connect to a db on the same system. Thanks in advance! Karthik :suss:

    Database database csharp sql-server sysadmin question

  • Serial Communication (Loopback)
    C Cadence2 0

    And the solution is.... After you write to the port using a serial port object, use the readExisting method. DO NOT CLOSE THE PORT and then OPEN the port again to read. There is nothing stored in the buffer at that point. I can be so dumb sometimes. That's what I get for trying to modularize my program.

    C# question

  • Serial Communication (Loopback)
    C Cadence2 0

    led Mike, You are correct. I am using loopback to solve the problem, but my recieve thread won't fire, even if I have the recieve wait for a message. Hope that clears it up. Any suggestions? -Karthik

    C# question

  • Serial Communication (Loopback)
    C Cadence2 0

    Hey Everyone, I'm writing an app to test whether a serial port on a computer will work correctly and I'm using the principle of serial loopback. I'm using the SerialPort class from System.io.ports and using a serial port object to write to the port and then listen to see if there was any data recieved. However, I always get a timeout for the recieve portion, even when I put the recieve method into a Thread. Any ideas what I should try? Thanks in advance -Karthik

    C# question

  • Programmatically getting system information using C#
    C Cadence2 0

    That is perfect! Thanks a million. -K

    C# csharp performance question

  • Programmatically getting system information using C#
    C Cadence2 0

    Hey Everyone, This is my 2nd day using C# and so far it's been pretty cool. I'm trying to write an application that will return system information to me such as the processor type and RAM speed of a system. Any idea how I would go about that? Thank you in advance. -Karthik Gaekwad

    C# csharp performance question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups