delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/12/02:47:13

From: rdong AT newport DOT com (Rui-Tao Dong)
Subject: DLL fun
12 Jan 1999 02:47:13 -0800 :
Message-ID: <833e5hboiq.fsf.cygnus.gnu-win32@apollo.int.newport.com>
To: gnu-win32 AT cygnus DOT com

I decided to have some fun with the Dlltool.  I converted Matrox
framegrabber dll (MIL-lite) into unix archives and linked them into
code with Lesstif GUI.  I can now test and debug my application
remotely.  I am using VNC as my X-server which does not have shared
memory support.  Therefore, the live update is very slow.  This is
still way better than running MSVC debugger.

However, I have one minor problem.  Everytime the framegrabber pops up
an error message, it goes to the machine with the framegrabber not to
my local PC.  I tried to do something like

int __attribute__((stdcall)) MessageBoxA(int handle, char* msg, char* title, int type)
{
  fprintf(stderr, "%s: %s\n", title, msg);
  return 0;
}

int __attribute__((stdcall)) MessageBoxW(int handle, char* msg, char* title, int type)
{
  fprintf(stderr, "%s: %s\n", title, msg);
  return 0;
}

int __attribute__((stdcall)) MessageBoxExA(int handle, char* msg, char* title, int type, int word)
{
  fprintf(stderr, "%s: %s\n", title, msg);
  return 0;
}

int __attribute__((stdcall)) MessageBoxExW(int handle, char* msg, char* title, int type, int word)
{
  fprintf(stderr, "%s: %s\n", title, msg);
  return 0;
}


and link the module after the Matrox library.  It links OK, but error
message still pops up on the other machine.  For this particular
application, I can probably find otherways to get around this.  But is 
this doable in general?

-- 
Regards,

	Rui-Tao Dong			Newport Corporation
	rdong AT newport DOT com		1791 Deere Avenue
	(949)253-1679(Voice)		Irvine, CA 92606 USA
	(949)253-1240(Fax)		http://www.newport.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019