Hi Folks!

First: Thanks a lot for all information I already found in this forum. But this 
time I couldn't find an information to make my program working.

I am using
FLTK 2
Visual Studio 2005

I wrote an application in DevCPP, I used several windows from FLTK and several 
other things like ProgressBars and so on. Now I had to pack the sourcefiles 
into a Visual Studio 2005 project. After many hours work from me and another 
developer the library could be compiled. Now we have some static libraries 
which we link in our application. Aver some time this worked to. But:

If I start my Application, it crashes as i want to show the mainwindow:

w->show(argc, argv); // w is of our own type MainWindow which inherits from 
Window. MainWindow has some buttons and a GlutWindow for OpenGL displays.

Visual Studio points me to line 177 of win32.h (in inlcude/fltk/...):

inline HWND xid(const Window*w) {return CreatedWindow::find(w)->xid;}

The error that visual studio tells me is:
First-chance exception at 0x0061930f in BoneVis.exe: 0xC0000005: Access 
violation reading location 0x0000000f.
Unhandled exception at 0x0061930f in BoneVis.exe: 0xC0000005: Access violation 
reading location 0x0000000f.

Seems to me that anything isn't initialized.

My questions:
- Could it be that the application needs a fltk-dll to run?
- Do i have to do anything with the class CreatedWindow?
- Are there any special commands vor linker, preprocessor, runtime, anyhting 
else who should be inserted for visual studio? I found the preprocessor options 
FL_DLL and FL_LIBRARY and added them, nothing changed.
- Any other ideas?

Cheers and thanks Raphael
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to