Newsgroups: comp.os.os2.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!grasp1!rol
From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
Subject: Making a DLL...
Message-ID: <1991Apr15.184434.14562@grasp1.univ-lyon1.fr>
Date: Mon, 15 Apr 1991 18:44:34 GMT
Organization: INSA Departement Informatique, Lyon, France
Keywords: DLL, System error..

Hi networkers,

    I'm trying to make a DLL for an OS/2 multi tasking program. I've written
my C program, compile it with the following options:
  cl -FPa -Alfu -DDLL -W3 -G2s -c prog.c
Then I link it with the following command:
  link prog /noi,dll.dll,,crtlib.lib doscalls.lib /nod,dll.def;
with dll.def containing:
  LIBRARY DLL
  DESCRIPTION 'my prog'
  EXPORTS
    _myproc  (with or without @1)

I then use it in another prog, but when I start it, I get the following message
SYS2070: Ths system could not demand load the
application's segment. DLL _MYPROC is in error.
For additional information also see message SYS0127.

My questions are : what does this message mean ? Where have I done an error ?
And where can I found a description of these messages ?????

	Thanks in advance.
	Please reply by Email at rol@grasp1.univ-lyon1.fr

 Paul Rolland, engineer [I hope :)] in July 91,
 Specialist of assembly on PC [Not too bad in fact :)],
 Trying to progress on Unix administration
 					   Email : rol@grasp1.univ-lyon1.fr 
