Mark Michaelis' Weblog :
Updated: 9/1/2004; 7:04:08 AM.

 








Subscribe to "Mark Michaelis' Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Subscribe To
Mark's Weblog

 
 

Monday, August 11, 2003

Some things are easier in C++
Google Search It

While porting a C/C++ console application to C# I came across a construct that there doesn't seem to be any C# equivalent for.  Here is the C++ code:

#include <iostream> // input and output functions
using namespace std;

void main()
{
    double i;
    // Prompt for the summation equation
    cout << "Enter the summation equation (e.g. 3+4.2-5=):";

    // Assume user enters 9.2+15+3=
    // Read in the first number and write it out.
   
cin >> i;

    . . .
}

The problem is that  cin >> i automatically retrieves the double portion of the text entered by the user.  To my knowledge, there is no equivalent C# construct.  Instead string parsing (perhaps regular expressions) is in order.


11:51:53 PM   []    comment []

OpenGL Support from Managed Code
Google Search It

I recently participated in a rather heated discussion as to whether .NET had anything to offer to graphic intense type desktop applications.  One of the questions that arose was about support for OpenGL.  I briefly took the time to investigate this and here is what I came up with:

  • CSharp Graphics Library (CsGL) - implements a wrapper for OpenGL
  • Using OpenGL with VB.NET - Article on using OpenGL from VB.NET.
  • Quake II.NET - A managed port of Quake II.
  • Tao.OpenGl - NET binding implementing OpenGL 1.1, GLU 1.3, and GLUT 3.7.6
  • Tao.OpenAL - .NET binding implementing OpenAL 1.0
  • CS-SDL - SDL.Net provides access to SDL and associated libraries from any .Net enabled language.
  • MS doesn't plan on providing OpenGL wrappers any time soon according to this chat.
  • According to Microsoft's Robert Hess, "C# should be perfectly fine for writing OpenGL apps with."
  • DirectX 9.0 for Managed Code - A preliminary managed spec. for DirectX.

8:50:42 PM   []    comment []

© Copyright 2004 Mark Michaelis.



 


August 2003
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Jul   Sep


Recent Posts