荔园在线

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

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


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

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

Topics of the day:

  1. Printing problem
  2. VC++, ODBC, ACCESS, IMAGES, and ISAPI
  3. Posts to this list (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:    Sun, 20 Dec 1998 03:56:52 -0500
From:    Srikanth C G <srikanth_cg@TRIGENT.COM>
Subject: Re: Printing problem

I think the problem is that OpenPrinter takes the Printer Name as argument
and you are trying to pass Port Name as parameter. Check this out.

>     BOOL result = OpenPrinter("LPT1",&pHandle,NULL);
                                      ^^^^^^
This must be printer name (like "HP Laser Jet 5/5M Postscript") and not
port name.
And also for your information, if somewhere else you are using the port
name , it should be "LPT1:" - the colon is also necessary.

Srikanth C.G.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
                    _____________________________________
                   |        C. G. Srikanth               |
                   |        Software Engineer            | _
                / )|        Trigent Software Limited,    |( \
               / / |        620, 80 Feet Road, 8th Block,| \ \
             _( (_ |        Koramangala,                 | _) )_
            (((\ \>|_/->____Bangalore - 560 095______<-\_|</ /)))
            (\\\\ \_/ /                               \ \_/ ////)
             \       / Email:srikanth_cg@trigent.com   \       /
              \    _/  Phone:91-80-571-0711 extn 1820   \_    /
              /   /                                       \   \

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~

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

Date:    Sun, 20 Dec 1998 15:33:00 +0000
From:    Melvin Legge <mlegge@FIRSTCITY.NET>
Subject: VC++, ODBC, ACCESS, IMAGES, and ISAPI

Hi

I am hoping that there is someone experienced with ISAPI programming
on this list.

My problem is that I have an ACCESS database which I am hooking up to
a web page with ISAPI, IIS4.0.  I have no problem querying the
numeric and text fields and sending them to the web.  Images are
giving me a real headache.

I have some jpeg images stored in the ACCESS database as OLE
Packages.  I have a function in my ISAPI extension DLL(called from
the web browser as <IMG SRC="vessel.dll?sendPicture"> )which reads
the picture field from the database as a CLongBinary object. This
function then sends a header to the web client setting the header
content-type to image/jpeg bla,bla,bla.

I then try to write the data to the web client as follows:

WriteClient(GlobalLock(dataSet.m_Picture.m_hData), .......);
GlobalUnlock(...);

What happens then is that the data is transmitted to the web browser
but the browser doesn't seem to understand the data format.

I have experimenting with trying to read the picture data from the
database(as a CLongBinary) and write it to a file using CFile as
follows:

Write(dataSet.m_picture.m_hData, ...).

Again, if I try to open the created file using a jpeg viewer, it
doesn't recognize the format.  It seems like I am not only writing
the jpeg info but also some of the OLE wrapper stuff as well.  Am I
correct?  If so, any idea how to extract just the jpeg data and write
it to a file or send it to the web browser?


Thanks
Mel

VC++ 5.0, MFC 4.0, WinNT 4.0, IIS 4.0, Access97 ODBC database and
driver

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

Date:    Mon, 21 Dec 1998 09:48:51 +0800
From:    Lei Yin <leiyin@263.NET>
Subject: Re: Posts to this list

On Fri, 18 Dec 1998, David Roe wrote:

> I never see any of my posts to this list, regardless of whether they are
> replies to other posts. Could anyone please confirm (by mail to
> mailto:dud@sydney.net) that they are getting through. Thanks.
>
Seems this is not your personal problem. I couldn't get my posts too.
Maybe in this mailing list, the configure is setted as delivering messages
to all members except poster himself.

---
Lei Yin                          __________________________________________
                                 )  M r. L e i   Y i n =================== )_
   ,-~~-.___.                   / State Key Laboratory of Millimeter Wave / /
  / |  '     \            ()   / Radio Eng. Dept. , Southeast University / /
 (  )         0         O     /........................................./ /
  \_/-, ,----'        o      / E-mail: Lei Yin <leiyin@263.net>        / /
     ====           //      /     Tel: +86-25-3793276     (Office)    / /
    /  \-'~;    /~~~(O)    /           +86-550-3025280    (Home)     / /
 =(  _____| (_________ |  (_________________________________________(_/

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

Date:    Sun, 20 Dec 1998 23:35:15 -0500
From:    Richard Pickett <Richard.Pickett.rpickett@NORTELNETWORKS.COM>
Subject: Re: Posts to this list

This is really odd, I seem to get all the messages I post to this list.

But for those of you that are having a problem, try this.  Send "SET  MSVC
REPRO" in the body of an email (without the quotes) to
LISTSERV@PEACH.EASE.LSOFT.COM <mailto:LISTSERV@PEACH.EASE.LSOFT.COM> .  This
should tell the list server to send you a copy of your own posts.

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:   Lei Yin [SMTP:leiyin@263.NET]
        Sent:   Sunday, December 20, 1998 7:49 PM
        To:     MSVC@PEACH.EASE.LSOFT.COM
        Subject:        Re: Posts to this list

        On Fri, 18 Dec 1998, David Roe wrote:

        > I never see any of my posts to this list, regardless of whether
they are
        > replies to other posts. Could anyone please confirm (by mail to
        > mailto:dud@sydney.net) that they are getting through. Thanks.
        >
        Seems this is not your personal problem. I couldn't get my posts
too.
        Maybe in this mailing list, the configure is setted as delivering
messages
        to all members except poster himself.

        ---
        Lei Yin
__________________________________________
                                         )  M r. L e i   Y i n
=================== )_
           ,-~~-.___.                   / State Key Laboratory of Millimeter
Wave / /
          / |  '     \            ()   / Radio Eng. Dept. , Southeast
University / /
         (  )         0         O
/........................................./ /
          \_/-, ,----'        o      / E-mail: Lei Yin <leiyin@263.net>
/ /
             ====           //      /     Tel: +86-25-3793276     (Office)
/ /
            /  \-'~;    /~~~(O)    /           +86-550-3025280    (Home)
/ /
         =(  _____| (_________ |
(_________________________________________(_/


--------------------------------------------------------------------------
        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 - 19 Dec 1998 to 20 Dec 1998 (#1998-347)
***********************************************************
--
※ 转载:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


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

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