I want to decompile CHM file to HTML format . Is it possible using c or c++ ? Is there any c or c++ library to do this.
It is possible using C++. If you use Windows, you can do it using COM. An example you can find here. This article is about C#, but it is done using COM interfaces and you can easily do the same in C++.
The open source 7-zip file manager can browse and extract content from a .chm file. Right-click and select Open Inside. Download is here.
There's CHMlib, which has the libCHMxx binding for C++ ; it seems it could run both on Linux and Windows.
Related
I recently downloaded Visual Studio Code to begin learning the C programming language. I installed the program as well as the C extension. However, when I tried to create the "Hello, World!" program, it would not run, and in the Problems menu it did not recognize the stdio.h header file, saying that I need to update my includePath. I have not been able to find any stdio.h file on my computer to link to. Do I need to download the C library files (even though I have read they should be included with the compiler), and if so, where can I find them? Or is there another solution? Thanks, and sorry if this is a stupid question, I am new to this.
I think you might be confusing VS Code with the VS IDE.
VS Code is a source editor only; that is to say that it's basically just a glorified text editor. It has the ability to load extensions and open a shell to compile the code, and there are a few extensions that let you debug the code itself, but they can be tricky to get setup and installed to work well with C/C++ code. VS Code does not have a compiler/assembler/linker nor the requisite headers or SDK's as that is up to you (the user) to install and then point to those in your settings file.
The Visual Studio IDE, on the other hand, is a complete integrated development environment that also includes the system headers and SDK's for Windows, as well as the binaries to properly compile, link and assemble your code into a binary for a Windows system (cross platform is possible as well). The Visual Studio IDE comes in many different flavors with the latest being VS 2017.
If you wish to stick with VS Code, you'll need to grab a compiler and the appropriate header files for the system you're targeting. If you wish to just stick with Windows for now, you can grab the Windows 7 SDK here or the Windows 10 SDK here .. you could even grab both and just reference the one you wish when you want. Note that the Windows 7 SDK includes the Microsoft C/C++ compiler, alternatively you can download the MSVC compiler from their Build Tools site.
There's also Cygwin in which you can use the GNU compiler, and of course Clang, which can be referenced in both VS Code and the VS IDE.
I hope that can help.
I'm looking for function that Open window explorer in C language. I have found this [answer](How can I open Windows Explorer to a certain directory from within a WPF app?), but this is C# language. C can't have these features? I use VS 2010.
I'm a beginner of C. So my question may seem ridiculously easy. But if you give me the answer I really appreciate it. Thanks :)
The simplest way to open a certain directory in an explorer (here c:\program files) may be:
system("start \"\" \"c:\\program files\"");
Try using SHOpenFolderAndSelectItems() function, which can open files in windows explorer.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762232(v=vs.85).aspx
Given the stslib.h library contains the system() function that let's you run shell commands, you should be able to run the command to open a new windows explorer window using the same command you would use in the terminal window.
A guideline: http://www.programmingsimplified.com/c-program-shutdown-computer
Writing C in Visual Studio 2010, I have downloaded the pdcurses34 from the sourceforge. After i compiled the lib for win32 as the documentation says i configured the visual studio to use this library.
Then started to read this HOWTO for ncurses
Some time later i thought to make a simple app with menu option as the HOWTO considers on chapter 17.
The result is that neither menu.h nor form.h files exists.
I search into the folder of pdcurses and nothing found.
So i am asking , which is the way to create menu (basically) and forms with pdcurses?
Since they doesn't come with pdcurses, i guess you would have to create them yourself.
This question suggests compiling them against the pdcurses source code, but there was no more feedback.
Using C language
Have a look at the Window Imaging Component API. See there.
I have only used it via .NET but the underlying standard Windows lib GDI+ might be what you're after.
Here's the MSDN intro page
I am trying to get back to C programming in windows.
I normally use codeblocks for the code and for the gui I used Resource Editor from radasm, but it seems it's no longer available.
Anyone know of a simple program that will let me create dialogs, edit existing resource files and such easily?
Thanks
Qt Creator is capable of doing all those things, if you choose to use Qt for your project.
Borland C++
Dev -C++
Eclipse CDT
LCC-Win
V IDE
WideStudio
Ultimate++
wx-Devcpp
wxWidgets
You could try GTK gtk.org.
You can find the tutorials here
Glade is the preferred RAD tool for resource editting