Graphics and windows programming in C++ [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Friends I read that many windows applications like Firefox browser are written in C++. So I decided to learn C++and learnt many concepts of object oriented programming. But all I can do now is simply make console program that runs in a command prompt screen with white text in black background. How can I create graphics and gui for my software. Also I see in installation directory that program fines has many different files. How can I work with many files and create a real life windows software (hey I'm not asking you how to code Microsoft office or so... Just some simple application)
Could you give me an idea how a program like Google chrome is made

You need a framework, because you need to communicate with the operating system. This also means your application will be platform dependent.
IMHO the best start is to skip learning (the ugly) Windows API and learn some multiplatform framework like Qt.
With Qt the start is easy. Just download Qt with Qt Creator, click "Wellcome/Examples", select any example, compile and you're just running your first graphic app!
The list of examples can be also found here http://doc.qt.io/qt-5/qtexamplesandtutorials.html which should give you an idea what you can do.

Related

Open chm file in Windows and Linux from C++ program [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have an application developed in C++ running in both Windows and Linux. The help file is generated as .chm file using HTML Help workshop. Is there a single way by which I can open the file in both. I found HTMLHelp WINAPI. But nothing in Linux.
You know that the proprietary CHM file format is normally generated by Micosoft HH Workshop (hhw.exe). Please note it’s 20 years old und was first shipped with IE4 and Windows 95. It’s deep integrated to the Windows operating system and Internet Explorer is required on the customers PC's.
HTML Help is in maintenance mode, which means no new features are expected for either the runtime or the compiler. All mainstream development on HH has stopped – but HTMLHelp (.chm help files) is still recommended as software application help (for offline (local) help).
I think you need one way for Windows and another for Linux. Check by code which operating system is used.
You'll find a tutorial connecting on Windows at User Assistance for your programs.
Please look at the first section of Topics entitled "Connecting Help to Your Programs".
The tutorial is entitled "Connecting HTML Help to C++/MFC Programs".
It's in .pdf format for easy downloading and study.
For Linux check other CHM Viewers e.g. Help Explorer Viewer v.3.0 for your needs.

Xcode C++ window application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm studying at university. My classmates working in Visual Studio but I have Mac and I want to work in xCode. The programming language is C++.
I need to create a window application with a button and text label. When I click on the button the text in label must change.
Can you help me? How I can create window applications in Xcode in C++ and work with UI? Thank you.
Use QT on Mac instead. Applications created using XCode can only run on OSX and iOS. Also, to create UI in XCode you need to use Interface Builder in XCode. Google Interface builder tutorial.
In general, GUI development is platform specific (Cocoa for OS X,.Net for Windows, GTK+ for Linux).
If your classes are doing GUI development, you should use whatever they are. If they are using Windows, then you need to use whatever tools and libraries they are using. If they aren't doing GUI development, then do whatever you like - but remember that GUI development is generally platform specific.
The exception to that generality is cross-platform suites like Qt (which isn't really completely cross-platform). But, like Java, that portability comes at the cost of having a massive infrastructure and unique build system. There's nothing wrong with wanting to learn and develop in it...just don't do it by ignoring your classes.
Qt does have a free open-source licensed version. You can look into it more on the Qt-project site:https://qt-project.org

Looking to develop my own small C++ browser that basically will display HTML, Javascript, and Flash, where to start? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm looking to start developing a browser (operating system isn't an issue, but preferring Linux or Windows). I'm just trying to figure out where to start. I know Visual Studio lets you drop a lightweight IE component into it, but I don't want IE's issues. I was hoping to start with a very basic mozilla build, but I cant seem to find one anywhere.
Does anyone know where I can find a good open source starting point OR how to start this on my own?
If you're not opposed to using Qt, then Qt's Webkit implementation could be a fairly clean start for cross-platform work:
http://doc.qt.nokia.com/4.7-snapshot/examples-webkit.html
Note in particular the "Fancy Browser" sample:
http://doc.qt.nokia.com/4.7-snapshot/webkit-fancybrowser.html
There are many customizations possible and ways of hooking the engine. There's also support for Flash, though I've not tried that:
http://www.qtcentre.org/threads/31547-Flash-support-for-QT-Webkit-4-6
Although you can use Qt with other compilers/IDEs, the quickest way to get started is with Qt Creator. After installing it there should only be a few clicks needed to get the QtWebkit examples building, on either Windows or Linux:
http://qt.nokia.com/products/developer-tools

PDF Rendering library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I working on a Metro Style application that need to render PDF documents (only viewing). I am looking for a library to render a .pdf document on the screen, preferably one I can include in my "commercial" app (pdf viewing is only a side functionality). Unfortunately, Windows 8 (atleast in the Dev Preview) does not have native PDF support :(
Any suggestions for a library? I am writing my app in C++/Cx.
Minor addition: Third-party options shall not use APIs that are not allowed in Metro Style apps. :-/
Alternatively, I need a PDF parser and I will try to create my own Direct2D renderer (might work ok for simple PDFs).
You could use Ghostscript, or MuPDF, I'm sure there are others. Both will require programming on your part. Both are available under commercial licences as well as GPL.
Windows 8.1 (Blue) will include PDF viwer and editor APIs (WinRT based). Therefore, this seems to be the easiest solution for my scenario.
Here's a list of development libraries on wikipedia that lists the different license types and languages alongside. Quite useful, though probably not exhaustive.
At the time of writing, ones that much your requirements of C++, Windows with a commercial license are:
Adobe PDF Library
LEADTOOLS
PDFTron

Export HTML to PDF (C++, Windows) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 11 months ago.
Improve this question
I am looking for a redistributable component to convert HTML to PDF.
I would - at the moment - like to avoid using a "PDF printer", as this requires a printer installation and some user "playing around" in the printers panel might break that feature.
The HTML is available in a Browser control or as external file. The HTML is normally fairly simple, but customers can create their own templates, so a "good range" of HTML should be supported.
Should be accessible for an automated process from C++ - DLL / COM / external executable with command line support are all fine.
Commercial is fine, but in the thousands is not an option right now.
So, which components do you know or can you recommend?
PDFCreator can function as a virtual printer but it's also usable via COM. The default setup even includes COM examples.
You can check the COM samples in the SourceForge SVN repository right here: http://pdfcreator.svn.sourceforge.net/viewvc/pdfcreator/trunk/COM/
If you have Microsoft Word installed, I guess you could automate the whole process using the "save as pdf" plugin that can be downloaded from the Microsoft Office Site.
You would automate word then open the HTML document inside word, then output as PDF. Might be worth a shot, if you're developing in a Microsoft Environment.
You might want to have a look at PDFReactor