Thread View: cn.bbs.comp.program
1 messages
1 total messages
Started by ʯ������
Tue, 07 Apr 1998 00:00
Re: VB3.0��BC3.1��DLL�������!!!
Author: ʯ������
Date: Tue, 07 Apr 1998 00:00
Date: Tue, 07 Apr 1998 00:00
42 lines
1898 bytes
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
ʯ������
��û��Ǯ��Ҳû�еط�����ֻ�й�ȥ. �Ҳ�������Ҳ���ɺޣ���Ϊ�Ҳ�����.
��˵�ö࣬Ҳ��ö࣬��Խ��Խû����. ����������Ҳ�����ӱܣ��ɾ���������.
[m[1;37m�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: e247szy.nju.edu][m
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads