Dynaverse.net

Off Topic => Ten Forward => Topic started by: toasty0 on January 07, 2005, 12:13:45 am

Title: So, Stephen...
Post by: toasty0 on January 07, 2005, 12:13:45 am
If you've been doing what you're supposed to be doing the following will make sense to you...

Code: [Select]
if (Q_stricmp(cmd, "radar") == 0)
{
  // I have removed the comments just to make you think
  cl_radarvisible = !cl_radarvisible;
  Radar::Console::Display(cl_radarvisible, cl_hwnd);
  return;
}

Well?  :o
Title: Re: So, Stephen...
Post by: Sirgod on January 07, 2005, 01:47:41 am
Heh, I admit That I haven't been studying much, But It looks like a little bit of Code to update a radar screen on a game.

Just Guessing, But It looks like If cl_radarvisable is positive when Checked, It would update the Display.

Like I said, I haven't had too much time yet to get really involved.

Stephen
Title: Re: So, Stephen...
Post by: toasty0 on January 07, 2005, 09:50:12 am
Congrats, you get a cookie.
Title: Re: So, Stephen...
Post by: Sirgod on January 07, 2005, 11:47:45 am
Wow, I finally got one of these Right. Now to go Tease Dallas, I'm on my way to Becoming a ToastyO like SuperGeek.

Stephen
Title: Re: So, Stephen...
Post by: KBF-Angel Slayer on January 07, 2005, 01:31:04 pm
So, how does one learn geek speak?
Title: Re: So, Stephen...
Post by: toasty0 on January 07, 2005, 09:39:54 pm
So, how does one learn geek speak?


Start with the light reading (you must read each page though)

http://www.research.att.com/~bs/bs_faq.html
http://blog.voidnish.com/index.php?p=11
http://pluralsight.com/blogs/hsutter/
http://www.aristeia.com/projects_frames.html

and

http://www.asp.net/Default.aspx?tabindex=0&tabid=1
http://msdn.microsoft.com/
http://msdn.microsoft.com/netframework/

and

http://msdn.microsoft.com/vcsharp/

and to keep it spicy...

http://www.hypergurl.com/easyhtml.html
http://www.w3.org/

Oh yeah, I almost forgot...

http://www.microsoft.com/windows/directx/default.aspx
http://developer.nvidia.com/page/home

Ok, sorry for the short list, but I'm pressed for time right now.

Jerry
Title: Re: So, Stephen...
Post by: Sirgod on January 07, 2005, 10:55:20 pm
LOL, and Trust me, Read this stuff. When I visited ToastyO he told me He'd post More Information, and he did. Even though I've been Remise, It's always good to know a little Codding. Then again, when someones pouring Crown Royal Down Your Throat like the Best friend he is, It's abit easier to learn new Skills.

 ;D ;D ;D ;D ;D

Stephen
Title: Re: So, Stephen...
Post by: KBF-Angel Slayer on January 08, 2005, 07:12:33 am
Looks like I have some homework...wheeeeee
Title: Re: So, Stephen...
Post by: toasty0 on January 08, 2005, 08:45:12 am
Looks like I have some homework...wheeeeee


If you're really serious about learning this stuff go here to get the latest beta of the upcoming  Visual Studio 2005 beta  (http://lab.msdn.microsoft.com/vs2005/Default.aspx) programming tools.
Title: Re: So, Stephen...
Post by: KBF-Angel Slayer on January 08, 2005, 08:53:15 am
I've been reading over it some today.  This stuff is a whole new language!  But I want to learn it, so this is the best way to do so.  Thanks for the links.  When I get my new compy (the one that can actually DO something!) I am going to download that and play with it.  Looks fun and exciting.
Title: Re: So, Stephen...
Post by: toasty0 on January 08, 2005, 09:13:11 am
Ok, Stephen...

1.) Which language is this? (C#, C++, or VB.NET)
2.) What are we trying to accomplish?

Code: [Select]
public void ConnectToSql ()
{
    System.Data.SqlClient.SqlConnection conn =
        new System.Data.SqlClient.SqlConnection ();
    // TODO: Modify the connection string and include any
    // additional required properties for your database.
    conn.ConnectionString =
     "integrated security=SSPI;data source=SQL Server Name;" +
     "persist security info=False;initial catalog=northwind";
    try
    {
        conn.Open();
        // Insert code to process data.
    }
        catch (Exception ex)
    {
        MessageBox.Show("Failed to connect to data source");
    }
    finally
    {
        conn.Close();
    }
}
Title: Re: So, Stephen...
Post by: Sirgod on January 08, 2005, 11:34:22 am
Ok, Stephen...

1.) Which language is this? (C#, C++, or VB.NET)
2.) What are we trying to accomplish?

Code: [Select]
public void ConnectToSql ()
{
    System.Data.SqlClient.SqlConnection conn =
        new System.Data.SqlClient.SqlConnection ();
    // TODO: Modify the connection string and include any
    // additional required properties for your database.
    conn.ConnectionString =
     "integrated security=SSPI;data source=SQL Server Name;" +
     "persist security info=False;initial catalog=northwind";
    try
    {
        conn.Open();
        // Insert code to process data.
    }
        catch (Exception ex)
    {
        MessageBox.Show("Failed to connect to data source");
    }
    finally
    {
        conn.Close();
    }
}

Well, I don't hink It's VB.net, then again, the only VB code I've seen is From VB6.0 .

My guess would be C++ since IT looks to be using alot of Sql commands.

Stephen
Title: Re: So, Stephen...
Post by: toasty0 on January 08, 2005, 10:37:27 pm
Ok, Stephen...

1.) Which language is this? (C#, C++, or VB.NET)
2.) What are we trying to accomplish?

Code: [Select]
public void ConnectToSql ()
{
    System.Data.SqlClient.SqlConnection conn =
        new System.Data.SqlClient.SqlConnection ();
    // TODO: Modify the connection string and include any
    // additional required properties for your database.
    conn.ConnectionString =
     "integrated security=SSPI;data source=SQL Server Name;" +
     "persist security info=False;initial catalog=northwind";
    try
    {
        conn.Open();
        // Insert code to process data.
    }
        catch (Exception ex)
    {
        MessageBox.Show("Failed to connect to data source");
    }
    finally
    {
        conn.Close();
    }
}

Well, I don't hink It's VB.net, then again, the only VB code I've seen is From VB6.0 .

My guess would be C++ since IT looks to be using alot of Sql commands.

Stephen

Good guess, but it is actually C# thought ther syntax  is very simular.

Now, what are we doing wth this code snippet?