I got a problem when try to move my progarm form solaris to linux.. here is the code in solaris,it will read the file "Xmfc" when running. #include Display *display; int main(int argc, char **argv){ .... XtToolkitInitialize(); strcpy(dpy,":0.0"); toplevel = XtAppCreateShell( NULL, NULL, applicationShellWidgetClass, display, NULL,0 ); manager = XtCreateWidget( "manager", xmBulletinBoardWidgetClass, toplevel, NULL, 0 ); XtManageChild(manager); |
|||

fredk
There can ba any number of
There can ba any number of problems. Where is the file? What are its permissions? What are the permissions of its directory and up?
It can also depend on environment settings, such as whether you have an environment variable RESOURCE_MANAGER set, or XUSERFILESEARCHPATH, or XAPPLRESDIR, etc.
try setting:
export XENVIRONMENT=Xmfc
where Xmfc is in the directory from which you execute your program.
rbleo
fredk .Thank you very much
fredk .Thank you very much for your advice.It's very helpful.
"XAPPLRESDIR=." is the answer
thanks again!!