Thread View: cn.bbs.comp.program
1 messages
1 total messages
Started by �ǻ�
Mon, 08 Dec 1997 00:00
Re: Dll�лص�����ʹ��ȫ�ֱ���Ϊ��ʱ��
Author: �ǻ�
Date: Mon, 08 Dec 1997 00:00
Date: Mon, 08 Dec 1997 00:00
27 lines
2072 bytes
2072 bytes
�� �� swordman.bbs@bbs.whnet.edu.cn (�ú�) �Ĵ������ᵽ: ��
: ����Dll�ж�����һ��ȫ�ֱ������ڳ�ʼ���и��˳�ֵ����Dll��һ���ص��������õ�����
: ���������ûص��������������Ϣ�Ĺ��ˣ������������������ڣ��ñ���������Ҫ��
: ֵ����һ������Ƴ�������ʱ���ñ�����Ϊ0�����벻ͨ���������һ������ݶ�Ҳû��
: �á������廪����Ҳ�����Dllȫ�ֱ��������⡣��֪��Dll��ȫ�ֱ�����������ô����
: �ģ����õ���VC4.2��
: �ص���������ʹ��ȫ�ֱ�����
:
Win32�У�һ��DLL�����(ʵ��Ҳ��������)ȱʡ�Dz�����ģ�
���蹲�?�ɽ�����ڹ�����У�������Ĵ���:
#pragma data_seg(".sdata")
int shared_var = 0;
#pragma data_seg()
����ʱ����ѡ�� /section:.sdata,RWS
����.def���
SECTIONS
.sdata READ WRITE SHARED
Note: ����.sdata���������壬�����κ���ϲ�������֡�
�����������Ҫ��ʼ������������ʱ��ŵ�.bss���С�
--
[1;36m ��Դ: ����������BBSվ��bbs.nease.net�E[FROM: www-post@bbs.nease.n]
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