Is it possible to design a Web Browser using C/C++ in Turbo C++ compiler by network programming ?

Dani AI

Generated

A short, practical view that updates the thread discussion and gives concrete next steps.

Replies from , , , and raise the right concerns: what environment Turbo C++ targets and what level of browser functionality is expected. The technical reality is that building a full, modern browser requires networking plus a renderer, DOM/layout, JavaScript engine and TLS — a substantial project. Two realistic approaches are useful to distinguish.

One learning path is a small, text-orientated browser implemented with a modern toolchain (GCC/Clang/MSVC) and reusable libraries: use libcurl for HTTP(S), an HTML parser such as Gumbo to build a simple DOM, and a lightweight drawing layer (SDL/Cairo) for rendering. This lets a single developer learn networking, parsing and basic layout without reimplementing engines.

The practical product path is to embed an existing engine (far less work): use QtWebEngine (Chromium-based) or the Chromium Embedded Framework (CEF) to get full HTML5/CSS/JS support and TLS out of the box. See Qt WebEngine and the CEF wiki.

Minimal project checklist:

  • pick a modern compiler/OS that provides sockets and TLS support;
  • fetch pages (libcurl) and handle HTTPS (TLS);
  • parse HTML to a simple DOM (Gumbo) and map tags to a basic box model;
  • implement simple layout and render to a window or terminal;
  • add link navigation and resource fetching.

Note: insisting on old Turbo C++ (DOS/16-bit) introduces major hurdles (missing modern socket/TLS stacks and libraries). For educational experiments that strictly require Turbo-era tools, expect to rely on legacy TCP/IP stacks or a TLS-terminating proxy, but for any practical browser work a modern toolchain is strongly recommended.

Recommended Answers

All 4 Replies

Yes.

What version of Turbo C++? If its a 16-bit compiler then probably not.

Why would anyone prefer Turbo C++ anyway?

It is possible (a lot of old browsers were written in TC) but Turbo C++ is old and no one uses it anymore.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.