9975

来自「神经网络昆斯林的新闻组分类2006」· 代码 · 共 41 行

TXT
41
字号
Newsgroups: comp.os.ms-windows.miscPath: cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!fs7.ece.cmu.edu!europa.eng.gtefsd.com!howland.reston.ans.net!spool.mu.edu!cass.ma02.bull.com!petra!bubba!msmithFrom: msmith@volcano.ma30.bull.com (Mike Smith)Subject: DLL's and RegisterClass/CreateWindowMessage-ID: <MSMITH.93Apr27130718@volcano.ma30.bull.com>Sender: news@petra.ma30.bull.com (Network News)Reply-To: M.Smith@ma30.bull.comOrganization: Bull HN, Worldwide Information Systems, Billerica, Mass., USADistribution: compDate: Tue, 27 Apr 1993 18:07:18 GMTLines: 28Hi all,I have a DLL in which I Register a class and create a window of thatclass type.  Both calls require a module instance handle, hInstance.Petzold's 3.1 book says that it is best to use the module instancehandle of the calling program, not the module instance handle of theDLL (page 934).I have two questions:1)  Is there a way to find out the module instance handle of a module?2)  What are the possible problems with using the instance handle of    the DLL?Thanks in advance,Mike-------------------------------------------------------------------------    Mike Smith                          e-mail:  M.Smith@ma30.bull.com    Bull HN Information Systems Inc.     phone:  (508) 294-2049    300 Concord Road  MA30 - 815A          fax:  (508) 294-3807    Billerica, MA 01821  USA-----------------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?