🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2961

Can not call a 16-bit (VC 1.5) from a 32 Bit app

#2961
From: S�bastien Jean
Date: Wed, 04 Nov 1998 00:00
123 lines
3732 bytes
Hi,

I need help to develop a 16-BIT DLL.


I'm using Microsoft Visual C++ version 1.52 (16 bits)



I choose

 Project type = Windows Dynamic-link library (DLL)

SO, when I build and compile the DLL file , there is not error message.
When I try to call, with VB 32bit under Win 95, or PowerBuilder 32-bit under
win95, one
of this 2 functions below... It's always say ...

 int OBRS_EnablePenClick
 int OBRS_DisablePenClick



   "Error opening obrspen.dll"



Maybe I forget to set something in Visual C ??!!

Can someone help me with my problem ??????? ASAP ??!!

A have to deliver something for friday......



Write my at sebastien.jean@cn.ca at any time....
or after 5pm.. at sebasj@arobas.net



Here find my DEF file

//--------------------------------------------------------------------
; ObrsPen.def : Declares the module parameters for the DLL.

LIBRARY      "OBRSPEN"
DESCRIPTION  'OBRSPEN Windows Dynamic Link Library'

EXPORTS
 OBRS_EnablePenClick
 OBRS_DisablePenClick
    ; Explicit exports can go here
//--------------------------------------------------------------------




Here the content of my .C file

//--------------------------------------------------------------------
#include <windows.h>
#include <direct.h>
#include <stdio.h>
#include <io.h>
#include <time.h>
#include <memory.h>
#include <string.h>

#include "obrspen.h"

//******************************************************
//
// Procedure: OBRS_EnablePenClick
//
// Description: This procedure activate the right click
//              on the pen driver.
//
// Input: None
//
// Output: None
//
//******************************************************
int FAR PASCAL OBRS_EnablePenClick(void){

bla bla bla

 return 1;
}


//******************************************************
//
// Procedure: OBRS_DisablePenClick
//
// Description: This procedure desactivate the right
//              click on the pen driver.
//
// Input: None
//
// Output: None
//
//******************************************************
int FAR PASCAL OBRS_DisablePenClick(void){

bla bla bla...

 return 1;
}


//--------------------------------------------------------------------



Here the content of my .H


//--------------------------------------------------------------------

int FAR PASCAL OBRS_EnablePenClick(void);
int FAR PASCAL OBRS_DisablePenClick(void);

//--------------------------------------------------------------------
Technical Details
Message-ID: <71qth8$73o$1@news.pubnix.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dfb,1e7144339b3cee2c,start
X-Google-Attributes: gid113dfb,public
X-Google-Thread: fa08f,1e7144339b3cee2c,start
X-Google-Attributes: gidfa08f,public
X-Google-Thread: 112bcc,1e7144339b3cee2c,start
X-Google-Attributes: gid112bcc,public
X-Google-Thread: 114950,1e7144339b3cee2c,start
X-Google-Attributes: gid114950,public
X-Google-Thread: fe37d,1e7144339b3cee2c,start
X-Google-Attributes: gidfe37d,public
X-Google-Thread: 105df1,1e7144339b3cee2c,start
X-Google-Attributes: gid105df1,public
X-Google-Thread: f935d,1e7144339b3cee2c,start
X-Google-Attributes: gidf935d,public
From: "S�bastien Jean" <sebasj@arobas.net>
Subject: Can not call a 16-bit (VC 1.5) from a 32 Bit app
Date: 1998/11/04
Message-ID: <71qth8$73o$1@news.pubnix.net>
X-Deja-AN: 408499189
Organization: PubNIX Montreal http://www.pubnix.net
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.vxd,comp.os.ms-windows.programmer.win32,francom.programmation,microsoft.public.win16.programmer.gdi,microsoft.public.win16.programmer.kernel,microsoft.public.win16.programmer.pen,micr