How to programatically write a PST file [duplicate] - c++

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I create an Outlook PST file using .Net?
How can I write an Outlook PST file with headers? Preferably in .NET, though C++ or anything else would be useful too
I have looked at the PST SDK by Microsoft, but it appears to be read only.
The only code I have found is the CodeProject article "Writing Email to the File of the PST Format", but this code can't write e-mail headers - just body and subject.

Your best bet is to use Microsoft's Messaging API (MAPI). There's plenty of help available online, and there's a sample app called MFC Mapi that one of the Microsoft guys wrote to demonstrate how the API works.

Would the .pst file format documentation be of use to you? From the brief look I took, it seems to document the format itself, so you can implement reading/writing functionality. I don't know how detailed it is, since I haven't used it myself.
http://msdn.microsoft.com/en-us/library/ff385210%28v=office.12%29.aspx

Related

How can I call Dart from C++?

I've found several posts about this and it sounds like the answer is that it's possible by embedding the Dart VM (based on this 2013 post and this 2019 post).
Is this still the best way?
If so, is there official guidance from Dart on how to do this, or are you on your own? I know there's this demo of embedding Dart in Windows but it's from 9 years ago and I'm wondering if there's anything more recent to reference.
Note that this is different from Dart code calling C using dart:ffi which then has a callback into Dart, which I see is supported. I'm looking for a way for a C++ program to call Dart code.

What would be the best way to connect to Facebook via C/C++? [duplicate]

This question already has an answer here:
Most complete c++ facebook library [closed]
(1 answer)
Closed 9 years ago.
I'm looking to create a desktop app in C/C++, most likely with Qt, that has the ability to connect (read/post) to Facebook. Which got me thinking, how exactly would you go about doing such a task? I know many desktop apps written in C++, such as Spotify, have the ability to do it. Are there any good libraries available? What's the common way to do it? Will I have to parse Javascript or PHP in C++? I know there's a C# API, which I've used, and it worked fine. Anything similar for C++? Thanks!
If you can get a C++ json interpreter you can use the Graph API. https://developers.facebook.com/docs/getting-started/graphapi/. You make queries over HTTPs and get a response in JSON that you can use however you want.

Using c++ to call and use Windows Speech Recognition [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am making an application that involves the use of windows speech recognition. I am thinking of using c++ to do this since i have some experience with this language. The way i want to use the speech recognition is so that it works internally. If i upload an audio file into my program, i want speech recognition to write this audio up as a text file, but all this should be done internally. Please provide some help with this and if i have not explained my question properly please let me know and i will try to explain again.
Thanks in advance,
Divs
(Old question, but no accepted answer, and appears quite high in google)
If you really want to do this in C++, you have to download the SAPI SDK, which does not come standard with Windows : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&displaylang=en , select SpeechSDK51.exe
The best documentation you can find on SAPI is not on the web, it's in the SDK itself, in the Docs/ folder. The .chm explains everything really well. Here is an additional link to get you started.
However, it C++ is not a requirement for you, I strongly recommend you do it in C#. It's really much simpler (no COM components, no separate SDK, more doc on MSDN, more tutorials, ...) . See this CodeProject article; you'll have to remove all the GUI stuff, and all the speech synthesis stuff, and you'll see, speech recognition boild down to 10 lines of code. Quite impressive.
EDIT sample code, not compiled, not tested :
using System.Speech;
using System.Speech.Recognition;
// in constructor or initialisation
SpeechRecognitionEngine recognizer = null;
recognizer = new SpeechRecognitionEngine();
recognizer.SetInputToDefaultAudioDevice();
recognizer.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(recognizer_SpeechRecognized);
recognizer.RecognizeAsync(RecognizeMode.Multiple);
// The callback called when a sentence is recognized
private void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e){
string text = e.Result.Text;
// Do whatever you want with 'text' now
}
ta dah, done
Windows provides speech recognition engines for both clients and servers. Both can be programmed with C++ or with .NET languages. The traditional API for programming in C++ is known as SAPI. The .NET framework namepsaces for client and server speech are System.Speech and Microsoft.Speech.
SAPI documentation - http://msdn.microsoft.com/en-us/library/ms723627(VS.85).aspx
The .NET namespace for client recognition is System.Speech - http://msdn.microsoft.com/en-us/library/system.speech.recognition.aspx. Windows Vista and 7 include the speech engine.
The .NET namespace for server recognition is Microsoft.Speech and the complete SDK for the 10.2 version is available at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1b1604d3-4f66-4241-9a21-90a294a5c9a4. The speech engine is a free download.
Lots of earlier questions have addressed this. See Prototype based on speech recognition and SAPI and Windows 7 Problem for examples.

Best way to read/edit/add the googlecode wiki offline [duplicate]

This question already has answers here:
Best way to read/edit/add to the googlecode wiki offline
(2 answers)
Closed 8 years ago.
I finally after too much of pondering started my project on googlecode. One of the best features I liked about googlecode was the revision control for wiki, where I can add/edit the wiki pages locally offline and then commit/push later.
I have pulled the wiki to my local repository, is there any good googlecode-wiki-toolbar-attached editor for googlecode wiki, as from my knowledge evey wiki has its own syntax for writing.
Or if someone is also using a local repository for wiki.code.google, what practice are they following for writing the document for online collaborations.
The Google Code Wiki uses a syntax similar to MoinMoin. Hence, any offline editor with MoinMoin support should get you started. For instance syntax highlighting is available for Vim, Eclipse, Emacs, ... search for moinmoin FOOEDIT if FOOEDIT is your favorite editor.

How to make custon data source in QlikView?

I have just started to develop in QlikView so I'm completely a newbie.
The problem that I have is that I need to create a c++ dll that can be used as a custom data source for QlikView, I already created the dll and QlikView can see it, but I don't know how should I do to make my data available to QlikView.
The data that I want to use is obtained as a request from the server, and the code is inside the c++ dll.
I had some examples that my boss got from QlikView tech department, they are SalesForce example and EbayDll example but they are kind of confusing, so I was wondering if you can point me to another example that may be easier to follow, or if you can give me some pointers that help me accomplish what I'm trying to do.
Just if someone is interested, I posted the same question in the QlikView Forum and the answer that I got was
"Get the version 9 SDK. It includes doc and a sample for a Custom Data Source. The SDK is available on a QV Server installation. If not already installed, I believe you can download the QVS9 and just install the SDK portion on your workstation."
The example contained in the SDK actually help me out a lot.
In QlikView 10 you can now use (the easier approach) of using the QVX API!
Regards
Stefan