delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/24/10:53:55

From: rjentsch AT HTWM DOT De
Subject: problem: create a dll
24 Apr 1998 10:53:55 -0700 :
Message-ID: <3540720E.95D483A.cygnus.gnu-win32@htwm.de>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hello

I would create a dll under win95, but it doesnt work. 
The example from cygnus also doesnt work.
The compiler report no errors and create a dll and an executable, but if
i try to execute the program, my system says only "unknown file format".

For the example i use the dlldemo.bat with all of the c,h,def - files

dll.c
--------------------------------------------
#include <windows.h>

int test()
{ 
  return 3;
}


WINAPI dll_entry(int a,int b,int c)
{
  return 1;
}


exe.c
---------------------------------
#include <stdio.h> 

const char *in_a_dll(char a);
 
main() 
{ 
  printf("Hello here I am ");
  printf("%d\n", test); // If I delete this line the program starts
}
-
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