English 中文(简体)
VB6, 如何限制用户访问文件夹中的 html 文件
原标题:VB6, How to limit user access to html files inside a folder
  • 时间:2012-05-22 16:51:24
  •  标签:
  • html
  • vb6

" 你好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,大家好,好,好,好,好,好,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

i want to display some HTML file in a visual basic 6 application and i use the browser object. is there anyway to prevent these files to be viewed by other browsers? in other words, i want only my application can access the HTML file s contents. could you bring me an example about your solution if you have one?

<强 > 注: html文件在用户计算机(离线)中,我不想使用.net。

谢 谢

最佳回答

Web Browser 控制( IE 的一部分,不是 VB6) 将接受使用 < code>res: 协议的导航。 这意味着您可以在程序内嵌入 HTML 资源, 或者创建单独的 HTML 资源 DLL 。

使用“ HTML” 作为资源 < em> type 类型 , 使用每个项目的“ 文件名称” 作为资源 < em> id

然后访问相当简单:

WebBrowser1.Navigate "res://" & App.Path _
                   & "" & App.EXEName _
                   & ".exe/HTML/sample.htm"

图像和其他链接项目可使用相对 URL :

<body background="image.jpg">

... 其中 image.jpg 是包含 JPEG 图像的另一种 HTML 资源 。

这不会提供类似加密的东西, 但是它确实会减少 随意挖掘和查看你的 HTML 的可能性。

问题回答

暂无回答




相关问题
Prevent windows from queuing shellexecute requests

Win.ShellExecute 0, "open", "C:dirprogram.exe", "arguments", vbNullString, SW_SHOWNORMAL Win.ShellExecute 0, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL I want google....

Why is My Loop Only Deleting One File?

Using VB6 In a folder, i have n number of files, i want to delete a 0 kb files code Dim filename5 As String filename5 = Dir$(txtsourcedatabasefile & "*_*", vbDirectory) MsgBox filename5 Do ...

How to check the filesize?

Using VB6 I have the text file with different sizes, so i want to delete the file where filesize = 0 kb. How to make a vb6 code for deleting the 0 kb files. Need vb6 code Help

File Rename problem?

I m using VB6 and I have a folder where I have n number of files. I want to change the file extension to .txt. I used the code below to change the extension of all .fin files to .txt. Dim filename1 ...

Error 20728-F while in using Crystal Reports in VB6

I m using Crystal Reports in my VB6 project, but I m facing error while loading the report in crystalreport1.action=1; Please give me some solution for this problem. It is showing the error as Error ...

DllRegisterServer entry point was not found

When running my vb6 application I am getting error like, runtime error 53 : file not found: rscomclNoMsg.dll then i tried to register that dll from cmd line using regsvr32. Then I am getting ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签