Using Microsoft helper API from C++ - c++

I would like to use the help API from a C++ project. The problem is that I don't see what header I need to include to use it.
I found the Windows.Help.Runtime.dll in system32 but I guess that I need to include some header file where the function prototypes are.
I've been searching for existent C++ code using the Help API but I couldn't find anything.
Thank you.

Related

How to call Matlab functions from Visual studio mfc project?

What I have done is following the guidline in this
website
Now, I want to use some functions like rgb2gray() and imresize()... but I dont know how to use them, or I dont know which header file should I include in my project?
I have tried other way by creating a C++ shared-library in Matlab, then used it in VS 2012, but I could not add the DLL file to my project when I added new references. it is like that:
Please help me!
thanks in advance.
If you really want to call Matlab inside visual-studio, there are two ways:
Distribute MATLAB into independent shared library: check out my blog-post on how to do this (with detail steps and example).
Call MATLAB Engine directly: Refer to another blog of mine for more info.
On the other hand, it seems that you don't need to call Matlab to achieve your goal. OpenCV library will offer functions similar to rgb2gray() and imresize().

How to use Zorba with C++

I am trying to use Zorba XQuery parser with C++ for my project. I have downloaded and installed Zorba, but I can't seem to find a way to use it in my C++ programs. The documentation doesn't say a word. So if anyone here is good with it, can you please provide me your two cents?
Thank you
You can find examples at their Website
The general way to use an external library is to include its headers into your sourcefiles and add include its library in your link-step.

PlaySound() In C++ Doesn't Work

I've been trying to figure this out, and I just can't seem to.
When you include window.h at the top, there is supposed to be a PlaySound() function inside of it.
I added window.h but I keep on getting a "PlaySound was not declared in this scope" error.
I tried going into the project's build options and adding "-lwinmm" into the linker settings, but it still doesn't work.
I'm using Code::Blocks.
Anyone have a solution?
You need to #include both windows.h and mmsystem.h, in that order. This is noted in the community section of the documentation.
I assume you are coding on windows and you actually wanted the interface file called "Windows.h". Also make sure you are using the correct namespace, I'm not a windows programmer, but that's a start. I also don't know haw you are loading the file or wether you are using the win32 or .net frameworks. But then from the sounds of it you might not either.
If you're trying to use .net you can start here
http://msdn.microsoft.com/en-us/library/system.media.soundplayer
win 32 start here
http://msdn.microsoft.com/en-us/library/ff818516(v=vs.85).aspx
ah here it is winCE audio API
http://msdn.microsoft.com/en-us/library/aa909766.aspx

Library to generate a CHM file

I have been looking for a library that will expose functionality to allow me to generate CHM files. As far as I can tell, that does not exist and I will have to rely on CHMBuilder (in SandCastle) but I thought I would ask before going that route.
Microsoft HTML Help SDK
http://msdn.microsoft.com/en-us/library/ms670169(VS.85).aspx
There is a lib, and a (cross-platfomr) commandtool in Free Pascal. It is in Pascal (Delphi dialect) though.

C++ What .lib file should I include

I am doing a firewall application. For that I tried some codes from codeproject HERE
But the problem is the code is not compiling, giving linking error. I am using SDK 2008. Can anyone please tell me what .lib file should I use for WFP and where can I find it ?
Thanks.
Fwpuclnt.lib is the one you need - check out the reference for the functions you are using on MSDN, they tell you in the 'Requirements' section what lib exports a given API.
You need the correct SDK to use this.
MSDN tells you on the bottom of every page describing a function which lib file is required. In the case of those firewall related functions it's fwpuclnt.lib.
If that still doesn't help, it'd be easier to help if you include the actual error messages.