Topic: So, Stephen...  (Read 1961 times)

0 Members and 2 Guests are viewing this topic.

Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
So, Stephen...
« 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
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline Sirgod

  • Whooot Master Cattle Baron
  • Global Moderator
  • Vice Admiral
  • *
  • Posts: 27844
  • Gender: Male
Re: So, Stephen...
« Reply #1 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
"You cannot exaggerate about the Marines. They are convinced to the point of arrogance, that they are the most ferocious fighters on earth - and the amusing thing about it is that they are."- Father Kevin Keaney, Chaplain, Korean War

Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
Re: So, Stephen...
« Reply #2 on: January 07, 2005, 09:50:12 am »
Congrats, you get a cookie.
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline Sirgod

  • Whooot Master Cattle Baron
  • Global Moderator
  • Vice Admiral
  • *
  • Posts: 27844
  • Gender: Male
Re: So, Stephen...
« Reply #3 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
"You cannot exaggerate about the Marines. They are convinced to the point of arrogance, that they are the most ferocious fighters on earth - and the amusing thing about it is that they are."- Father Kevin Keaney, Chaplain, Korean War

Offline KBF-Angel Slayer

  • Lord High Master of Justice
  • Commander
  • *
  • Posts: 4104
  • Gender: Male
Re: So, Stephen...
« Reply #4 on: January 07, 2005, 01:31:04 pm »
So, how does one learn geek speak?


NPR is a lot like NASCAR.  Two hundred miles an hour in a circle, and you end up right back where you started with nothing but lost time for the effort.


Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline Sirgod

  • Whooot Master Cattle Baron
  • Global Moderator
  • Vice Admiral
  • *
  • Posts: 27844
  • Gender: Male
Re: So, Stephen...
« Reply #6 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
"You cannot exaggerate about the Marines. They are convinced to the point of arrogance, that they are the most ferocious fighters on earth - and the amusing thing about it is that they are."- Father Kevin Keaney, Chaplain, Korean War

Offline KBF-Angel Slayer

  • Lord High Master of Justice
  • Commander
  • *
  • Posts: 4104
  • Gender: Male
Re: So, Stephen...
« Reply #7 on: January 08, 2005, 07:12:33 am »
Looks like I have some homework...wheeeeee


NPR is a lot like NASCAR.  Two hundred miles an hour in a circle, and you end up right back where you started with nothing but lost time for the effort.


Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
Re: So, Stephen...
« Reply #8 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 programming tools.
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline KBF-Angel Slayer

  • Lord High Master of Justice
  • Commander
  • *
  • Posts: 4104
  • Gender: Male
Re: So, Stephen...
« Reply #9 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.


NPR is a lot like NASCAR.  Two hundred miles an hour in a circle, and you end up right back where you started with nothing but lost time for the effort.


Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
Re: So, Stephen...
« Reply #10 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();
    }
}
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista

Offline Sirgod

  • Whooot Master Cattle Baron
  • Global Moderator
  • Vice Admiral
  • *
  • Posts: 27844
  • Gender: Male
Re: So, Stephen...
« Reply #11 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
"You cannot exaggerate about the Marines. They are convinced to the point of arrogance, that they are the most ferocious fighters on earth - and the amusing thing about it is that they are."- Father Kevin Keaney, Chaplain, Korean War

Offline toasty0

  • Application.Quit();
  • Captain
  • *
  • Posts: 8045
  • Gender: Male
Re: So, Stephen...
« Reply #12 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?
MCTS: SQL Server 2005 | MCP: Windows Server 2003 | MCTS: Microsoft Certified Technology Specialist | MCT: Microsoft Certified Trainer | MOS: Microsoft Office Specialist 2003 | VSP: VMware Sales Professional | MCTS: Vista