Create map and bus query system by VC

Source: Internet
Author: User

Luo yunbin's compilation books are also included in the series, and there are not many accumulated books. But this "80x86 Assembly Language Programming Tutorial" is even better!

 

There is not much information in this regard. For example, Google also has a development library, and there is no time to study it in depth. I always think that it is too troublesome for VC to develop maps and interface libraries. It is better to develop Web platforms, especially beautiful interfaces. Below is a map bus query system developed on Web platforms, insert a web broswer control in VC and write a line of code.

 

Program running effect:

 

1. Insert the web browser control, for example:

 

2. Double-click the registered ActiveX controls folder.

 

3. Find Microsoft Web browser and click Insert to keep the default settings:

 

4. Add a button, drag a web browser control from the right, associate the variable m_webbrowser, and add code in the initial function of the dialog box:

//////////////////////////////////////// /// // <Br/> // cmapdlg message handlers </P> <p> bool cmapdlg:: oninitdialog () <br/>{< br/> cdialog: oninitdialog (); </P> <p> ...... </P> <p> // set the icon for this dialog. the framework does this automatically <br/> // when the application's main window is not a dialog <br/> seticon (m_hicon, true ); // set big icon <br/> seticon (m_hicon, false); // set small icon </P> <p> // todo: add extra initialization here <br/> // start loading the webpage here <br/> m_webbrowser.navigate ("http://uu.51ditu.com/uu3/51ditu.html", null, null ); </P> <p> return true; // return true unless you set the focus to a control <br/>}

 

5. Compile and run the command. The source code is successfully compiled and tested in vc6.0 + WINXP SP3. The source code is as follows:

 

Http://www.rayfile.com/files/b57cfb5c-8c9a-11de-9d65-0014221b798a/

 

Http://download.csdn.net/source/1588550

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.