利用RC.EXE和RCDLL.DLL创建VB6资源文件

这篇博客介绍了如何利用RC.EXE和RCDLL.DLL来创建VB6的资源文件。通过提供的代码示例,作者展示了如何编写和使用这些工具,最终完成资源文件的创建,并显示了完成提示。此外,文章还包含了一些VB相关的其他文章推荐。
摘要由CSDN通过智能技术生成

程序代码:  

'*************************************************************************
'**模 块 名:modMain
'**说    明:杨兴宇 版权所有2010 - 2011(C)
'**创 建 人:杨兴宇
'**日    期:2010-1-14 16:27:50
'**修 改 人:
'**日    期:
'**描    述:不要迷恋哥,哥只是个传说
'**版    本:V1.0.0
'*************************************************************************
Option Explicit

Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredaccess&, ByVal bInherithandle&, ByVal dwProcessid&) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpexitcode As Long) As Long

Private Const STILL_ACTIVE = &H103
Private Const PROCESS_QUERY_INFORMATION = &H400

Sub Main()

    Open App.Path & "/Capture.RC" For Output As #1
    Print #1, vbNullString;
    Close #1
    
    
    Open App.Path & "/Capture.RC" For Append As #1
    Print #1, 100 & Space(2) & "CUSTOM" & Space(2) & App.Path & "/USImage.mdb"
    Close #1
    
    ShellSomePE App.Path & "/RC.EXE /r Capture.RC"

    Kill App.Path & "/Capture.RC"
    
    MsgBox "完成"

End Sub

Public Sub ShellSomePE(ByVal lpCommandLine As String)

    Dim hShell  As Long
    Dim hProc   As Long
    Dim lExit   As Long
    
    hShell = Shell(lpCommandLine, vbHide)
    
    hProc = OpenProcess(PROCESS_QUERY_INFORMATION, False, hShell)
    
    Do
    
        GetExitCodeProcess hProc, lExit
        DoEvents
        
    Loop While lExit = STILL_ACTIVE
    
End Sub

 


文章出自:http://blog.csdn.net/yangxingyu/article/details/6089405

VB相关

vbline的用法[]

画图工具的VB实现

VB 一个获得自己外网 IP 地址的程序代码

VB程序中实现IP地址子网掩码网关DNS的更改 []

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值