🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1402

Re: VB3.0��BC3.1��DLL�������!!!

#1402
From: ʯ������
Date: Tue, 07 Apr 1998 00:00
42 lines
1898 bytes
�� �� Zhou_Yuanwei@bbs.ustc.edu.cn (����) �Ĵ������ᵽ: ��
: ��BC3.1�ж�������dll,�������Ϊc:\temp\tdll.dll
: #include <windows.h>
: int FAR PASCAL LibMain(HANDLE hInstance,WORD wDataSeg,WORD wHeapSize,
:                       LPSTR lpszCmdLine)
: {
:       if(wHeapSize!=0)
:               UnlockData(0);
:       return(1);
: }
: int FAR PASCAL test(int a,int b)
: {
:       int c;
:         c=a+b;
:       return c; 
: }
: ��VB3.0��ģ��������¶���
: Declare Function test Lib "c:\temp\tdll.dll" (ByVal a%, ByVal b%) As Integer
: Ȼ����һcommand�ؼ����¼�click�µ���
: Sub Command1_Click()
: a=5
: b=6
: c=test(a,b)
: End Sub
: ���к�,����command1�����:Sub or Function not defined
: ����ָ��.


--
��һ����������
1. BC31������ΪCģʽ(��C++ģʽ)
2. *.DEF �ļ��з���EXPORTS



                 ʯ������

��û��Ǯ��Ҳû�еط�����ֻ�й�ȥ.    �Ҳ�������Ҳ���ɺޣ���Ϊ�Ҳ�����.
��˵�ö࣬Ҳ��ö࣬��Խ��Խû����.  ����������Ҳ�����ӱܣ��ɾ����޷�����.

�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: e247szy.nju.edu]
Technical Details
Message-ID: <3O1HKk$tz7@bbs.nju.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,cc52e9633d3ef3ca,start
X-Google-Attributes: gidfc86e,public
From: pest.bbs@bbs.nju.edu.cn (ʯ������)
Subject: Re: VB3.0��BC3.1��DLL�������!!!
Date: 1998/04/07
Message-ID: <3O1HKk$tz7@bbs.nju.edu.cn>
X-Deja-AN: 342174994
X-Filename: Programming/M.891964654.A
Organization: nju_bbs
Newsgroups: cn.bbs.comp.program