bonjour,
mon but est de creer une application utilisant le microsoft speech sdk 5.1 mais dans l'aide en ligne(et sur d'autres tuto) ils utilisent des concepts qui me sont totalement inconnu(les com notamment). voici notamment ce que je ne comprend pas tres bien.
Step 1: Setting up the project
While it is possible to write an application from scratch, it is easier to start from an existing project. In this case, use Visual Studio's application wizard to create a Win32 console application. Choose "Hello, world" as the sample when asked during the wizard set up. After generating it, open the STDAfx.h file and paste the following code after "#include <stdio.h>" but before the "#endif" statement. This sets up the additional dependencies SAPI requires.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 #define _ATL_APARTMENT_THREADED #include <atlbase.h> //You may derive a class from CComModule and use it if you want to override something, //but do not change the name of _Module extern CComModule _Module; #include <atlcom.h>J'aiemrais savoir si je peux utiliser atlbase.h, CoInitialize(relier aux com si j'ai bien compris) ds visual C++ express edition?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 if (FAILED(::CoInitialize(NULL))) return FALSE; ::CoUninitialize(); return TRUE;
Partager