荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 15 Dec 1998 to 16 Dec 1998 (#1998-343)
发信站: BBS 荔园晨风站 (Fri Dec 18 22:39:02 1998), 站内信件

【 以下文字转载自 tang 的信箱 】
【 原文由 Automatic 所发表 】
There are 11 messages totalling 461 lines in this issue.

Topics of the day:

  1. Develop tools
  2. template classes in C++, mutual reference problem (2)
  3. Occluded Modal Dlg
  4. WinNT WS and Keyboard Hooks
  5. Non-standard Windows GUI (3)
  6. Multiple Targets In VC++ (2)
  7. immediate need

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription/signoff info
and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

----------------------------------------------------------------------

Date:    Wed, 16 Dec 1998 13:24:40 +0800
From:    "Lu, Ru-Chuan" <lurc@INAME.COM>
Subject: Develop tools

Hello all,

Database: MS SQL Server

There are three development tools, VB, VC & Delphi, which one is better? I
mean the overall evaluation, speed, develop level, etc...

Thanks in advance.

Best regards,
Ru-Chuan

------------------------------

Date:    Wed, 16 Dec 1998 09:42:19 +0100
From:    Dirk Germonpre <Dirk.Germonpre@TECTRADE.BE>
Subject: template classes in C++, mutual reference problem

Hello,

I'm busy experimenting with template classes in C++. I have the following
problem : I have two template classes. The first one takes as template
argument an instance of the second class, and the second class takes as
template argument an instance of the first class. Is it possible to do this?

first class :=20

template<class Object, class Broker> class CTVirtualProxy =20
{
}

second class :=20

template <class VP> class CTBroker =20
{
}


I have to define something like this :

typedef CTVirtualProxy<CTFaxSupplier, CTRBFaxSupplier<CTFaxSupplierVP>>
CTFaxSupplierVP;

Is it possible to do this, or is there any other way to solve my problem?



Thanks in advance.

----------------------------------

Dirk Germonpr=E9 - dirkg@tectrade.be

Tectrade NV
Pieter de Conincklaan 33
B-8200  Brugge
Belgium

------------------------------

Date:    Wed, 16 Dec 1998 04:38:28 -0500
From:    Gerald Wann <photonuv@KUDOS.NET>
Subject: Occluded Modal Dlg

Hello Everyone...

I have a modal dlg that spawns 3 child modeless dialog windows.
When any of the modeless windows are dragged over the modal
parent window, and then the modal parent is clicked, it does not
come to the top and become fully visible as do most windows.

I have tried fixing this with SetWindowPos(various params) and
BringWindowToTop(), neither of which seem to work.

Does anyone know why this occurs and how it is possible to make the parent
modal dialog pop to the top when clicked?

Thanks in Advance -
Jerry

------------------------------

Date:    Wed, 16 Dec 1998 09:32:33 -0400
From:    "Darryl G. Wright" <darrylwright@MYMAIL.COM>
Subject: WinNT WS and Keyboard Hooks

MSVC6, MFC, WINNT WS

Does anyone know if WinNT supports SetWindowsHook()? I developed an app
under Win95 which uses this function but it always fails under NT. Is there
an alternative NT function?

-=< Darryl >=-

------------------------------

Date:    Wed, 16 Dec 1998 09:52:31 -0400
From:    "Darryl G. Wright" <darrylwright@MYMAIL.COM>
Subject: Non-standard Windows GUI

Does anyone know where I could find an example of an application that uses a
non-standard GUI style (such as round windows etc.). I am talking about apps
like Creative Web-phone or many multi-media applications that look like real
tools.

It seems that they are just regular windows with bitmaps layed over the top
but I want to know how they manage to do the 'shape'. How do they make mouse
clicks 'miss' the transparent spots etc. More importantly, how do they make
those transparent spots!

Any help would be greatly appreciated.

Thanks

-=< Darryl >=-

------------------------------

Date:    Wed, 16 Dec 1998 14:30:43 -0000
From:    Paul Vincent <PV@ACCESS-ACCOUNTS.COM>
Subject: Re: Non-standard Windows GUI

Hi Darryl,

The API call you need is SetWindowRgn(), this will redefine the shape of
the window to be whatever shape you like.  I'm sending two examples of
how to do this with MFC and one using the WinAPI.

If anyone else wants a copy of these then let me know,

Paul
-----Original Message-----
From: Darryl G. Wright [mailto:darrylwright@MYMAIL.COM]
Sent: 16 December 1998 13:53
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Non-standard Windows GUI


Does anyone know where I could find an example of an application that uses a
non-standard GUI style (such as round windows etc.). I am talking about apps
like Creative Web-phone or many multi-media applications that look like real
tools.

It seems that they are just regular windows with bitmaps layed over the top
but I want to know how they manage to do the 'shape'. How do they make mouse
clicks 'miss' the transparent spots etc. More importantly, how do they make
those transparent spots!

Any help would be greatly appreciated.

Thanks

-=< Darryl >=-

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription/signoff info
and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

------------------------------

Date:    Wed, 16 Dec 1998 10:42:42 -0500
From:    Robert Twitty <rtwitty@USHMM.ORG>
Subject: Re: Multiple Targets In VC++

One way to do this is as follows:

1. Create a new blank workspace.
2. Create a new project in the workspace that will build the static
   version.
3. Create a new project in the workspace that will build the dll
   version.

Notes:

Make sure that the projects do not share the same subdirectory
under the workspace directory.

Place the library's source and header files in the root of the workspace
directory, and then add them to each project so that both projects share
the same source and header files.  You will have to place conditional
#defines in these files to distinguish between static and dll compilation
of the library.

You can also use Batch Build to build both projects at the same time.

-- bob

On Tue, 15 Dec 1998, Nathan T. Wild wrote:

> How do you define multiple targets in a VC project?  I want my library
> project to produce both a static (.LIB) library as well as a dynamic (.DLL)
> one..
>
> I have scoured the help, and can't figure this out!  It can't be _that_
> difficult!
>
> Thanks in advance...
>
> --------------------------------------------------------------------------
> The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
> international's LISTSERV(R) software.  For subscription/signoff info
> and archives, see http://peach.ease.lsoft.com/archives/msvc.html .
>

------------------------------

Date:    Wed, 16 Dec 1998 08:22:14 -0800
From:    Ted Neward <ted@CWNET.COM>
Subject: Re: template classes in C++, mutual reference problem

Short answer--yes, I think. It depends on how CTFaxSupplier is declared, =
but
I don't see anything here that would prevent it.

Take a look at the new IOStreams code (in <iostream>, NOT <iostream.h>) f=
or
a good demonstration of what you can do with templates these days. :)

Ted Neward
Consultant
C++/Java/CORBA/COM/EJB/Web spoken here
-----Original Message-----
From: Dirk Germonpre <Dirk.Germonpre@TECTRADE.BE>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: Wednesday, December 16, 1998 12:43 AM
Subject: template classes in C++, mutual reference problem


>Hello,
>
>I'm busy experimenting with template classes in C++. I have the followin=
g
>problem : I have two template classes. The first one takes as template
>argument an instance of the second class, and the second class takes as
>template argument an instance of the first class. Is it possible to do
this?
>
>first class :
>
>template<class Object, class Broker> class CTVirtualProxy
>{
>}
>
>second class :
>
>template <class VP> class CTBroker
>{
>}
>
>
>I have to define something like this :
>
>typedef CTVirtualProxy<CTFaxSupplier, CTRBFaxSupplier<CTFaxSupplierVP>>
>CTFaxSupplierVP;
>
>Is it possible to do this, or is there any other way to solve my problem=
?
>
>
>
>Thanks in advance.
>
>----------------------------------
>
>Dirk Germonpr=E9 - dirkg@tectrade.be
>
>Tectrade NV
>Pieter de Conincklaan 33
>B-8200  Brugge
>Belgium
>
>------------------------------------------------------------------------=
--
>The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
>international's LISTSERV(R) software.  For subscription/signoff info
>and archives, see http://peach.ease.lsoft.com/archives/msvc.html .
>

------------------------------

Date:    Wed, 16 Dec 1998 08:23:50 -0800
From:    Ted Neward <ted@CWNET.COM>
Subject: Re: immediate need

Um.... In the future, can you not post job requests to here? We get enough
noise on the channel as it is.

(And lest you think I'm just being high-handed, I work for the Sacramento
Maxim office; I don't have anything against you in particular. I would say
the same thing to ANY recruiter posting here.)

Ted Neward
Consultant
C++/Java/CORBA/COM/EJB/Web spoken here
-----Original Message-----
From: jjmadiso@maximgroup.com <jjmadiso@maximgroup.com>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: Tuesday, December 15, 1998 8:43 AM
Subject: immediate need


>Hi,
>Since 1987 the Maxim Group has been a leader in the consulting
>industry.  We have over 90 offices in the United States and currently
>have over 7000 consultants.  We constantly have requirements for
>Visual C++ developers at various skill levels.
>
>Maxim is a vibrant, growing company who places an emphasis on
>building strong relationships with our consultants and clients.  From
>The personal delivery of your weekly checks, to our dedication to
>finding a placement for each of our consultants after the end of a
>project, you will find our service orientation to be number one in
>the industry.
>
>Maxim has both full-time and W-2 positions available.  We have
>training programs and comprehensive benefit plans available to all
>of our consultants.
>
>If you are interested in finding out about the opportunities in
>Visual C++ (or any other skill set) please contact me at 800-340-9699
>X 4052 or at jjmadiso@maximgroup.com.
>
>Thank you,
>Jeff Madison
>Sr. Information Technology Recruiter, Maxim Group
>
>

------------------------------

Date:    Wed, 16 Dec 1998 12:48:51 -0500
From:    Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: Multiple Targets In VC++

Hello Nathan,

It's not as difficult as having one project for each way you want to build
your target.  Go to Build/Configurations... on the menu.  Select the
configuration that closely resembles the new one you want to add, click add.
Then give the new configuration a different name.  The "Copy settings from:"
field should have the configuration you had selected.  Click OK and go edit
the configuration to reflect the new way you want your target built.

For instance if you already produce a .lib file and want to make a .dll, go
to the configurations dialog box, select the debug version, click add,
change the name to "Debug dll", and click ok.  Repeat the same for the
release build.  Then go to the Project/Settings... and change the two dll
configurations to build dlls instead of library files.

Good luck!

Richard W. Pickett Jr.
Windows NT Server System Engineer
Client / Server, Multithreading, Sockets, IPC
Visual C++, MFC, CASE tools, UML
Are you reading this?
#include "std Disclosure Statement.h"
Home:  nemesis@wku.campus.mci.net <mailto:nemesis@wku.campus.mci.net>
Work: rpickett@NortelNetworks.com <mailto:rpickett@NortelNetworks.com>

        -----Original Message-----
        From:   Nathan T. Wild [SMTP:nwild@BIGFOOT.COM]
        Sent:   Tuesday, December 15, 1998 7:16 PM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        Multiple Targets In VC++

        How do you define multiple targets in a VC project?  I want my
library
        project to produce both a static (.LIB) library as well as a dynamic
(.DLL)
        one..

        I have scoured the help, and can't figure this out!  It can't be
_that_
        difficult!

        Thanks in advance...


--------------------------------------------------------------------------
        The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
        international's LISTSERV(R) software.  For subscription/signoff info
        and archives, see http://peach.ease.lsoft.com/archives/msvc.html .

------------------------------

Date:    Thu, 17 Dec 1998 11:02:59 +0800
From:    Lim Chern Sing <singlim@PL.JARING.MY>
Subject: Re: Non-standard Windows GUI

Hi Paul,

It's amazing.Thanks for your tips. I tried out the following and I'm really
amazed with the result.

CRgn rgn,rgn2,rgn3;
 HRGN hrgn;
  rgn.CreateEllipticRgn(0,0,200,160);
 rgn3.CreateEllipticRgn(50,50,400,450);
 rgn2.CreateRectRgn(0,0,600,600);
 rgn3.CombineRgn(&rgn3,&rgn2,RGN_XOR);
 hrgn = (HRGN)rgn3;
 SetWindowRgn(hrgn,TRUE);

How to restore the original window region anyway? I tried GetWindowRgn, but
it resulted in a restored window which doesn't receive mouse activity
message.

-----Original Message-----
From: Paul Vincent <PV@ACCESS-ACCOUNTS.COM>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: Wednesday, December 16, 1998 10:32 PM
Subject: Re: Non-standard Windows GUI


>Hi Darryl,
>
>The API call you need is SetWindowRgn(), this will redefine the shape of
>the window to be whatever shape you like.  I'm sending two examples of
>how to do this with MFC and one using the WinAPI.
>
>If anyone else wants a copy of these then let me know,
>
>Paul

------------------------------

End of MSVC Digest - 15 Dec 1998 to 16 Dec 1998 (#1998-343)
***********************************************************
--
※ 转载:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店