www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/27/12:50:39

From: A White <awhite AT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: newbie: using rsxntdj
Date: Fri, 27 Feb 1998 12:33:50 -0800
Organization: Brinks SFB Solutions
Lines: 15
Message-ID: <34F7232E.58E5@sympatico.ca>
NNTP-Posting-Host: 206.172.192.170
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've made my first gnu c++/rsxntdj app, and it compiles and (mostly)
works okay.  My difficulty is that the MessageBox() call does not get
placed up on top of all windows.

So I found the function GetActiveWindow(), and passed the handle as the
first parameter to GetActiveWindow().  Unfortunately, it returns 0, even
if I have Visual Basic, or a DOS window in front.

If I had VB tell me the handle of it's window and I hard-coded this
number into my app, it does its job properly.

Any suggestions?

A White
(Please send a copy by email as well)
 >
> >* First, How can I just load the whole COFF file into memory and let the
> >whole thing run. Is that at all possible or is there more to be done before
> >the file runs.
> >* I suppose that the entries in the header files are converted to external
> >symbols. Do I have to do something's with these?
> >* Suppose I open the COFF file, locate a function, load that one into
> memory
> >and that return the pointer to the begin of that function to the user. I
> >don't think that's the right thing to do? If I use functions from the libc
> >library, how do I ensure that the routine has access to these? Do I need to
> >collect all the pointers to these routines that are already into memory
> (the
> >loading program) and give them to the function? How do I do this.
> >
> >Could somebody give me some guidelines so I can get starting at my
> loader???
> >
> >Foxe
> >
> >pginkel AT westbrabant DOT net
Hi,
	the last time I came into contact with coff was an older version of
djgpp using gdb (gnu debug)  I had to convert a .exe to .cof or
something.  When I went to dj201 I could not get gdb to load my file.  I
posted onto this news group and was told to update to the newer gdb and
the situation was resolved.  Best I've been able to tell cof is a type
of exe file used on some unix syatems.  I wonder why you are into that
since dj is intended for the PC?

		Regards Ian.

- Raw text -


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