🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by ̫�� Wed, 05 Aug 1998 00:00
Re: ��ζ���һ��ȫ�ֱ�����(¥������
#297
Author: ̫��
Date: Wed, 05 Aug 1998 00:00
42 lines
2495 bytes
��ͬ��maotou��˵����������һ���?�ж�����һ��:
  extern String ID;
����һ���?���ٴ����ã�
  extern String ID;

������ȷ��

�� �� maotou (ëͷ) �Ĵ������ᵽ: ��
: �� �� rayman (rayman) �Ĵ������ᵽ: ��
: : ....
: : �ͱ�׼C/C++��ȫ�ֶ���һ��, ֻ����ÿ���õ����ļ��ォ.h�ļ�include��ȥ.
:  rayman ��˵������ȫ�ֱ���Ӧ��extern���塣�������£�
: ��ʱ��MainForm��ChildForm�е�Label1->Caption��ʾ�Ķ���ͬһ���ַ�
: //Main.cpp
: //---------------------------------------------------------------------------
: AnsiString MainProgramPath;
: //---------------------------------------------------------------------------
: __fastcall TMainForm::TMainForm(TComponent* Owner)
:       : TForm(Owner)
: {
: MainProgramPath=ExtractFilePath(Application->ExeName);
: }
: //---------------------------------------------------------------------------
: __fastcall TMainForm::Button1Click(TObject *Sender)
: {
: Label1->Caption=MainProgramPath;
: }
: //---------------------------------------------------------------------------
: //---------------------------------------------------------------------------
: //Child.cpp
: //---------------------------------------------------------------------------
: extern AnsiString MainProgramPath;
: //---------------------------------------------------------------------------
: __fastcall TChildForm::Button1Click(TObject *Sender)
: {
: Label1->Caption=MainProgramPath;
: }
: //---------------------------------------------------------------------------


--
�� ��Դ:���������� BBS bbs.nease.net��[FROM: 202.103.137.151]
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