LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-28-2005, 03:31 PM   #1
vmok82
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
Unhappy creating a window in linux with a 'window' variable??! (openCV)


Hi !

I need some help with window creation in Linux.
I'm programming with a C library (OpenCV) to use my camera.

My problem is : I have to give a 'Window' variable type to the function which displays a picture (OpenCV -> cvcam -> cvcamSetProperty() )..

The windows equivalent is HWND, and it works fine in windows, unfortunately my task is to migrate this code to 'nix and I can't get it working T_T

I can't seem to find any kind of reference of any kind of Window type anywhere so I thought maybe I was missing some kind of core X11Lib or something. I'd like to know if anyone knows of it or if I have to try and use something like GTK (which i've never used before)

I would be very happy if someone can tell me how to create a window by myself and get this f*#@?ng 'Window' variable..

Thanks in Advance!
 
Old 02-28-2005, 03:38 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,503

Rep: Reputation: 174Reputation: 174
"I can't seem to find any kind of reference of any kind of Window type anywhere so I thought maybe I was missing some kind of core X11Lib or something. I'd like to know if anyone knows of it or if I have to try and use something like GTK (which i've never used before)"

I suggest that you use either Gtk+ or Qt. Both of them have been ported to Windows. So if you rewrite your program using either Gtk+ or Qt then you could have a single version of your program that can be compiled and run on a wide variety of hardware and software including Wintel.

------------------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. defa0009 Linux - General 13 01-20-2012 02:55 PM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 8 08-30-2005 10:22 AM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 2 08-15-2005 04:38 PM
Creating a countdown timer window in Fedora Core statman Linux - Software 0 06-18-2005 04:42 PM
How to get 'Window' variable from a 'Widget' variable bordel Programming 0 11-19-2003 03:19 AM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration