荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: tang (独孤九剑〖玄铁重剑〗), 信区: Program
标 题: [转载] MSVC Digest - 2 Jan 1999 to 4 Jan 1999 (#1999-4)
发信站: BBS 荔园晨风站 (Tue Jan 5 16:03:45 1999), 站内信件
【 以下文字转载自 tang 的信箱 】
【 原文由 Automatic 所发表 】
There are 18 messages totalling 1135 lines in this issue.
Topics of the day:
1. SP1 for Visual Studio (2)
2. SP1 for Visual Studio 6 problem
3. Sending VSCROLL Message...
4. Unicode on Windows 95
5. file path to be #defined : Thanks
6. <no subject>
7. Winmm.lib (2)
8. GetEffectiveRightsFromAcl
9. How Can I make an NT SERVICES using ATL COM WIZARD (3)
10. =?gb2312?B?u9i4tDogTWFzdGVyaW5nIFZpc3VhbCBDKysgNi4w?=
11. ??: Mastering Visual C++ 6.0
12. Multiple CSplitterWnd's?
13. =?gb2312?B?u9i4tDogSG93IENhbiBJIG1ha2UgYW4gTlQgU0VSVklDRVMgdXNpbmcgQVQ=?=
=?gb2312?B?TCBDT00gV0k=?=
14. 回复: Mastering Visual C++ 6.0
--------------------------------------------------------------------------
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: Mon, 4 Jan 1999 11:09:49 +0300
From: Serge Darii <serged@PETROLBANK.COM>
Subject: SP1 for Visual Studio
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01BE37D2.BEADE5C0
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hi all,
I have a problem. Environ: VC++6.0; WinNT 4.
After I install the SP1 for Visual Studio I cannot launch MSDEV.EXE =
because
get an error : abnormal program termination, just after starting.
When I return to MFC42.DLL version 6.0.8141, msdev.exe launched =
succesfully.
The version of SP1 mfc42.dll is 6.0.8267, but version of msdev.exe is =
6.0.8141.
Does anyone know where can I download the 8267 version of msdev.exe or =
how can I solve this problem?
Thanks in advance,
best regards ,
Serge Darii
------=_NextPart_000_0008_01BE37D2.BEADE5C0
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Dkoi8-r http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi all,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>I have a problem. Environ: VC++6.0; =
WinNT=20
4.</FONT></DIV>
<DIV><FONT size=3D2>After I install the SP1 for Visual Studio I cannot =
launch=20
MSDEV.EXE because</FONT></DIV>
<DIV><FONT size=3D2>get an error : abnormal program termination, just =
after=20
starting.</FONT></DIV>
<DIV><FONT size=3D2>When I return to MFC42.DLL version 6.0.8141, =
msdev.exe=20
launched succesfully.</FONT></DIV>
<DIV><FONT size=3D2>The version of SP1 mfc42.dll is 6.0.8267, but =
version of=20
msdev.exe is 6.0.8141.</FONT></DIV>
<DIV><FONT size=3D2> Does anyone know where can I download the 8267 =
version=20
of msdev.exe or how can I solve this problem?</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT size=3D2>best regards ,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2> Serge Darii</FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01BE37D2.BEADE5C0--
------------------------------
Date: Mon, 4 Jan 1999 11:55:08 +0300
From: Serge Darii <serged@PETROLBANK.COM>
Subject: SP1 for Visual Studio 6 problem
This is a multi-part message in MIME format.
------=_NextPart_000_002A_01BE37D9.13604620
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hi all,
=20
I have a problem. Environ: VC++6.0; WinNT 4.
After I install the SP1 for Visual Studio 6.0 I cannot launch MSDEV.EXE =
because
get an error : abnormal program termination, just after starting.
When I return to MFC42.DLL version 6.0.8141, msdev.exe launched =
succesfully.
The version of SP1 mfc42.dll is 6.0.8267, but version of msdev.exe is =
6.0.8141.
Does anyone know where can I download the 8267 version of msdev.exe or =
how can I solve this problem?
=20
Thanks in advance,
best regards ,
=20
Serge Darii
------=_NextPart_000_002A_01BE37D9.13604620
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Dkoi8-r http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT color=3D#000000 size=3D2>Hi all,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>I have a problem. Environ: VC++6.0; =
WinNT=20
4.</FONT></DIV>
<DIV><FONT size=3D2>After I install the SP1 for Visual Studio 6.0 =
I cannot=20
launch MSDEV.EXE because</FONT></DIV>
<DIV><FONT size=3D2>get an error : abnormal program termination, just =
after=20
starting.</FONT></DIV>
<DIV><FONT size=3D2>When I return to MFC42.DLL version 6.0.8141, =
msdev.exe=20
launched succesfully.</FONT></DIV>
<DIV><FONT size=3D2>The version of SP1 mfc42.dll is 6.0.8267, but =
version of=20
msdev.exe is 6.0.8141.</FONT></DIV>
<DIV><FONT size=3D2> Does anyone know where can I download the 8267 =
version=20
of msdev.exe or how can I solve this problem?</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT size=3D2>best regards ,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2> Serge Darii</FONT></DIV></DIV></BODY></HTML>
------=_NextPart_000_002A_01BE37D9.13604620--
------------------------------
Date: Mon, 4 Jan 1999 15:28:33 -0500
From: "<usampr01@kajal.shafika.vetri.com>" <usampr01@SHAFIKA.VETRI.COM>
Subject: Sending VSCROLL Message...
Hello,
Can any one tell me how to send VERTICAL SCROLL Message to another
MDI Application? The problem I am having is, I couldn't find out the
handle of another MDI Application's child window. Please help me.
TIA,
Prasanna
**~~**~~**~~**~~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~
Death is life's way of telling you you've been fired.
**~~**~~**~~**~~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~**~
------------------------------
Date: Mon, 4 Jan 1999 11:16:54 +0100
From: Mats M錸hav <mats@MOONSEA.COM>
Subject: Unicode on Windows 95
Environment: MSVC 6.0 (sp1) Win NT 4.0 (sp4) and Windows 95
Hello,
I am building an application with UNICODE support on my NT machine.
Will this work on Windows 95, too ?
Best regards,
Mats
mailto:mats@moonsea.com
------------------------------
Date: Mon, 4 Jan 1999 18:10:50 +0530
From: Aditya Kumar <aditya@TITANIUM.NOIDA.HCLT.COM>
Subject: Re: file path to be #defined : Thanks
Hi ,
Thanks to everyone who replied . I shouldnt have used the words "hard code " .
Zbyszek is right . I justed wanted to know the elegant way to write a #define
statement .
Hard coding is fine with me because this is a path to a default directory from
where I load data .
I dont mind recompiling the program if this path changes . I wanted to use
#define because then I will have to make a change at only one place , insted of
searching the code .
Thanks again ,
Aditya
David Roe wrote:
> if you #define it, you ARE hard coding it. you also need to explain yourself
> a little more clearly. do you want to hard code the directory but not the
> filename?
>
> some options are:
>
> #define FILE_PATH "C:\\tmp\\foo"
> sprintf(szPathname,"%s\\foo.bmp",FILE_PATH);
> OpenFile(szPathname);
>
> #define FILE_PATH "C:\\tmp\\foo\\foo.bmp"
> OpenFile(FILE_PATH);
>
> #define FILE_PATH "C:\\tmp\\foo\\foo.bmp"
> GetPrivateProfileString("Pathnames","BmpFilePath",FILE_PATH,szPathname,MAX_P
> ATH,"APPNAME.INI");
> <or equivalent code for reading from the registry>
> OpenFile(szPathname);
>
> hope this helps.
> /david
>
> >
> > I dont want to hard - code the directory path for a file which I want to
> > open .
> > How do I #define it ?
> >
> > e.g suppose I want to load "C:\tmp\foo\foo.bmp"
> >
> > do I write #define FILE_PATH "C:\tmp\foo\
> > and in code I open the file with FILE_PATH\foo.bmp"
> >
> > This does not look elegant . Any suggestions ?
> > TIA .
> > -- Aditya
> >
------------------------------
Date: Mon, 4 Jan 1999 09:21:07 -0400
From: grt <grt@WOW.NET>
Subject: Re: SP1 for Visual Studio
On 4 Jan 99, at 11:09, Serge Darii wrote:
> I have a problem. Environ: VC++6.0; WinNT 4.
> After I install the SP1 for Visual Studio I cannot launch MSDEV.EXE because
> get an error : abnormal program termination, just after starting.
> When I return to MFC42.DLL version 6.0.8141, msdev.exe launched succesfully.
> The version of SP1 mfc42.dll is 6.0.8267, but version of msdev.exe is
6.0.8141.
> Does anyone know where can I download the 8267 version of msdev.exe or how
can I solve this problem?
FWIW, I've got MSDEV.EXE version 6.00.8168.1 with the
MFC42.DLL version 6.00.8267.0 and all works well.
(VC++ 6.0 SP1 + NT 4.0 SP4 + IE5)
Your version of MSDEV.EXE seems odd
Gerard R Thomas
Port of Spain, Trinidad and Tobago
mailto:grt@wow.net mailto:grt@geocities.com
PGP Key IDs: RSA:0x9DBCDE7D DH/DSS:0xFF7155A2
------------------------------
Date: Mon, 4 Jan 1999 09:10:56 -0600
From: Jeff Nygren <Jeff_Nygren@DATACARD.COM>
Subject: Re: <no subject>
--IMA.Boundary.217264519
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part
Search MSDN on "LNK2001" and you will find a good explanation and a solution
for this problem.
Jeff
______________________________ Reply Separator _________________________________
Subject: <no subject>
Author: Serge Darii <serged@PETROLBANK.COM> at Internet
Date: 12/30/98 3:37 PM
Hi all!
I have a linker problem with Win32 Release MinDependency.
When I try to compile an ATL project (EXE server) , I receive a message
"LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/ArchCopy.exe : fatal error LNK1120: 1 unresolved
externals".
This error appeared when I use time.h header for localtime function.
Any my attemption with combination of comple options /ML, /NOD...
have no success.
Any ideas?
Thanks in advance,
best regards
Serge Darii, Computer Programmer,
IT Department, PetrolBank SA,
Chisinau, Moldova,
Phone: (3732) 500180
E-mail: serged@petrolbank.com
--IMA.Boundary.217264519
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2>Hi all!</FONT></DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2></FONT> </DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2>I have a linker problem with
Win32 Release MinDependency.</FONT></DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2></FONT><FONT face="ARIAL CYR"
size=2>When I try to compile an ATL project (EXE server) , I receive a
message</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2>"LIBCMT.lib(crt0.obj) : error LNK2001:
unresolved external symbol _main<BR>ReleaseMinDependency/ArchCopy.exe : fatal
error LNK1120: 1 unresolved externals".</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2>This error appeared when I use time.h header
for localtime function.</FONT></DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2>Any my attemption with
combination of comple options /ML, /NOD... </FONT></DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2>have no success.</FONT></DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2></FONT> </DIV>
<DIV><FONT face="ARIAL CYR" size=2>Any ideas?</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2></FONT> </DIV>
<DIV><FONT face="ARIAL CYR" size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2>best regards </FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000 face="Arial Cyr" size=2>Serge Darii, Computer
Programmer,<BR>IT Department, PetrolBank SA,<BR>Chisinau,
Moldova,<BR>Phone: (3732) 500180<BR>E-mail: <A
href="mailto:serged@petrolbank.com">serged@petrolbank.com</A></FONT></DIV></DIV>
</BODY></HTML>
--IMA.Boundary.217264519--
------------------------------
Date: Mon, 4 Jan 1999 11:27:49 -0400
From: Chris O'Leary <COLEARY@AGRI.NS.CA>
Subject: Winmm.lib
I've been writing an application that uses the PlaySound() function from
"winmm.lib" I've included the .lib file in my project settings, and
called the function correctly, however, when I compile it, VC can't seem
to resolve the call or any of it's associated constants (SND_*). Do I
need to include a header file as well? If so, what header?
Any suggestions would be helpful.
TIA
------------------------------
Date: Mon, 4 Jan 1999 15:28:40 -0000
From: Jason Birch <jason.birch@BBC.CO.UK>
Subject: Re: Winmm.lib
#include <mmsystem.h>
=========================================================
BBC News Online
Jason Birch - Software Engineer
Business
e-mail: jason.birch@bbc.co.uk
Site: http://news.bbc.co.uk/default.htm
Personal
e-mail: jason.birch@btinternet.com
Site: http://www.btinternet.com/~jason.birch/default.htm
=========================================================
-----Original Message-----
From: Chris O'Leary [SMTP:COLEARY@AGRI.NS.CA]
Sent: 04 January 1999 15:28
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Winmm.lib
I've been writing an application that uses the PlaySound() function
from
"winmm.lib" I've included the .lib file in my project settings, and
called the function correctly, however, when I compile it, VC can't
seem
to resolve the call or any of it's associated constants (SND_*). Do
I
need to include a header file as well? If so, what header?
Any suggestions would be helpful.
TIA
--------------------------------------------------------------------------
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: Mon, 4 Jan 1999 09:00:45 -0800
From: Bill Hunka <wlhunka@HWY97.COM>
Subject: GetEffectiveRightsFromAcl
Environ: nt 4 workstation SP 3, VC 6 sp 1
I have been trying to get the rights of a user for file objects using
GetEffectiveRightsFromAcl. If a user is within a group which has rights then
the function should return those rights. Has anyone else had experience with
this function?
------------------------------
Date: Tue, 5 Jan 1999 02:18:33 +0800
From: iban <iban@IHW.COM.CN>
Subject: How Can I make an NT SERVICES using ATL COM WIZARD
This is a multi-part message in MIME format.
------=_NextPart_000_0046_01BE3851.B1CF1E80
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
How Can I make an NT SERVICES using ATL COM WIZARD?
=20
------=_NextPart_000_0046_01BE3851.B1CF1E80
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Dgb2312 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>How Can I make an NT SERVICES using =
ATL COM=20
WIZARD?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0046_01BE3851.B1CF1E80--
------------------------------
Date: Tue, 5 Jan 1999 02:18:41 +0800
From: iban <iban@IHW.COM.CN>
Subject: =?gb2312?B?u9i4tDogTWFzdGVyaW5nIFZpc3VhbCBDKysgNi4w?=
There are so much books,but no book tells how to build a Windows NT
service........Can anyone help me?
>What do you think about this book? (Mastering Visual C++ 6.0) Is it worth
it
>of buying?
>
>Regards,
>Paulo Jorge Matos
>
>--------------------------------------------------------------------------
>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: Mon, 4 Jan 1999 15:26:11 -0500
From: Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: ??: Mastering Visual C++ 6.0
Hello iban,
There are some sample service apps available through MSDN. One was
written by Nigel Thompson called "Creating a Simple Windows NT Service in
C++". If you are really itching to buy a book you can get "NT Services"
published by Wrox Press.
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: iban [SMTP:iban@IHW.COM.CN]
Sent: Monday, January 04, 1999 12:19 PM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: ??: Mastering Visual C++ 6.0
There are so much books,but no book tells how to build a Windows NT
service........Can anyone help me?
>What do you think about this book? (Mastering Visual C++ 6.0) Is it
worth
it
>of buying?
>
>Regards,
>Paulo Jorge Matos
>
>--------------------------------------------------------------------------
>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: Mon, 4 Jan 1999 21:48:34 +0100
From: Dan Lofquist <danne@POLYMORPH.SE>
Subject: Re: How Can I make an NT SERVICES using ATL COM WIZARD
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01BE382B.F9E3AEF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
It's easy, just check the 'Service (EXE)' and you got yourself a
NT Service.
Regards Dan
-----Original Message-----
From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of iban
Sent: Monday, January 04, 1999 7:19 PM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: How Can I make an NT SERVICES using ATL COM WIZARD
How Can I make an NT SERVICES using ATL COM WIZARD?
------=_NextPart_000_000B_01BE382B.F9E3AEF0
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=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D875494720-04011999><FONT color=3D#0000ff =
face=3DVerdana size=3D2>It's=20
easy, just check the 'Service (EXE)' and you got yourself =
a</FONT></SPAN></DIV>
<DIV><SPAN class=3D875494720-04011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D875494720-04011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>NT Service.</FONT></SPAN></DIV>
<DIV><SPAN class=3D875494720-04011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D875494720-04011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2>Regards Dan</FONT></SPAN></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
size=3D2>-----Original Message-----<BR><B>From:</B> Microsoft Visual =
C++=20
programmers list [mailto:MSVC@PEACH.EASE.LSOFT.COM]<B>On Behalf =
Of</B>=20
iban<BR><B>Sent:</B> Monday, January 04, 1999 7:19 PM<BR><B>To:</B>=20
MSVC@PEACH.EASE.LSOFT.COM<BR><B>Subject:</B> How Can I make an NT =
SERVICES=20
using ATL COM WIZARD<BR><BR></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>How Can I make an NT SERVICES =
using ATL COM=20
WIZARD?</FONT></DIV>
<DIV><FONT color=3D#000000 =
size=3D2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000B_01BE382B.F9E3AEF0--
------------------------------
Date: Mon, 4 Jan 1999 21:13:25 -0000
From: Cliff Rowley <crowley@NOSPLASH.FORCE9.CO.UK>
Subject: Multiple CSplitterWnd's?
Operating System - Windows98
Development System - MSVC++ 6 w/ SP1
*NOTE: Please view in a fixed-width font*
I am writing a web spider for my Wife geared specifically towards children
and nursery education, and for this I would like the main window to have a
layout similar to this:
*******************************
* * *
* * *
* * *
* * *
* * *
* * *
* * *
*******************************
* *
*******************************
The bottom window is the status window, the left hand pane is the local
directory tree, and the right hand pane is the remote sitemap.
Is it possible to embed 2 splitter windows in the main frame to achieve
this? Or will I have to create a splitter window in the upper view? If so,
where do I get the CCreateContext from? There is no OnCreateClient in a
view or generic CWnd class.
Your help is much appreciated.
Cliff Rowley
------------------------------
Date: Tue, 5 Jan 1999 08:52:38 +0800
From: iban <iban@IHW.COM.CN>
Subject:
=?gb2312?B?u9i4tDogSG93IENhbiBJIG1ha2UgYW4gTlQgU0VSVklDRVMgdXNpbmcgQVQ=?=
=?gb2312?B?TCBDT00gV0k=?=
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01BE3888.BEF53040
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Thanks Dan.
I wasn't very clear how to insert my own codes in the program,
As you know ,in classs CServiceModule::Run() method there are some =
lines as following:
MSG msg;
whild(GetMessage(&msg,0,0,0)) DispatchMessage(....)
I don't know how to process message here and how to do my own work
in this Run() method?
It's easy, just check the 'Service (EXE)' and you got yourself a
NT Service.
=20
Regards Dan
-----Original Message-----
From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of iban
Sent: Monday, January 04, 1999 7:19 PM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: How Can I make an NT SERVICES using ATL COM WIZARD
=20
=20
How Can I make an NT SERVICES using ATL COM WIZARD?
=20
=20
=20
------=_NextPart_000_000F_01BE3888.BEF53040
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Dgb2312 http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">Thanks=20
Dan.</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">I=20
wasn't very clear how to insert my own codes in the =
program,</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">As=20
you know ,in classs CServiceModule::Run() method there are some =
lines as=20
following:</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">MSG=20
msg;</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">whild(GetMessage(&msg,0,0,0))=20
DispatchMessage(....)</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">I=20
don't know how to process message here and how to do my own =
work</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">in=20
this Run() method?</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">It's=20
easy, just check the 'Service (EXE)' and you got yourself a<BR>NT=20
Service.<BR><BR>Regards Dan<BR> -----Original=20
Message-----<BR> From: Microsoft Visual C++ =
programmers=20
list<BR>[<A=20
=
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">mailto:MSVC@PEACH.EASE.LSOFT.CO=
M</A>]On=20
Behalf Of iban<BR> Sent: Monday, January 04, 1999 =
7:19=20
PM<BR> To: <A=20
=
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A><B=
R> =20
Subject: How Can I make an NT SERVICES using ATL COM=20
WIZARD<BR><BR><BR> How Can I make an NT SERVICES =
using ATL=20
COM WIZARD?<BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000F_01BE3888.BEF53040--
------------------------------
Date: Mon, 4 Jan 1999 20:50:36 -0800
From: Joe Stagner <Joe@ASPGURUS.COM>
Subject: Re: 回复: Mastering Visual C++ 6.0
WROX just published a book specifically on Programming NT Services.
See: www.wrox.com
-Joe@ASPGurus.com
----- Original Message -----
From: iban <iban@IHW.COM.CN>
To: <MSVC@peach.ease.lsoft.com>
Sent: Monday, January 04, 1999 10:18 AM
Subject: =BB=D8=B8=B4: Mastering Visual C++ 6.0
>There are so much books,but no book tells how to build a Windows NT
>service........Can anyone help me?
>
>>What do you think about this book? (Mastering Visual C++ 6.0) Is it wor=
th
>it
>>of buying?
>>
>>Regards,
>>Paulo Jorge Matos
>>
>>-----------------------------------------------------------------------=
---
>>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: Tue, 5 Jan 1999 02:58:12 +0100
From: Dan Lofquist <danne@POLYMORPH.SE>
Subject: Re: How Can I make an NT SERVICES using ATL COM WIZARD
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01BE3857.3B3D83F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by akira.grasberg.net id
DAA05075
Hi there,
If you are going to create a NT-Service with an COM interface then the
COM-Wizard
is the one to use. But if you are going to create a NT -Service that does
not contain
a COM interface it's better to either implement the functions yourself or
get a NT-Service
class template from http://www.codeguru.com.
So if you going to implement COM use the ATL Wizard and implement your co=
de
in the
Interfaces your create. You can also add some init code before the call i=
s
made to
CServiceModule::Run().
BTW a NT Service can not have any interactions with the user what so ever
it's just
a silent program that are running in the background that does stuff ! One
common
way to use NT Services is to have them control communications of some for=
m.
I've
done some that handles communications between PC and Mainstream for examp=
le.
One smart thing about services is that you can start and stop them from
another
computer through the NET commands.
Hope this brings some light :-)
Regards Dan
-----Original Message-----
From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of iban
Sent: Tuesday, January 05, 1999 1:53 AM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: =BB=D8=B8=B4: How Can I make an NT SERVICES using AT L COM W=
I
Thanks Dan.
I wasn't very clear how to insert my own codes in the program,
As you know ,in classs CServiceModule::Run() method there are som=
e
lines as following:
MSG msg;
whild(GetMessage(&msg,0,0,0)) DispatchMessage(....)
I don't know how to process message here and how to do my own wor=
k
in this Run() method?
It's easy, just check the 'Service (EXE)' and you got yourself a
NT Service.
Regards Dan
-----Original Message-----
From: Microsoft Visual C++ programmers list
[mailto:MSVC@PEACH.EASE.LSOFT.COM]On Behalf Of iban
Sent: Monday, January 04, 1999 7:19 PM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: How Can I make an NT SERVICES using ATL COM WIZARD
How Can I make an NT SERVICES using ATL COM WIZARD?
------=_NextPart_000_000A_01BE3857.3B3D83F0
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=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>Hi there,</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana size=3D2>If=20
you are going to create a NT-Service with an COM interface then the=20
COM-Wizard</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>is the one to use. But if you are going to =
create a NT=20
-Service that does not contain</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>a COM interface it's better to either implement =
the=20
functions yourself or get a NT-Service</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>class template from <A=20
href=3D"http://www.codeguru.com">http://www.codeguru.com</A>.</FONT></SPA=
N></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana size=3D2>So=20
if you going to implement COM use the ATL Wizard and implement your code =
in=20
the</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>Interfaces your create. You can also add some =
init code=20
before the call is made to</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2>CServiceModule::Run().</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana size=3D2>BTW=20
a NT Service can not have any interactions with the user what so ever =
it's=20
just</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>a silent program that are running in the =
background that=20
does stuff ! One common</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>way to use NT Services is to have them control=20
communications of some form. I've</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>done some that handles communications between PC =
and=20
Mainstream for example.</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>One smart thing about services is that you can =
start and=20
stop them from another </FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN><SPAN class=3D203154601-05011999><FONT =
color=3D#0000ff=20
face=3DVerdana size=3D2>computer through the NET =
commands.</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana size=3D2>Hope=20
this brings some light :-)</FONT></SPAN></DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D203154601-05011999><FONT color=3D#0000ff =
face=3DVerdana=20
size=3D2>Regards Dan</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
size=3D2>-----Original Message-----<BR><B>From:</B> Microsoft Visual =
C++=20
programmers list [mailto:MSVC@PEACH.EASE.LSOFT.COM]<B>On Behalf =
Of</B>=20
iban<BR><B>Sent:</B> Tuesday, January 05, 1999 1:53 AM<BR><B>To:</B> =
<A=20
=
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A><B=
R><B>Subject:</B>=20
»Ø¸´: How Can I make an NT SERVICES using =
AT L COM=20
WI<BR><BR></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">Thanks=20
Dan.</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">I=20
wasn't very clear how to insert my own codes in the =
program,</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">As=20
you know ,in classs CServiceModule::Run() method there are some =
lines as=20
following:</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">MSG=20
msg;</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">whild(GetMessage(&msg,0,0,0))=20
DispatchMessage(....)</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">I=20
don't know how to process message here and how to do my own=20
work</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">in=20
this Run() method?</BLOCKQUOTE>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; =
PADDING-LEFT: 5px">It's=20
easy, just check the 'Service (EXE)' and you got yourself =
a<BR>NT=20
Service.<BR><BR>Regards Dan<BR> -----Original=20
Message-----<BR> From: Microsoft Visual C++=20
programmers list<BR>[<A=20
=
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">mailto:MSVC@PEACH.EASE.LSOFT.CO=
M</A>]On=20
Behalf Of iban<BR> Sent: Monday, January 04, =
1999 7:19=20
PM<BR> To: <A=20
=
href=3D"mailto:MSVC@PEACH.EASE.LSOFT.COM">MSVC@PEACH.EASE.LSOFT.COM</A><B=
R> =20
Subject: How Can I make an NT SERVICES using ATL COM=20
WIZARD<BR><BR><BR> How Can I make an NT =
SERVICES using=20
ATL COM =
WIZARD?<BR><BR><BR><BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000A_01BE3857.3B3D83F0--
------------------------------
End of MSVC Digest - 2 Jan 1999 to 4 Jan 1999 (#1999-4)
*******************************************************
--
※ 转载:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店