The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CRC Code namrata5 High Level Programming 3 10-08-2007 11:01 AM
how i prepare a c++ code(c code) for implementing my own protocol format amitpansuria High Level Programming 1 09-07-2007 12:09 AM
Embedding Perl construct in ksh... svetlur Shell Programming and Scripting 1 06-07-2007 10:39 PM
SSH key code versus server key code Texan Security 1 04-12-2006 12:57 PM
Return code from PL/SQL Code Shaz UNIX for Advanced & Expert Users 7 06-03-2003 11:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2007
lesnaubr lesnaubr is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 6
Embedding xnest in C code

I hope I am posting this in the right section.

I have c file that is using the motif GUI toolkit to draw widgets and things of that sort. I also have another program that runs with xnest. I need to figure out a way to place that xnest program in my c code so that it exists in the window that the c code brings up.

Any ideas would be appreciated and thank you in advance.
  #2 (permalink)  
Old 08-10-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by lesnaubr View Post
Any ideas would be appreciated and thank you in advance.
Xnest -display display-variable -parent your-window-id ...
  #3 (permalink)  
Old 08-13-2007
lesnaubr lesnaubr is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 6
What are those?

Does "display-variable" refer to the window ID of the window I want to embed or something and does "your-window-id" refer to the parent window in which the other window will be embedded?
  #4 (permalink)  
Old 08-13-2007
lesnaubr lesnaubr is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 6
Putting it in C

I also do not know how I would put that Xnest command in a C file. The C compiler of course gives errors when I just put Xnest -options....
  #5 (permalink)  
Old 08-13-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
1. the display refers to the DISPLAY variable, and would be some like 127.0.0.1:0.

2. the -parent id refers to the window id that you want to be the parent of the Xnest window.

3. Xnest is a program not a C procedure call. Use C's "system()" or "spawn()".
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0