荔园在线

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

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


发信人: tang (独孤九剑), 信区: Program
标  题: MSVC Digest - 17 May 1998 to 18 May 1998
发信站: BBS 荔园晨风站 (Wed May 20 00:53:21 1998), 转信

There are 5 messages totalling 438 lines in this issue.

Topics of the day:

  1. odbc & sql & CLongBinary
  2. Detect devices on NT?
  3. SQL Server for VC++
  4. <No subject given>
  5. How to use dbgrid in vc++?

--------------------------------------------------------------------------
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Mon, 18 May 1998 10:24:17 +0200
From:    Grolms Marek <Marek.Grolms@UL.DS.MFCR.CZ>
Subject: odbc & sql & CLongBinary

Hello all,
sorry for my englisch.I have one trouble with SUBJECT . In program I
have CRecordSet,conect on SQL with ODBC, with variable CLongBinary.
Please , how is fill CLongBinary class . I want update databases.

                                                marek grolms
                                                marek.grolms@ul.ds.mfcr.cz

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

Date:    Mon, 18 May 1998 04:08:40 -0400
From:    "Swirski, Zbyszek" <Zbyszek.Swirski@AEXP.COM>
Subject: Re: Detect devices on NT?

You can use service routines to get service/device status, see MSDN for
more details or
try the following code. I took it from my program, if something is
missing, please let me
know, I'll send you the rest of the code

void CProjlistView::OnGetstatus()
{
        try
        {
                UpdateData(TRUE);
                SC_HANDLE hSCManager =
OpenSCManager(m_ComputerName,NULL,SC_MANAGER_ENUMERATE_SERVICE);
                if(hSCManager==0)DispLastError();

                SC_HANDLE h = OpenService(hSCManager, m_ServiceName,
SERVICE_ALL_ACCESS);
                if(h==0)DispLastError();
                SERVICE_STATUS Status;
                E(QueryServiceStatus(  h, &Status ));

                char buf[256];
                DWORD len=256;
                E(GetServiceDisplayName( hSCManager, m_ServiceName, buf,
&len));
                buf[len]=0;
                CString Name= buf;

                PrepareLine(Name,Status);

                m_ServiceStatus = Name;
                CloseServiceHandle(h);
                CloseServiceHandle(hSCManager);

                UpdateData(FALSE);
        }
        catch(...)
        {
                if(m_TimerID)
                {
                        KillTimer(m_TimerID);
                        m_TimerID=0;
                }
        }
}

CString CProjlistView::PrepareLine(CString &Text, SERVICE_STATUS &
Status)
{
        CString S;
        switch(Status.dwCurrentState)
        {
        case SERVICE_STOPPED: //Stopped
                S="Stopped ";
                break;
        case SERVICE_RUNNING: //Running
                S="Running ";
                break;
        case SERVICE_START_PENDING:
                S="Starting";
                break;
        case SERVICE_STOP_PENDING:
                S="Stopping";
                break;
        case SERVICE_CONTINUE_PENDING:
                S="Wait Con";
                break;
        case SERVICE_PAUSE_PENDING:
                S="Pausing ";
                break;
        case SERVICE_PAUSED:
                S="Paused  ";
                break;
        default:
                S="Unknown";
                break;
        }
        Text = S+": "+Text;
        return Text;

}
void CProjlistView::E(BOOL val)
{
        if(!val)
        {
                DispLastError();
        }
}

void CProjlistView::DispLastError()
{
        LPVOID lpMsgBuf;
        FormatMessage(  FORMAT_MESSAGE_ALLOCATE_BUFFER |
                                        FORMAT_MESSAGE_FROM_SYSTEM |

                                        FORMAT_MESSAGE_IGNORE_INSERTS,

                                        NULL,
                                        GetLastError(),
                                        MAKELANGID(LANG_NEUTRAL,
SUBLANG_DEFAULT),// Default language
                                        (LPTSTR)&lpMsgBuf,
                                        0,
                                        NULL);
// ...// Display the string.
        ::MessageBox( NULL, (const char*)lpMsgBuf, "Error", MB_OK |
MB_ICONINFORMATION );
// Free the buffer.
        LocalFree( lpMsgBuf );
        m_UpdateInformation = false;
        UpdateData(false);
}

-----Original Message-----
From: Peter Chapman [mailto:pchapman@MICROMINE.COM.AU]
Sent: Monday, May 18, 1998 3:17 AM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: Detect devices on NT?


Hi, can anyone tell me how to detect (or name of functions
to do so) whether or not a particular driver on running on NT?
(ie the drivers that appear in the Control panel | Devices list
after you install them)

Thanks in advance
Peter

--------------------------------------------------------------
  Peter Chapman
  Programmer, Software Development
  Micromine Pty Ltd
  Email: pchapman@micromine.com.au
  WWW  : http://www.micromine.com.au

  \  |_)                   _)
 |\/ | |  _|  _|  _ \  ` \  |   \   -_)
_|  _|_|\__|_|  \___/_|_|_|_|_| _|\___|
--------------------------------------------------------------

------------------------------------------------------------------------
--
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and
archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Mon, 18 May 1998 04:11:45 -0400
From:    "Swirski, Zbyszek" <Zbyszek.Swirski@AEXP.COM>
Subject: Re: SQL Server for VC++

What do you mean by 'cannot see it' ? It should be on the list of the
running services (Control Panel/Services).
If you start ISQL_w, press 'server list' button. Your local connection
should be there. Give more details, if you still have a problem
Zbyszek

-----Original Message-----
From: Doug Graham [mailto:dgraham@XYPOINT.COM]
Sent: Saturday, May 16, 1998 12:15 AM
To: MSVC@PEACH.EASE.LSOFT.COM
Subject: SQL Server for VC++


This may be a little off list.

Can anyone tell me where to find instructions for installing SQL Server
on a single PC (NT Workstation).  I want to start writing programs
around SQL Server.  To do this I want to be able to work on a single
PC.  When I install SQL Server now I have trouble getting it right.
 Like I can't see my server which should be my PC.  I have a few books
but they don't cover this type of install.

Any help appreciated.

TIA, Doug

------------------------------------------------------------------------
--
The MSVC list is hosted on a Windows NT(TM) machine running L-Soft
international's LISTSERV(R) software.  For subscription info and
archives,
see http://peach.ease.lsoft.com/archives/msvc.html .  For LISTSERV sales
information, see http://www.lsoft.com or write to SALES@LSOFT.COM.

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

Date:    Tue, 19 May 1998 10:54:19 +0900
From:    9m9m55 <9m9m55@MSN.COM>
Subject: <No subject given>

Authenticated sender is <9m9m55@msn.com>
Subject:  44 v v 6
Mime-Version: 1.0
Content-Type: text/plain; charset=3D"us-ascii"
Content-Transfer-Encoding: 7bit

EMAIL MARKETING WORKS!!

Bull's Eye Gold is the PREMIER email address collection tool.
This program allows you to develop TARGETED lists of email
addresses.  Doctors, florists, MLM, biz opp,...you can collect
anything...you are only limited by your imagination!  You can
even collect email addresses for specific states, cities, and
even countries!  All you need is your web browser and this program.
Our software utilizes the latest in search technology called
"spidering". By simply feeding the spider program a starting
website it will collect for hours. The spider will go from website
to targeted website providing you with thousands upon thousands of
fresh TARGETED email addresses. When you are done collecting,  the
spider removes duplicates and saves the email list in a ready to
send format. No longer is it necessary to send millions of ads to
get a handful of responses...SEND LESS...EARN MORE!!!

A terrific aspect of the Bull's Eye software is that there is
no difficult set up involved and no special technical mumbo-jumbo
to learn. All you need to know is how to search for your targeted
market in one of the many search engines and let the spider do the
rest! Not familiar with the search engines? No problem, we provide
you with a list of all the top search engines. Just surf to the
location of a search engine on your browser then search for the
market you wish to reach...it's that easy!

For instance if you were looking for email addresses of Doctors
in New York all you would do is:

1) Do a search using your favorite search engine by typing in
the words doctor(s) and New York
2) Copy the URL (one or more)...that's the stuff after the
http://...  for instance it might look like
http://www.yahoo.com/?doctor(s)/?New+York
3) Press the START button

THAT's IT!!!  The Bull's Eye spider will go to all the websites
that are linked, automatically extracting the email addresses
you want.

The spider is passive too! That means you can let it run all
day or all night while you are working on important things or
just having fun on your computer. There is no need to keep a
constant watch on it, just feed it your target market and give
it praise when it delivers thousands of email addresses at
the end of the day!

Features of the Bull's Eye Software:

* Does TARGETED searches of websites collecting the email
  addresses you want!
* Collects Email addresses by City, State, even specific
  Countries
* Runs Automatically...simply enter the Starting information,
  press The Start Button, and it does the rest
* Filters out duplicates
* Keeps track of URLs already visited
* Can run 24 hours per day, 7 days per week
* Fast and Easy List Management
* Also has built in filtering options...you can put in words
  that it "Must" have while searching,...you can even put in
  criteria that it  "Must NOT Have"...giving you added flexibility
* Also imports email addresses from any kind of files (text
  files, binary files, database files)
* List editor handles Multiple files to work on many lists
  simultaneously
* Has a Black-Book feature... avoid sending emails to people
  who do not want to receive it
* Built-in Mail program...send email directly on the internet
  with just a click of your mouse
* Personalized Emails...if the email address has the user's
  name when it is collected,..you can send Personalized emails!!!
* Sort by Location, Server, User Name, Contact Name
* Advanced Operations:
=B7 Email address lists export in many different formats
  (HTML, Comma delimited, text file)
=B7 Advanced editing...Transfer, Copy,  Addition, Delete, Crop,
  Move to Top/Bottom
=B7 Operations between lists...Union, Subtraction, Comparison
* Program is Passive,...meaning you can run other programs at
  the same time

CALL FOR MORE INFORMATION   213-980-7850
CALL FOR MORE INFORMATION   213-980-7850

ORDERING INFORMATION

Customer Name
Company Name
Address
City
State                       Zip
Phone                                       Fax
Email Address

______ BULL'S EYE SOFTWARE   $259.00
Includes Software, Instructions, Technical Support

______ Shipping & Handling  (2-3 Day Fedex)  $10.00
                           (Fedex Overnite) $20.00

______  TOTAL
                 (CA Residents add applicable sales tax)

*All orders are for Win 95 and Win NT

                *****CREDIT CARDS ACCEPTED*****
                   MASTERCARD   VISA   AMEX

   PLEASE CALL 213-980-7850 to process your order
                        9am-5pm Pacific Time
                Checks or Money Orders send to:
                      WorldTouch Network Inc.
5670 Wilshire Blvd.  Suite 2170 Los Angeles, CA 90036
Please note:  Allow 5 business days for all checks to
clear before order is shipped.

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

Date:    Tue, 19 May 1998 09:30:00 +0000
From:    sun dun xu <OA!ATTPOST!SDX@ATTJVSH.ATTMAIL.COM>
Subject: How to use dbgrid in vc++?

> THIS IS A MESSAGE IN 'MIME' FORMAT.  Your mail reader may not support MIME.

> Some parts of this will be readable as plain text.
> To see the rest, you may need to upgrade your mail reader.
--_3560eb85.1ba2.0_tnaumail.att.net=_
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi everyone:

When I use dbgrid in vc++, I can get the Column Object by
Dbgrid.getColumns(index) method, But how can I get the Columns object from
dbgrid? Just like VB, when you want to add a Column, the code is :
Dbgrid.Colums.add. What about the VC++ 5.0

Thanks a lot .



--_3560eb85.1ba2.0_tnaumail.att.net=_
Content-Disposition: attachment; filename="winmail.dat"
Content-Type: application/vnd.ms-tnef
Content-Transfer-Encoding: base64

eJ8+IgIBAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAAEZCQkQ5
Q0RERkFFREQxMTE4RUNBMDBBMEM5M0REMjk1AKIHAQWAAwAOAAAAzgcFABMACQAeAAEAAgAX
AQENgAQAAgAAAAIAAgABCIAHABgAAABJUE0uTWljcm9zb2Z0IE1haWwuTm90ZQAxCAEEgAEA
GwAAAEhvdyB0byB1c2UgZGJncmlkIGluIHZjKys/AK8IAQSQBgAQAQAAAQAAAAkAAAAeACA6
AQAAAAwAAAAnTVNWQ19MSVNUJwALAEA6AAAAAAMAcToAAAAAAwAVDAEAAAAeAAEwAQAAAAwA
AAAnTVNWQ19MSVNUJwAeAAMwAQAAABoAAABNU1ZDQFBFQUNILkVBU0UuTFNPRlQuQ09NAAAA
HgACMAEAAAAFAAAAU01UUAAAAAACAQswAQAAAB8AAABTTVRQOk1TVkNAUEVBQ0guRUFTRS5M
U09GVC5DT00AAAIB/w8BAAAASgAAAAAAAAAAYJRkYEG4AQgAKyuKKQAAAAAAAGQAGgAwABoA
AAAUACdNU1ZDX0xJU1QnAE1TVkNAUEVBQ0guRUFTRS5MU09GVC5DT00AAABBKgEDkAYAsAkA
ABoAAAACAQswAQAAABAAAAD7vZzd+u3REY7KAKDJPdKVAgFxAAEAAAAWAAAAAb2CxOP1F5gK
Ze63EdGwXkhMAAHwYgAAQAA5AMC9bKTFgr0BAwDxPwkEAAADAP0/qAMAAAIBRwABAAAAMAAA
AGM9VVM7YT0gO3A9bHVjZW50O2w9TlRTRVJWRVIyLTk4MDUxOTAxMzAwMVotMzczAAIB+T8B
AAAARwAAAAAAAADcp0DIwEIQGrS5CAArL+GCAQAAAAAAAAAvTz1MVUNFTlQvT1U9TlRET01B
SU4vQ049UkVDSVBJRU5UUy9DTj1TRFgAAB4A+D8BAAAACwAAAHN1biBkdW4geHUAAAIB+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GQACD/uCKtMZ4xAcG3kRtAD2AAAJ+X8AzQAZAOkVyRIC4/EP9edLemMVC4QjCgloC4v7nP
/7rZt2oPsJfwBYG8/74Pvx93t7Uf4JfwbLy/wd+6iym/v7wVkMC/xf4aMrqDYrrl/igCkccf
t3mfgcTfyf/LL//MP7/LPIDOMriPz5/Qr9G//7eXI8DOP9R/yv/Wf8feJlD/03/Zz9r/3A+e
wgsmAzCV7/+W/5gPj4+Qn1zJbaLnrOdhTxWQ5xMAQHngaSB5gnndAiBlApHpb+p4OgqFbZM3
CrPr/+p4V1cQA6BJIB/mIBNwkWBdI+LhdmMrXCss8LGt0AOgZxuAIL50VxAlwAbw5VADoE9s
w9ggYnlfsPEzLvKB8wTEcyjfIngpIAeA8sDrBHDyAELlsCCqIfIz8MC78owEIG/zhANS8RU/
7q+r6loKgErmISCKAGsTcLRWQvIAd/CC64B1+/DzAHDyoW8gXzH9APL18gD/8sIFoAEA8YAE
IG0R9CTzA/xzLvlP6mlfMf+v6lrwYZ9tQP0ABuD2MfLCVkPx4P4gs7AKdu5PAl8t0AXf6mn9
xrFr9+AHrwDK+2Cz4LtAEwT87bZ9AA1wAAMABhB6HYmjAwAHENYAAAAeAAgQAQAAAGUAAABI
SUVWRVJZT05FOldIRU5JVVNFREJHUklESU5WQysrLElDQU5HRVRUSEVDT0xVTU5PQkpFQ1RC
WURCR1JJREdFVENPTFVNTlMoSU5ERVgpTUVUSE9ELEJVVEhPV0NBTklHRVRUAAAAAAMAEBAA
AAAAAwAREAEAAAAeADcAAQAAABsAAABIb3cgdG8gdXNlIGRiZ3JpZCBpbiB2YysrPwAAnWg=


--_3560eb85.1ba2.0_tnaumail.att.net=_--

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

End of MSVC Digest - 17 May 1998 to 18 May 1998 (#1998-133)
***********************************************************
--
        There are these few times I feel lonely for you.
        But I know this shade of blue will soon pass through!
        I must be strong without you by my side!
        I can see forever you are my light.

※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


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

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