陈锐ID:TechnoFantasy
[修改头像]
206238次访问,排名260好友7人,关注者111
喜静不喜动的一个人。
随遇而安,尽力而为。安心的做一个程序员。
TechnoFantasy的文章
原创 134 篇
翻译 2 篇
转载 4 篇
评论 92 篇
最近评论
xgl1999:貌似我和你写法一样的。可以啊。
private static string _Host = ConfigurationSettings.AppSettings["MailHost"];
private static string _SmtpMailName = ConfigurationSettings.AppSettings["SmtpMailName"……
shawls:不早说

LikeCode:谢谢,收藏了!
我发现一行
--------------
替换CSS
document.all.csss.href = "a.css";
----------------
这么的 csss 会不会错了?
rzwince:完全工程文件请下载:http://www.maeee.cn/article/it/Cjj/html/2007101916111123.html
cylot:Good,Great!
软件项目交易
订阅我的博客
XML聚合  FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
订阅到BlogLines
订阅到Yahoo
订阅到GouGou
订阅到飞鸽
订阅到Rojo
订阅到newsgator
订阅到netvibes
文章分类
收藏
    相册
    MVP新加坡会议
    Windows Vista
    豆丁
    何洁
    杂七杂八
    Graphics File Formats FAQ
    Adding Custom Buttons to Internet Explorer
    Creating a Windows DLL with Visual Basic
    Graphics File Formats FAQ (Part 1 of 4): General Graphics Format Questions
    Graphics File Formats FAQ (Part 2 of 4): Image Conversion and Display Programs
    Graphics File Formats FAQ (Part 3 of 4): Where to Get File Format Specifications
    Graphics File Formats FAQ (Part 4 of 4): Tips and Tricks of the Trade
    Visual Basic乱七八糟
    朋友的Blog
    小雨的Blog(RSS)
    瓜少之胡言乱语(RSS)
    美女苏胖墩的BLOG
    莫依的博客
    道士摄影
    马宁的Blog(RSS)
    我得主页
    AppleVB
    一些杂七杂八的东西
    40个常用的JS
    存档

    原创 CSDN问答:在VB6程序中安装打印机

    新一篇: CSDN问答:怎样程序控制IE窗口的左侧搜索栏是否打开

    Install a new printer on the system:

    http://www.devx.com/vb2themax/Tip/19284

    Private Type PRINTER_INFO_2
        pServerName As String
        pPrinterName As String
        pShareName As String
        pPortName As String
        pDriverName As String
        pComment As String
        pLocation As String
        pDevMode As Long
        pSepFile As String
        pPrintProcessor As String
        pDatatype As String
        pParameters As String
        pSecurityDescriptor As Long
        Attributes As Long
        Priority As Long
        DefaultPriority As Long
        StartTime As Long
        UntilTime As Long
        Status As Long
        cJobs As Long
        AveragePPM As Long
    End Type
    
    Private Declare Function AddPrinter Lib "winspool.drv" Alias "AddPrinterA" _
        (ByVal pName As String, ByVal Level As Long, pPrinter As Any) As Long
    Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal hPrinter As _
        Long) As Long
    
    ' Install a new printer on the system
    '   sPrinterName is the name to assign to identify the printer
    '   sDriver is a string identifying the driver for the printer
    '   sPort is the printer's COM port
    '   sComment is a comment to associate to the printer item
    '
    ' Example:
    '    Dim bOK As Boolean
    '    bOK = InstallPrinter("Epson", "Epson Stylus COLOR 440", "LPT1:", ,
    '  "My favourite printer")
    '    MsgBox "Printer added: " & bOK
    Function InstallPrinter(ByVal sPrinterName As String, ByVal sDriver As String, _
        Optional ByVal sPort As String = "LPT1:", Optional sServer As String, _
        Optional sComment As String) As Boolean
        Dim hPrinter As Long
        Dim PI As PRINTER_INFO_2
        
        ' fill the PRINTER_INFO_2 struct
        With PI
            .pPrinterName = sPrinterName
            .pDriverName = sDriver
            .pPortName = sPort
            .pServerName = sServer
            .pComment = sComment
            .pPrintProcessor = "WinPrint"
            .Priority = 1
            .DefaultPriority = 1
            .pDatatype = "RAW"
        End With
        
        ' add the printer
        hPrinter = AddPrinter(sServer, 2, PI)
        ' if successful close the printer and return True
        If hPrinter <> 0 Then
            ClosePrinter hPrinter
            InstallPrinter = True
        End If
    
    End Function
    

    发表于 @ 2005年06月28日 11:17:00|评论(loading...)|编辑

    旧一篇: CSDN问答:网络下载相关

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © TechnoFantasy