荔园在线

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

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


发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标  题: [转载]  MSVC Digest - 14 Dec 1998 to 15 Dec 1998 (#1998-342)
发信站: BBS 荔园晨风站 (Wed Dec 16 17:01:25 1998), 站内信件

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

Topics of the day:

  1. Modeless Message Box (3)
  2. GetWindow Infinite Loop
  3. immediate need
  4. How to attach .3ds file? (2)
  5. OT:Setting the cursor
  6. Multiple Targets In VC++ (2)
  7. Can't find Th32.lib (2)
  8. windows socket

--------------------------------------------------------------------------
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:    Tue, 15 Dec 1998 14:53:50 +0530
From:    Aditya Kumar <aditya@NOIDA.HCLT.COM>
Subject: Modeless Message Box

Hello all ,

Env : VC 5.0 win95 MFC

I want to create a modeless dialog but I do not want to create a dialog
resource for it because ny resource file is already very bulky . This
dialog will be visible for a short time when the application begins .
After that it will not be used again .
Therefore I want to use a message box for this .But the message box is
always modal .
I want to do some processing during the time this dialog is visible .
How do I do this ?
any alternate methods are welcome .
TIA
Aditya

--
********************************************************************
Aditya Kumar                    |    aditya@noida.hclt.com
HCL Technologies,               |
Sector 11 , Noida.              |    adi47@hotmail.com

## Still looking for something witty to add to my sign ! ##
********************************************************************

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

Date:    Tue, 15 Dec 1998 18:34:04 +0800
From:    "Easy.Cao" <easycao@263.NET>
Subject: Re: Modeless Message Box

I guess you are want a splash window for your software,
if it is true, you can simplely add the splash screen from
"Components and controls gallery"

wish this can help you

Easy.Cao


AK> Hello all ,

AK> Env : VC 5.0 win95 MFC

AK> I want to create a modeless dialog but I do not want to create a dialog
AK> resource for it because ny resource file is already very bulky . This
AK> dialog will be visible for a short time when the application begins .
AK> After that it will not be used again .
AK> Therefore I want to use a message box for this .But the message box is
AK> always modal .
AK> I want to do some processing during the time this dialog is visible .
AK> How do I do this ?
AK> any alternate methods are welcome .
AK> TIA
AK> Aditya

AK> --
AK> ********************************************************************
AK> Aditya Kumar                    |    aditya@noida.hclt.com
AK> HCL Technologies,               |
AK> Sector 11 , Noida.              |    adi47@hotmail.com

AK> ## Still looking for something witty to add to my sign ! ##
AK> ********************************************************************

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




Best regards,
 Easy.Cao                            mailto:easycao@263.net

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

Date:    Tue, 15 Dec 1998 10:38:41 -0500
From:    Stephen Hsu <Stephen.Hsu@DONOVANDATA.COM>
Subject: Re: GetWindow Infinite Loop

Hey Darryl,

Kind of late but the problem is in the GetWindow() you're using the
CWnd::GetWindow() so it's always using your dialog's CWnd as the start
for GW_HWNDNEXT.  You need to change your GetWindow to
pWnd->GetWindow(GW_HWNDNEXT);

later
Stephen


for( CWnd* pWnd = GetWindow( GW_HWNDFIRST );
       pWnd;
       pWnd = pWnd->GetWindow( GW_HWNDNEXT ) )
{
    ASSERT( ::IsWindow( pWnd -> m_hWnd ) );

    CString str;

    pWnd -> GetWindowText( str );
}

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

Date:    Tue, 15 Dec 1998 11:33:31 -0500
From:    jjmadiso@MAXIMGROUP.COM
Subject: immediate need

This is a multi-part message in MIME format.
--------------7AA9251DE9C630C2007D0AB0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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


--------------7AA9251DE9C630C2007D0AB0
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for jjmadiso@maximgroup.com
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             jjmadiso@maximgroup.com
n:              ;jjmadiso@maximgroup.com
email;internet: jjmadiso@maximgroup.com
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------7AA9251DE9C630C2007D0AB0--

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

Date:    Tue, 15 Dec 1998 11:46:29 -0500
From:    Hyungki Choi <hkchoi@CCS.NEU.EDU>
Subject: How to attach .3ds file?

        Hi, I'm trying to use a file created by 3DMAX program
in my application. However, I'm having trouble to find suitable class
to use it. Can I use CAnimateCtrl? I never tried to using a graphic
file before. Please Help me!!!

        I feel like this is not a good question to ask in this list.
Sorry to bug you guys. Thanks in advance.....

                                                Hyungki Choi

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

Date:    Wed, 16 Dec 1998 10:56:29 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: How to attach .3ds file?

try converting the .3ds file to a .avi file. CAnimateCtrl will work with
this.

rgds,
/david

-----Original Message-----
From: Hyungki Choi <hkchoi@CCS.NEU.EDU>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: Wednesday, December 16, 1998 3:52 AM
Subject: How to attach .3ds file?


>        Hi, I'm trying to use a file created by 3DMAX program
>in my application. However, I'm having trouble to find suitable class
>to use it. Can I use CAnimateCtrl? I never tried to using a graphic
>file before. Please Help me!!!
>
>        I feel like this is not a good question to ask in this list.
>Sorry to bug you guys. Thanks in advance.....
>
>                                                Hyungki Choi
>
>--------------------------------------------------------------------------
>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:    Tue, 15 Dec 1998 03:58:50 -0500
From:    "Swirski, Zbyszek" <Zbyszek.Swirski@AEXP.COM>
Subject: OT:Setting the cursor

It is off the topic, but ...
My friend asked me to post the following question:

Under program control I need to revert to the standard Windows Cursor
Scheme. Under NT, the following code was expected to do this but the
changes are only apparent after a reboot, whereas setting the cursor
scheme to one of my own takes effect immediately.

Trevor


void WriteRegistryStrings( char* szSchemeName, char* szCursorFileName )
{
        WriteRegistryString( hCursor, "", szSchemeName );
        WriteRegistryString( hCursor, "AppStarting", szCursorFileName );
        WriteRegistryString( hCursor, "Arrow", szCursorFileName );
//... removed lines
        WriteRegistryString( hCursor, "UpArrow", szCursorFileName );
        WriteRegistryString( hCursor, "Wait", szCursorFileName );
}
...
...

        HCURSOR hc;

        WriteRegistryStrings( "", "" );
        hc = AfxGetApp()->LoadStandardCursor( IDC_ARROW);
        SetSystemCursor( hc, OCR_NORMAL          );

        hc = AfxGetApp()->LoadStandardCursor( IDC_IBEAM);
        SetSystemCursor( hc, OCR_IBEAM           );

        hc = AfxGetApp()->LoadStandardCursor( IDC_WAIT);
        SetSystemCursor( hc, OCR_WAIT            );

// ... removed lines

        hc = AfxGetApp()->LoadStandardCursor( IDC_APPSTARTING);
        SetSystemCursor( hc, OCR_APPSTARTING     );

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

Date:    Tue, 15 Dec 1998 19:16:25 -0600
From:    "Nathan T. Wild" <nwild@BIGFOOT.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...

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

Date:    Tue, 15 Dec 1998 22:54:09 -0400
From:    "-=< Duckie >=-" <duckie@MYMAIL.COM>
Subject: Can't find Th32.lib

WinNT, MSVC6, MFC

I just installed VC++ 6 and I keep getting this error with an app that had
begun development in VC5. Anyone know what this is about or what I have to
do to correct the problem?

LINK : fatal error LNK1104: cannot open file "..\..\Program
Files\DevStudio\Vc\lib\Th32.lib"

Thanks.

-=< Darryl >=-

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

Date:    Wed, 16 Dec 1998 11:07:46 +0800
From:    Wong Yek Fu <yfwong@NETWORK2.CS.USM.MY>
Subject: windows socket

hi:
   previously, I developed a winsock application and it works fine. Now,I
got a problem to insert the application which consist of a
class inherited from class CAsyncSocket to my old project. The error
messages is:

  AfxSocketInit' : undeclared identifier
  error C2065: 'IDP_SOCKETS_INIT_FAILED' : undeclared identifier
  error C2504: 'CAsyncSocket' : base class undefined
         and lot more........
For your info, my old project is a MDI application build using the Wizard
but did not choose to support windows socket
during the steps.. so, I try to copy the inportant things to the stdafx.h
file like "include afxsock.h" but still fails..
Is there any ways to solve this problem besides re-create a new projects
and choose to include windows socket during the
wizard steps?
Thanks.

taylo

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

Date:    Wed, 16 Dec 1998 11:11:27 +0800
From:    Wong Yek Fu <yfwong@NETWORK2.CS.USM.MY>
Subject: Re: Modeless Message Box

just suggestion, how about using the Active-x splash screen ? it is easy
because you just need to change the dialog box design.

taylo

On Tue, 15 Dec 1998, Aditya Kumar wrote:

> Hello all ,
>
> Env : VC 5.0 win95 MFC
>
> I want to create a modeless dialog but I do not want to create a dialog
> resource for it because ny resource file is already very bulky . This
> dialog will be visible for a short time when the application begins .
> After that it will not be used again .
> Therefore I want to use a message box for this .But the message box is
> always modal .
> I want to do some processing during the time this dialog is visible .
> How do I do this ?
> any alternate methods are welcome .
> TIA
> Aditya
>
> --
> ********************************************************************
> Aditya Kumar                    |    aditya@noida.hclt.com
> HCL Technologies,               |
> Sector 11 , Noida.              |    adi47@hotmail.com
>
> ## Still looking for something witty to add to my sign ! ##
> ********************************************************************
>
> --------------------------------------------------------------------------
> 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 14:21:15 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: Can't find Th32.lib

it looks like you have a relative pathname to a library to link in and the
directory it resides in (a) has moved or (b) the directory you are in is
different.

i would suggest looking at the directories tab in Settings to see if this
directory (PF\DevStudio\Vc\lib) is mentioned. Browse to the correct pathname
to specify an absolute pathname instead.

rgds,
/david

-----Original Message-----
From: -=< Duckie >=- <duckie@MYMAIL.COM>
To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
Date: Wednesday, December 16, 1998 2:00 PM
Subject: Can't find Th32.lib


>WinNT, MSVC6, MFC
>
>I just installed VC++ 6 and I keep getting this error with an app that had
>begun development in VC5. Anyone know what this is about or what I have to
>do to correct the problem?
>
>LINK : fatal error LNK1104: cannot open file "..\..\Program
>Files\DevStudio\Vc\lib\Th32.lib"
>
>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 04:34:47 +0100
From:    Dan Lofquist <danne@POLYMORPH.SE>
Subject: Re: Multiple Targets In VC++

Just create another profile.....

> -----Original Message-----
> From: Microsoft Visual C++ programmers list
> [mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of Nathan T. Wild
> Sent: Wednesday, December 16, 1998 2:16 AM
> 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 .
>

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

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


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

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