Libraries in new version of Solaris functionally similar to suntools

Please find a C++ program attached . This program was used by my Professor a few years back and it uses some libraries in Suntools: sunview, canvas, etc. Since Suntools is no longer in use in the present versions of Solaris, I am not able to run the program. Please have a look at the C++ program and provide me with some information about the libraries to be included which could carryout the same function as sunview,canvas etc.
Thank You
filename="sun.c"
#include <stdio.h>
#include <suntool/sunview.h>
#include <suntool/canvas.h>
#include <suntool/panel.h>
#include <suntool/tty.h>
static Frame frame;
static Canvas canvas;
static Panel panel;
static Pixwin *pw;
static Tty tty;
Panel_item fname_item1, fname_item2;
int screenxsize, screenysize;
float factor;
static void inputdata(), mesh(), pressure(), laser(), quit_proc(),
resize_proc(),
velocity(), horivel(), vertvel(), streamline(), vorticity();
main(argc, argv)
int argc;
char **argv;
char name, getenv();
/* try to quick check that we are in suntools */
name = getenv("WINDOW_ME");
if (!name)
fprintf(stderr, "Apparently not in suntools.\n");
fprintf(stderr, "Are you running this on the machine in front of
you?\n");
exit(0);
frame = window_create(NULL, FRAME,
WIN_WIDTH, 640,
WIN_HEIGHT, 693,
FRAME_ARGS, argc, argv,
FRAME_LABEL, "CFD Lab (Lin)",
0);
panel = window_create(frame, PANEL, 0);
/* make a panel at the top that reads a file name and has "doit" and
"quit" buttons */
create_panel_items();
/* create a canvas below to draw into */
canvas = window_create(frame, CANVAS,
CANVAS_RESIZE_PROC, resize_proc,
0);
/* make a pixwin */
pw = canvas_pixwin(canvas);
/* start the window up */
window_main_loop(frame);
exit(0);
create_panel_items()
fname_item1 = panel_create_item(panel, PANEL_TEXT,
PANEL_LABEL_STRING, "Plot File: ",
PANEL_VALUE, "plot.data",
PANEL_VALUE_DISPLAY_LENGTH, 30,
0);
/* make the button that will cause execution */
fname_item2 = panel_create_item(panel, PANEL_TEXT,
PANEL_LABEL_STRING, "Result File: ",
PANEL_VALUE, "result.data",
PANEL_VALUE_DISPLAY_LENGTH, 30,
0);
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel,
"inputdata", 15, 0),
PANEL_NOTIFY_PROC, inputdata,
0);
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel, "mesh",
15, 0),
PANEL_NOTIFY_PROC, mesh,
0);
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel,
"pressure", 15, 0),
PANEL_NOTIFY_PROC, pressure,
0);
/* make the button that will delete the window when you are done */
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel, "print",
15, 0),
PANEL_NOTIFY_PROC, laser,
0);
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel, "quit",
15, 0),
PANEL_NOTIFY_PROC, quit_proc,
0);
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel,
"velocity", 15, 0),
PANEL_NOTIFY_PROC, velocity,
0);
panel_create_item(panel, PANEL_BUTTON,
PANEL_LABEL_IMAGE, panel_button_image(panel,
"HoriVel", 15, 0),
PANEL_NOTIFY_PROC, horivel,
0);

Hi ,
Have you set UseAccounts=true in config.cfg for the new environment ?
Thanks
Srinath

Similar Messages

  • What about the XGL library in the newer versions of Solaris??

    Hi all!
    I've been realized that since the release of Solaris 8 up to now the XGL graphics library that is necessary to run programs with a 3D advanced functions (like CATIA V4) is no longer included!
    Does anybody now where I can download this library for my Solaris 10? I've searched everywhere in sun.com and in Google but there's no trace of it.
    There's also no trace of any Solaris release earlier to the 8th; I would be grateful if anyone could indicate me where can I get it if I can't download XGL...
    Thanks a lot!
    Regards,
    Freeman

    Hi all!
    I've been realized that since the release of Solaris 8 up to now the XGL graphics library that is necessary to run programs with a 3D advanced functions (like CATIA V4) is no longer included!
    Does anybody now where I can download this library for my Solaris 10? I've searched everywhere in sun.com and in Google but there's no trace of it.
    There's also no trace of any Solaris release earlier to the 8th; I would be grateful if anyone could indicate me where can I get it if I can't download XGL...
    Thanks a lot!
    Regards,
    Freeman

  • Can't opening libraries in newer version of Aperture 3.5.1 - Please help!

    I just updated to Aperture 3.5.1 from version 3.0.  When I try to open a prior library with menu option:  File => Switch to Library => Other/New => Select Existing Library, I get a message to "Relaunch" Aperture with the new library.  I try this, but my older version library does not open and I cannot access my photos.  I hope this is a simple solution that this community can help me resolve.

    Try to double click the old library in the Finder, to open it directly in Aperture.
    Is the old library on your system drive or an external drive?

  • Loss of functional​ity in new version

    Beware of the new version of Blackberry Desktop if you are using Desktop Redirectory.  It is missing in the new version.  I have to uninstall and downgrade to the old version to get it back.
    If you have an exchange server but no BES server, you must rely on desktop redirector to get mail on your device.
    Is this a new trend for software manafactures?  Create new versions and lose function the old versions had?  I thought Microsoft was the only one that did that!

    Apple has removed that feature along with several others, but
    (5/12/2012) Missing 'Find Duplicates' feature in iTunes 11 to be restored - http://reviews.cnet.com/8301-13727_7-57557280-263/missing-find-duplicates-featur e-in-itunes-11-to-be-restored/    "Some of the features Apple has removed from iTunes will see a return, but others may indicate changes to come elsewhere in Apple's product lines."
    Until then you will have to resort to sorting by a particular label such as artist and manually scanning, third party utilities such as Dougscripts Dupin (Mac) or https://discussions.apple.com/message/20570956 (Windows) to deal with duplicates, or revert back to iTunes 10.7.

  • I have 3 iTunes libraries on my one one computer and since I updated to the new version I can no longer see who's library I am in. It used to show at the top of iTunes the name of the library I was in.  Is there a way I can tell which library I am in?

    I have 3 iTunes libraries on my one one computer and since I updated to the new version I can no longer see who's library I am in. It used to show at the top of iTunes the name of the library I was in.  Is there a way I can tell which library I am in without closing and reopening?

    No. Frequently the apps take up more storage space on the iPod that the file download size.

  • When I upgraded to Firefox 4.0 I saw a message that said the new version was no longer compatble with CLIPMATE. What can I do now? Are there similar clipping extensions?

    When I upgraded to Firefox 4.0 I saw a message that said the new version was no longer compatible with CLIPMATE. What can I do now? Are there similar clipping extensions?

    I named the wrong program. It should be CLIPMARKS, sorry.

  • Cannot open imovie libraries created "with a newer version" (false!)

    First of all, excuse me for my bad english!
    I've an iMac 21.5'', fall '09 series. I'm not an expert user (I use Windows at work) and I use the Mac just for fun, when I have time.
    A couple of months ago, I've updated to Maveriks. Then I try to update my iLife '11, too, but the Apple Store didn't show me the "update" option. Following some italian blogs tips, I change the language preferences and that let me able to update iLife. iMovie updated my video libraries and everythings works fine. 
    Yesterday, after a long period, I switched my iMac on, and check for software updates. Then I updated iPhoto and iMovie. Again, iMovie updated my libraries, and everythings works fine.
    Then I choose "update all", the system prompted me asking my AppleID and pwd, the default language switched to italian, and all updates takes places.
    On restart, "software updates" re-show me again iPhoto and iMovie, and other updates. I choose "update all", and the system reinstall iMovie among the others.
    When I open iMovie, it prompted me with a "choose a library" messages, but whatever library I choose, it alert me with a messages that claim something like "cannot open this library, because it was created with a newer version of iMovie".
    The problem is that "the newer version" is the "same" version (10.0.2) - exept for the different languages preference settings, and I dont' wanna wait until the next iMovie version to update my libraries
    Can anyone help me to resolve this issue?

    ...It was so bad my English?

  • I'm in trouble, my iPod Touch is giving 4th shock when recharge and the battery does not last any more. who knows or has a similar problem, please help me. Note: all this after I downloaded the new version OS5.

    I'm in trouble, my iPod Touch is giving 4th shock when recharge and the battery does not last any more. who knows or has a similar problem, please help me. Note: all this after I downloaded the new version OS5.

    I would make an appointment at the Genius Bar of an Apple store because of the shock issue. I doubt it was caused by the update.

  • I can't view old iphoto libraries. It wants me to use a new version of iphoto but from all the commits here, no one likes it. Help! how do i get to my old libraries???

    I can't view old iphoto libraries. It wants me to use a new version of iphoto but from all the commits here, no one likes it. Help! how do i get to my old libraries???

    With the amount of information you've provided it's impossible to offer a potential solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    what do you see when iPhoto opens?
    what fixes have you tried?
    where is you library located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library?
    what type of Mac?
    how much free space on your boot drive?
    OT

  • Missing the filter function in the new version of Spotify? Come over here.

    Hi folks,
    Many of you have requested we re-add an option to filter from artist, album and playlist pages in Spotify. We're considering this feature for newer versions of the application but we're investigating the best solution. Therefore, we have a question which will help us make this feature even better than before:
    What did you mainly use the filter function in Spotify for? 
    Please reply to this thread with your answer.

    @Spotify What sort of kind of question is this? Are you implying that no one at Spotify has a basic understanding of usability? It sure seems like it. First, I have to ask why would Spotify ever remove a feature that is in active use? Second, why do the product managers/developers at Spotify not understand the existing use of "find" or "filter"? The reason this feature was put into the product is the reason it should stay in the product. This sort of functionality has existed in computer interfaces for decades. Visual search (i.e. having a human being visually scan every item manually) is very slow and prone to error. When there is more than a little information on the screen, having the computer search for the human is much more efficient and less prone to error. I would suggest everyone at Spotify get as much remedial education as possible in usability. Here's a place to start: What — Definition of UsabilityUsability is a quality attribute that assesses how easy user interfaces are to use. The word "usability" also refers to methods for improving ease-of-use during the design process.Usability is defined by 5 quality components:Learnability: How easy is it for users to accomplish basic tasks the first time they encounter the design?Efficiency: Once users have learned the design, how quickly can they perform tasks?Memorability: When users return to the design after a period of not using it, how easily can they reestablish proficiency?Errors: How many errors do users make, how severe are these errors, and how easily can they recover from the errors?Satisfaction: How pleasant is it to use the design?There are many other important quality attributes. A key one is utility, which refers to the design's functionality: Does it do what users need?Usability and utility are equally important and together determine whether something is useful: It matters little that something is easy if it's not what you want. It's also no good if the system can hypothetically do what you want, but you can't make it happen because the user interface is too difficult. To study a design's utility, you can use the same user research methods that improve usability.Definition: Utility = whether it provides the features you need.Definition: Usability = how easy & pleasant these features are to use.Definition: Useful = usability + utility.Even using these basic principles, it is easy to see the reasons that Ctrl/Cmd-F should be put back into the product. Measure how long it takes users to find music on a long playlist or long search results page without Ctrl/Cmd-F. And then measure with it. The only failures with the original design of find/filter were (a) that it was less discoverable than it should be in the GUI, i.e. no GUI icon cue and (b) it didn't filter/find using substrings very well or at all. It pains me be a customer of a company where the original wisdom of the people who built the UI of the v0.8.5 client (and previous versions) has apparently been flushed down the drain.  

  • The previous version of Itunes had a function where I could identify duplicate songs in my iTUNES library.  I cannot find this function in the new version of iTUNES.

    The previous version of Itunes had a function where I could identify duplicate songs in my iTUNES library.  I cannot find this function in the new version of iTUNES.
    Please advise where this is in the new version?

    The show duplicates/show exact duplicates features have been left out of iTunes 11. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file.
    There is also my DeDuper script if you don't want to do it by hand. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    tt2

  • Eval function problem in new version

    Hello,
    I was using obiee 11.1.1.5 now migrated to 11.1.1.6.
    Now there is a report where i use Evalaute function but in new version its giving me following error while running the report
    [nQSError: 43113] Message returned from OBIS. EVALUATE_SUPPORT_LEVEL inside NQSConfig.INI is not set to support EVALUATE. (HY000)
    Previous version i don't rem setting anything in Config file.
    Thanks

    Changes to the NQSConfig.ini
    under the [SERVER] section
    add (if exists, please change) following line
    EVALUATE_SUPPORT_LEVEL = 2;
    Save and re-start BI Server.

  • How can I perform the LINEST function using the new version of Numbers? The old method of using "command enter" to complete the array function does not work. Please help ASAP!!!

    LINEST function using Numbers for Mac

    Thank you for your help. This page is somewhat helpful, but I still don't quite understand.  I am using the Numbers program, and my assignment calls for me to use the LINEST function to return a set of 10 values. 
    When I googled how to do this, a lot of pages mentioned hitting "command+enter" to complete the array function, but they were using an older version of Numbers and it doesn't do anything when I try it in the new version.  I tried using "Index" with LINEST, and i've managed to get about 5 values out of it.

  • Downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    You could just disable updates. Change these settings in about:config.
    * app.update.auto - set to false
    * app.update.enabled - set to false
    You can still check for updates with the "Check for Updates" button in the About Firefox window, but it will download the update file anyway if there is an update available. You can also check which is the current release from here:
    * http://sjc.mozilla.com/en-US/firefox/new/

  • Do i need to upgrade from OS X 10.5.8 to a new version to be allowed to be able to use the print function of Iphoto 08 ?

    Do i need to upgrade from OS X 10.5.8 to a new version to be allowed to be able to use the print function of Iphoto 08 ?

    You can upgrade to iPhoto '09 with a purchaed iLife '09 DVD - or yu can upgrade your OS and purchase an iLife '11 DVD
    Eitehr shuld be aviailable from amazon, eBay an dother places
    LN

Maybe you are looking for

  • No audio in some of the video clips in my project CS5.5

    Hi, I'm in need of some help. I've been working on this project which has been lying on ice for a while. During that while my system disc crashed, but I had the project file and source files backed up to my external HDD. I accually ran the project fr

  • Warning: While Running sapgenpse

    Hi, WARNING sapgenpse WARNING: Environment variable "USER" not defined! I am getting warning message while running sapgenpse, i am successfully able to execute the sapgenpse utility for generating Key, importing key, but while executing following com

  • Can we rename the system generated constraint_name as per our convenience ?

    I created a table by CREATE TABLE table_name AS (SELECT * FROM existing_table_name WHERE 1=2); and got the all constraints of the existing table with default names. I want to rename those constraints as per current table data. thank you in advance Ed

  • CS Device Update error

    Hi againg I'm asking for help. I had Ciscoworks LMS R3.1 with CS R3.2, CM R5.1.4, RME R4.2.0, DFM R3.1.3 and I having a headache trying to update the deviced package on CS for RME. I had download already the package from the web, and when i tried to

  • Paragraph going to overset text when it shouldn't

    InDesign CS Version 3.0.1 (2003) for Windows - I've been using this software on an HP desktop 5 days a week for about 2 yrs now, and I've never encountered this problem before. (I am by no means an expert.) I've got an 8 1/2 x 11 document, 1/2" margi