荔园在线

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

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


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

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

Topics of the day:

  1. Develop tools (4)
  2. Non-standard Windows GUI (3)
  3. function inlining , linkage error LNK2001
  4. Multicast option using setsockopt
  5. Check for administrator rights
  6. String sounds like function? (3)
  7. Developer Studio Setting
  8. DirectX
  9. Get file icon sample (2)

--------------------------------------------------------------------------
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 09:12:38 +0100
From:    Erik Magni <erik.magni@SESIG.MAIL.ABB.COM>
Subject: Re: Develop tools

I must say that I do like VC++, a lot. But when it comes to
database stuff Delphi is the ultimate tool. Far better than VC++.

/Erik

>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:    Thu, 17 Dec 1998 11:37:15 +0300
From:    Sumtsov Dmitry <sumtsov@SOFTLAB.RU>
Subject: Re: Develop tools

DBLibrary is the best tool. But one needs to write a shell over dblibrary,
if one works with serious projects.
( Sorry for bad English )

> -----Original Message-----
> From: Erik Magni [SMTP:erik.magni@SESIG.MAIL.ABB.COM]
> Sent: 17 December 1998 ?. 11:13
> To:   MSVC@PEACH.EASE.LSOFT.COM
> Subject:      Re: Develop tools
>
> I must say that I do like VC++, a lot. But when it comes to
> database stuff Delphi is the ultimate tool. Far better than VC++.
>
> /Erik
>
> >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
>
> --------------------------------------------------------------------------
> 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 04:06:42 EST
From:    B Venkat <BhVenkat@AOL.COM>
Subject: Re: Non-standard Windows GUI

Paul,
Could you please send me a copy of the code please.

Thank you,
Venkat

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

Date:    Thu, 17 Dec 1998 09:58:59 -0000
From:    Paul Vincent <PV@ACCESS-ACCOUNTS.COM>
Subject: Re: Non-standard Windows GUI

Hi Lim,

You can get very interesting results with this.  The problem you're having
with the lack of windows messages is because the CRgn used in
SetWindowRgn(hrgn,TRUE) has to exist for the life of the dialog, either
set it as a member of your dialog class or set it to be static.

To restore the original shape again, the result of GetWindowRgn() called
before
your call to SetWindowRgn() also has to be stored in a static CRgn or a
member
variable.

Hope this helps,

Paul

-----Original Message-----
From: Lim Chern Sing [mailto:singlim@PL.JARING.MY]
Sent: 17 December 1998 03:03
To: MSVC@PEACH.EASE.LSOFT.COM
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

--------------------------------------------------------------------------
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 12:34:17 +0200
From:    Behzad <behzad@SUPERONLINE.COM>
Subject: Re: Develop tools

This is not a question to be answered just by evaluating the tool,
but rather an evaluation of tool/project combination

Behzad

> >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
>
> --------------------------------------------------------------------------
> 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:40:58 +0100
From:    Dirk Germonpre <Dirk.Germonpre@TECTRADE.BE>
Subject: function inlining , linkage error LNK2001

Hello,

I have read the following about function inlining :=20

"Similarly, a project that uses function inlining yet defines the functions
in a .CPP file rather than in the header file will also get error LNK2001.
The header file is included everywhere deemed appropriate, but the
functions are only inlined when the .CPP file passes through the compiler.
Therefore the linker sees the functions as unresolved externals when used
in other modules. "

For example :=20

TESTCLS.H
class testcls {
 public:
  void PublicStatMemFunc1(void);=20
};


CLASFUNC.CPP
#include "testcls.h"

inline void testcls::PublicStatMemFunc1(void)
{
}


TEST2.CPP
#include "testcls.h"
void main(void)
{
 testcls testclsObject;
 testclsObject.PublicStatMemFunc1( );   //This needed for compiler to add
entry to table of unresolved symbols
                            //Will cause an LNK2001 because this module=
 cannot
 }                        =20


What is the solution to this 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 23:37:35 -0800
From:    choonchiat@YAHOO.COM
Subject: Multicast option using setsockopt

Hi,

I got a SOCKET_ERROR message when I ran the following statement

int flag;
int len=sizeof(flag);
flag=0;

if(setsockopt(MCAST_SOCK, IPPROTO_IP, P_MULTICAST_LOOP, (char *)&flag,
len)==SOCKET_ERROR)
{
 CString err;
err.Format("Unable to set no loop back! %d",WSAGetLastError());
MessageBox(NULL, err, "Error", MB_OK);
}

does anyone knows if this option is suported by setsockopt?

thanks!

Regards,
Choon Chiat
==

Regards,
Choon Chiat
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Date:    Thu, 17 Dec 1998 07:49:47 -0500
From:    Timothy Dixon <tdixon@PHDINC.COM>
Subject: Re: Develop tools

Yeah, yeah, yeah.  Good textbook answer (and correct, don't misunderstand:
I do agree).

Since the question asked for opinions, however, I would like to mention
that while we use VC++ here (and C++ builder for building ActiveX controls
and protptyping), I use Delphi at home for my hobby programming.  This is
not meant to indicate that Delphi is a "toy tool," just that having used
more tools than I care to count, I simply like Delphi best.






behzad@SUPERONLINE.COM on 12/17/98 05:34:17 AM

Please respond to MSVC@PEACH.EASE.LSOFT.COM

To:   MSVC@PEACH.EASE.LSOFT.COM
cc:    (bcc: Tim Dixon/PHD)
Subject:  Re: Develop tools




This is not a question to be answered just by evaluating the tool,
but rather an evaluation of tool/project combination
Behzad
> >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
>
>
--------------------------------------------------------------------------
> 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 .
--------------------------------------------------------------------------
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 13:08:55 +0100
From:    =?iso-8859-2?Q?Robert_Wi=EAckowicz?= <wieckowiczr@PROKOM.PL>
Subject: Check for administrator rights

Hi all,
is there anyone who can tell me how to check if logged user has
administrator rights (if he can read/write registry)?

Thanks!

Robert

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

Date:    Thu, 17 Dec 1998 16:32:16 -0000
From:    Paul Vincent <PV@ACCESS-ACCOUNTS.COM>
Subject: String sounds like function?

Hi,

Env: Windows 95, MSVC++ 6 SP1

I can remember seeing a function SoundEx() in another development tool
(Application Manager) which accepted a string and returned a number based on
what that string 'sounds like'.  Does anyone know anywhere I could get C/C++
source code or some information on how I could implement my own version of
this please?

Any help/comments/links would be great,

Thanks,

Paul

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

Date:    Thu, 17 Dec 1998 11:05:01 CST
From:    SHYAN LAM <sflam@USA.NET>
Subject: Developer Studio Setting

Hi, developers:

Env: NT, 95, 98
Prod: Developer Studio 97, Visual studio 6.0

I have set the syntax coloring and added many shortcuts to the commonly used
editing functions.  I want to duplicate these setting to other computers.
Does any one know where does the IDE store these setting?

Thanks

Shyan Lam
sflam@usa.net


____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

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

Date:    Thu, 17 Dec 1998 18:16:20 +0100
From:    Benjamin Levstek <benjamin.levstek@ADACTA.SI>
Subject: DirectX

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01BE29E9.58AEC4C0
Content-Type: text/plain;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

I need simple sample in directx.
Thanx

------=_NextPart_000_000E_01BE29E9.58AEC4C0
Content-Type: text/html;
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-2 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I need simple sample in directx.</FONT></DIV>
<DIV><FONT size=3D2>Thanx</FONT></DIV></BODY></HTML>

------=_NextPart_000_000E_01BE29E9.58AEC4C0--

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

Date:    Thu, 17 Dec 1998 17:24:58 -0000
From:    Rui Couto <rcouto@SHOPPINGDIRECT.PT>
Subject: Get file icon sample

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01BE29E2.2B7A5DE0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I need a sample of how can I get a icon from a external file=20
for example:

I wnat to create a view that shows me every file in a determinated =
directory , and the icons file... can i do that??
how?


thanks=20

------=_NextPart_000_001C_01BE29E2.2B7A5DE0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>I need a sample of how can I get a =
icon from a=20
external file </FONT></DIV>
<DIV><FONT size=3D2>for example:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I wnat to create a view that shows me every file in =
a=20
determinated directory , and the icons file... can i do =
that??</FONT></DIV>
<DIV><FONT size=3D2>how?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>thanks </FONT></DIV></BODY></HTML>

------=_NextPart_000_001C_01BE29E2.2B7A5DE0--

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

Date:    Thu, 17 Dec 1998 12:36:22 -0500
From:    "MARCOK, ZLATKO" <zlatko.marcok@BELL.CA>
Subject: Re: String sounds like function?

Hi Paul:
I believe (but am not sure) that Knuth has an algorithm published
somewhere in his 3 volume "The Art of Computer Programming" which will
take a string and translate it into its phonetic equivalent. This would
allow strings spelled in two different ways to be considered equal. If
you need a number to summarize the sound of the string, perhaps you
could use the phonetic equivalent as an input to some hashing function.

Best regards
Zlatko

Paul Vincent wrote:
>
> Hi,
>
> Env: Windows 95, MSVC++ 6 SP1
>
> I can remember seeing a function SoundEx() in another development tool
> (Application Manager) which accepted a string and returned a number based on
> what that string 'sounds like'.  Does anyone know anywhere I could get C/C++
> source code or some information on how I could implement my own version of
> this please?
>
> Any help/comments/links would be great,
>
> Thanks,
>
> Paul
>
> --------------------------------------------------------------------------
> 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 12:11:30 -0600
From:    Juan M Garcia <JuanMGarcia@KEMET.COM>
Subject: Re: Non-standard Windows GUI

Hi Paul
Send me a copy, please

J Manuel Garcia
juanmgarcia@kemet.com

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

Date:    Thu, 17 Dec 1998 12:28:45 -0600
From:    taylorr <rick.taylor@WRIGHTIND.COM>
Subject: Re: String sounds like function?

Don't know if this will help with what you are doing, but Soundex exists in MS
SQL 6.5. Look under "Functions" in the help.

=r=

-----Original Message-----
From:   MARCOK, ZLATKO [SMTP:zlatko.marcok@BELL.CA]
Sent:   Thursday, December 17, 1998 11:36 AM
To:     MSVC@PEACH.EASE.LSOFT.COM
Subject:        Re: String sounds like function?

Hi Paul:
I believe (but am not sure) that Knuth has an algorithm published
somewhere in his 3 volume "The Art of Computer Programming" which will
take a string and translate it into its phonetic equivalent. This would
allow strings spelled in two different ways to be considered equal. If
you need a number to summarize the sound of the string, perhaps you
could use the phonetic equivalent as an input to some hashing function.

Best regards
Zlatko

Paul Vincent wrote:
>
> Hi,
>
> Env: Windows 95, MSVC++ 6 SP1
>
> I can remember seeing a function SoundEx() in another development tool
> (Application Manager) which accepted a string and returned a number based on
> what that string 'sounds like'.  Does anyone know anywhere I could get C/C++
> source code or some information on how I could implement my own version of
> this please?
>
> Any help/comments/links would be great,
>
> Thanks,
>
> Paul
>
> --------------------------------------------------------------------------
> 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 .

--------------------------------------------------------------------------
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:    Fri, 18 Dec 1998 10:29:59 +1100
From:    David Roe <dud@SYDNEY.NET>
Subject: Re: Get file icon sample

This is a multi-part message in MIME format.

------=_NextPart_000_0022_01BE2A71.5D492BA0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

SHFILEINFO sfi;

memset(&sfi,0,sizeof(SHFILEINFO));
        SHGetFileInfo(szPathname,0,&sfi,sizeof(SHFILEINFO),
                SHGFI_USEFILEATTRIBUTES | SHGFI_SYSICONINDEX | SHGFI_SMALLICON
| =
SHGFI_TYPENAME);

rgds,
/david

  -----Original Message-----
  From: Rui Couto <rcouto@SHOPPINGDIRECT.PT>
  To: MSVC@PEACH.EASE.LSOFT.COM <MSVC@PEACH.EASE.LSOFT.COM>
  Date: Friday, December 18, 1998 4:31 AM
  Subject: Get file icon sample


  I need a sample of how can I get a icon from a external file=20
  for example:
  =20
  I wnat to create a view that shows me every file in a determinated =
directory , and the icons file... can i do that??
  how?
  =20
  =20
  thanks=20

------=_NextPart_000_0022_01BE2A71.5D492BA0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML><HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 5.00.0910.1309"' name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2></FONT><FONT face=3DArial size=3D2>SHFILEINFO =
sfi;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT =
face=3DArial>memset(&amp;sfi,0,sizeof(SHFILEINFO));</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>       SHGetFileInfo(szPathname,0,&amp;sfi,sizeof(SHFILEINFO),<BR>
        =
SHGFI_USEFILEATTRIBUTES=20
| SHGFI_SYSICONINDEX | SHGFI_SMALLICON | SHGFI_TYPENAME);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>rgds,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>/david<BR></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
  <DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
  </B>Rui Couto &lt;<A=20
  =
href=3D"mailto:rcouto@SHOPPINGDIRECT.PT">rcouto@SHOPPINGDIRECT.PT</A>&gt;=
<BR><B>To:=20
  </B><A =
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A>=20
  &lt;<A=20
  =
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A>&g=
t;<BR><B>Date:=20
  </B>Friday, December 18, 1998 4:31 AM<BR><B>Subject: </B>Get file icon =

  sample<BR><BR></DIV></FONT>
  <DIV><FONT color=3D#000000 size=3D2>I need a sample of how can I get a =
icon from a=20
  external file </FONT></DIV>
  <DIV><FONT size=3D2>for example:</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>I wnat to create a view that shows me every file =
in a=20
  determinated directory , and the icons file... can i do =
that??</FONT></DIV>
  <DIV><FONT size=3D2>how?</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>thanks </FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0022_01BE2A71.5D492BA0--

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

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


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

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