LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"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



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 15 02-18-2022 08:09 AM
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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration