🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #485

writing c dll for visual

#485
From: boon chew
Date: Tue, 29 Sep 1992 23:54
37 lines
1403 bytes
Without more information :-

Is your DLL in a place that is accessible ?
The DLL should be in the \WINDOWS directory or the same directory
as the program that calls it.


Prototyping your function in C should be something like:-

void FAR PASCAL function_name (LPSTR lpstring);

The key here is the FAR and PASCAL keyword.


The corresponding VB declaration should be :-

Declare Sub function_name Lib "FUNCTION.DLL" (ByVal lpstring As String)

I do not know about passing by reference, my example show passing by
value.

I am also assuming you know how to create a DLL for VB. Like the
section of header code that identifies the DLL entry point.
The definition file that indicate the function for "EXPORT" among
other things.



B.L.Chew
Toronto

P.S. Did this message really came all the way from Singapore.
---
 þ DeLuxeýáb #2714 þ Now using Qmail DeLuxeý...and loving it!
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Technical Details
Message-ID: <1992Sep29.3449.657@dosgate>
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!unixbox!dosgate!dosgate![boon.chew@canrem.com]

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!unixbox!dosgate!dosgate![boon.chew@canrem.com]
From: "boon chew" <boon.chew@canrem.com>
Subject: writing c dll for visual
Message-ID: <1992Sep29.3449.657@dosgate>
Reply-To: "boon chew" <boon.chew@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 29 Sep 92 18:54:55 EST
Lines: 37