[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2937.0. "applicationShellWidgetClass does not seem to be defined by fortran compiler" by PEACHS::GILBERT (...You say why, I say I dont know) Thu Jun 14 1990 18:26

I got a program from a customer who is trying to do an XT$APP_CREATE_SHELL
in fortran.  The program dies with the error: 

X Toolkit Error: XtCreateApplication Shell requires non-NULL widget class
%DWT-F-DWTABORT, xtoolkit fatal error
%TRACE-F-TRACEBACK, symbolic stack dump follows...

The code follows, and is compiled and linked with:
$ fortran/extend DECW_TEST
$ link/nodebug -
	DECW_TEST, -
	sys$input/opt
	sys$library:decw$dwtlibshr/share

If anyone has any thoughts on this, please lemme know.
Thanks,
Jeff
T.RTitleUserPersonal
Name
DateLines
2937.1COMICS::FISCHERUK Workstations SupportFri Jun 15 1990 12:115
I had this problem once. Importing the MIT C routine XtAppCreateShell() into 
the Fortran code should work OK. I think the problem is with the VAX binding.


Ian
2937.2The CodePEACHS::GILBERT...You say why, I say I dont knowFri Jun 15 1990 12:3854
Oops, forgot to include the code, Here it is.

re .1
Thanks I'll try it.

C  Toolkit apparently not initializeing properly
C
	program DECW_TEST
	
	implicit none

	include 'SYS$LIBRARY:DECW$DWTDEF'

	integer*4	MDA_EX_application_context /0/
	integer*4	MDA_EX_default_display_id /0/
	integer*4	MDA_EX_shell_widget /0/

	record /DWT$ARG/    arg_list(0:4)

	integer*4   argc /0/

	call XT$TOOLKIT_INITIALIZE()

	MDA_EX_application_context = XT$CREATE_APPLICATION_CONTEXT()
	MDA_EX_default_display_id = XT$OPEN_DISPLAY(
     &						    MDA_EX_application_context,
     &						    'DECW$DISPLAY',
     &						    'MDA_EX_MM',
     &						    'MDA_EX_MM_class',
     &						    %VAL(0),
     &						    0,
     &						    argc,
     &						    arg_list)
	if(MDA_EX_default_display_id .eq. 0) then
	    type *, 'Can''t open default display'
	    call EXIT
	endif

	call DWT$VMS_SET_ARG(
     &			     DWT$C_TRUE,
     &			     arg_list,
     &			     0,
     &			     DWT$C_NALLOW_SHELL_RESIZE)
	argc = 1
	MDA_EX_shell_widget = XT$APP_CREATE_SHELL(
     &						  'MDA_EX_MM',
     &						  applicationShellWidgetClass,
     &						  MDA_EX_default_display_id,
     &						  arg_list,
     &						  argc)
	pause
	call EXIT
	end