About use SDL in QT

Hello ,
I met a problem when I try to use SDL in QT. I writed a envionment
variables so that the SDL could read the window handle ,but the QT’ problem
unable to run and crashed . Why? Thanx!_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it’s FREE!
http://messenger.msn.com/

gcc chentob wrote:

Hello ,
I met a problem when I try to use SDL in QT. I writed a envionment
variables so that the SDL could read the window handle ,but the QT’
problem unable to run and crashed . Why? Thanx!

I can almost guarantee you’ve not supplied enough information for us to
help you. Things of interest would be:

  1. Example source code (minimal code example required to reproduce the
    buggy behavior)
  2. OS and Version (Stable linux debian, Windows 2K SP 2, etc)
  3. Compiler version (GCC 3.3.1, GNU ld 2.15.91)

If what you’re saying is that your trying to share window handles
accross two different programs via environment variables, wheither or
not this will work will probably depend on the OS. You should also check
that you are in fact reading the correct variable.

You should also use a debugger to find out exactly where in your code
this is crashing (add a comment to your example code showing where,
assuming simply finding out where it crashes does not help you solve
your own problem).

-Mike