Article View: cn.bbs.comp.lang.visual-basic
Article #20625���һ��dll����ɺ�ʹ������
From: �����ʵ�һ�����
Date: Fri, 08 Aug 2003 11:44
Date: Fri, 08 Aug 2003 11:44
35 lines
1742 bytes
1742 bytes
��������һ��dll����dll����ɺ�ʹ�����������������
���˺ö�Σ�������ͨ�����Ϻָ��һ�¡�//bow
//����Ϊһworkspace,���Test.dll,Test.Lib
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
void _declspec(dllexport) Exam()
{
MessageBox(NULL,"It's so easy!","Hahaha......",MB_OK);
}
//����Ϊ���õ�workspce���Ѿ�����Test.lib,��ʽ����,·���Ѿ����á�
#include <stdio.h>
void _declspec(dllimport) Exam();
void main()
{
Exam();
return;
}
--
���IJž���///
[m[1;31m�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 202.120.224.18][m
Technical Details
Message-ID:
<000000$4ma@smth.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!SMTHShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: 109fdd,46ae3794fc6c4c50,start X-Google-Attributes: gid109fdd,public X-Google-ArrivalTime: 2003-08-08 04:45:05 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!SMTH From: fofeir@smth.org (�����ʵ�һ�����) Newsgroups: cn.bbs.comp.lang.visual-basic Subject: ���һ��dll����ɺ�ʹ������ Date: 08 Aug 2003 11:44:58 GMT Organization: BBS ˮľ�廪վ Message-ID: <000000$4ma@smth.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: VisualBasic/F/M.1060342884.v0 Lines: 35