Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - NimrodsSon

Pages: [1]
1
DotNet / Audio Trouble
« on: August 13, 2010, 10:09:09 am »
32-bit.  

I think I figured out what I did wrong.   :oops:   I set my PATH environment variable to the directory of extlibs so windows would find them, but it doesn't seem to find openal32.dll.  I don't get it, but if I just copy it to the directory of the exe it works.

2
DotNet / Audio Trouble
« on: August 13, 2010, 09:37:56 am »
I've got openal32.dll and libsndfile-1.dll in the same directory as the csfml dlls.

3
DotNet / Audio Trouble
« on: August 13, 2010, 04:40:18 am »
Ugh, I'm sorry, I seem to be nothing but one problem after the next. :oops:

So I've moved on to the audio part of the tutorial, but I keep getting this error:

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'csfml-audi
o': The specified procedure could not be found. (Exception from HRESULT: 0x80070
07F)

The csfml-audio.dll is in the same directory as the other csfml dlls.  The precompiled sound sample in the .NET package runs, but when I compile the source the resulting exe will give the same error.  

I'm using Visual C# 2010 Express.  

Sorry to be such a bother.  :(

4
DotNet / Problem with Shapes.
« on: August 08, 2010, 04:00:35 am »
Thanks for the tip, but I actually went to both ATI and Dell.  I honestly can't find anything newer.  It's a very odd problem, something must be screwed up on my machine. *sigh*

Thanks for the help.

5
DotNet / Problem with Shapes.
« on: August 07, 2010, 07:04:53 pm »
Just checked again and my ATI Mobility Radeon x1300 is up-to-date as far as I can tell.

6
DotNet / Problem with Shapes.
« on: August 07, 2010, 05:58:56 pm »
All of the samples included with the .NET package seem to work.  I did a program working with sprites and it seemed to work, though on exit it prints:

Failed to set pixel format for device context-cannot create opengl context

on the console.

This is kind of weird, but I had restarted my computer this morning, tried the program I posted above and it worked several times, then I opened up Visual C# 2010 express (didn't even open the project) and it wouldn't display the shapes again when I tried to run it.  I've been getting the same inconsistent behavior since.  Whether Visual C# is opened or not.

7
DotNet / Problem with Shapes.
« on: August 07, 2010, 07:55:14 am »
I'm new to all of this, so perhaps I'm overlooking something, but I've been trying to draw some simple shapes to the screen and haven't had much luck.  The problem is kind of inconsistant so it's hard to explain, but when I start my app I can see the shapes flash in the window sometimes, but then they just disappear.  Other times they don't show up at all.  I haven't been able to discern a pattern.  

I'm using SFML 1.6.  I can't really think what I may be doing wrong.

Code: [Select]

class Program
    {
        static RenderWindow mainWindow = new RenderWindow(new SFML.Window.VideoMode(800, 600, 32), "SFML Shapes");


        static void Main(string[] args)
        {
            Shape line = Shape.Line(new Vector2(0, 300), new Vector2(800, 300), 30, new Color(255, 0, 0));
            Shape triangle = new Shape();
            triangle.AddPoint(new Vector2(400, 100), Color.White);
            triangle.AddPoint(new Vector2(700, 500), Color.White);
            triangle.AddPoint(new Vector2(100, 500), Color.White);

            mainWindow.Closed += new EventHandler(mainWindow_Closed);

            while ( mainWindow.IsOpened() )
            {
                mainWindow.DispatchEvents();
                mainWindow.Clear();

                triangle.Rotation += .1f;
                mainWindow.Draw(line);
                mainWindow.Draw(triangle);
                mainWindow.Display();
            }
        }

        static void mainWindow_Closed(object sender, EventArgs e)
        {
            mainWindow.Close();
        }
    }

Pages: [1]