C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[2604] [질문] 폼이있는 dll에서 최소화문제/프포
윈텍7 [ ] 3759 읽음    1999-12-29 14:49

안녕하세요. 윈텍입니다.

폼이 포함된 dll를 사용시 dll를 사용하는 메인프로그램이 최소화가 안됩니다.
폼이 포함된 dll를 사용시에 몇몇 문제가 발생한다고 듣기했지만...
몇몇 테스트를 한결과 폼이포함된 dll를 사용시에만 최소화가 안되는 군요.
아래 폼이있는 dll의 소스를 같이 올립니다..

<help.cpp>
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#define BUILD_DLL
#include "help.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm_help *Form_help;
AnsiString h_key1,h_key2,h_key3;

//---------------------------------------------------------------------------
__fastcall TForm_help::TForm_help(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm_help::BitBtn1Click(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------

void __fastcall TForm_help::FormShow(TObject *Sender)
{
//
}
//---------------------------------------------------------------------------

<help.h>
//---------------------------------------------------------------------------
#ifdef __DLL__
class __export TForm_help;
#  define DLL_EXP __declspec(dllexport)
#else
class __import TForm_help;
#  define DLL_EXP __declspec(dllimport)
#endif
#ifndef helpH
#define helpH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TForm_help : public TForm
{
__published: // IDE-managed Components
    TRichEdit *Re_help;
    TBitBtn *BitBtn1;
    TListBox *ListBox1;
    void __fastcall BitBtn1Click(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
private: // User declarations
public:  // User declarations
    __fastcall TForm_help(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm_help *Form_help;
extern DLL_EXP AnsiString h_key1,h_key2,h_key3;
//---------------------------------------------------------------------------

그리고, 임프님 빌더 사이트가 몇칠째 연결이 안되는군요..쩝~~~

이글을 읽는 모든분들 새해 복많이 받으세요....


+ -

관련 글 리스트
2604 [질문] 폼이있는 dll에서 최소화문제/프포 윈텍7 3759 1999/12/29
2610     [답변] BJEANS/ 참, 거짓에 따른 분기.../프포 박지훈.임프 3710 2000/01/03
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.