将C ++与HTML链接 [英] Linking C++ with HTML

查看:111
本文介绍了将C ++与HTML链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

有一个网站,其中包含文本输入框和相应的命令按钮.就像Google网站一样,在其中以文本形式输入查询并单击命令按钮搜索".

我想将C ++程序输出中生成的文本链接到该文本输入框,并在定期间隔后自动执行命令.这就像一个循环,其中重复输入文本并执行命令的过程,但文本会发生变化.

谢谢..

hello

There is a website containing a text input box and a corresponding command button. It''s like the website Google where one enters the query in text and clicks the command button ''Search''.

I want to link a text generated in a C++ program''s output to that text input box and execute the command automatically after regular intervals. It''s like a loop where the process of inputting a text and executing a command is repeated but with the text changing.

Thanks..

推荐答案

使用C#可能更容易.您需要将IE托管为控件,然后访问该网页的DOM,以便可以对其进行操作.
This is probably easier to do with C#. You need to host IE as a control, then access the DOM of that web page so you can manipulate it.


这篇关于将C ++与HTML链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆