Компилятор сообщает мне, что в моем коде есть 3 ошибки:
Linking specification incompatible with "SpeakInternal" (declare in line 13 of voice.cpp) (previously)
wstring: not declared identifier
Syntax error: Missing ")" before identifier "uText"
Код:
__declspec(dllexport) void __cdecl SpeakInternal(wstring uText, wstring uPath);
Я не понимаю, чего он хочет от меня.
Может кто-нибудь сказать мне, что я делаю не так?
Большое спасибо!
voice.h:
extern "C"
{
__declspec(dllexport) void __cdecl DoCompile();
__declspec(dllexport) void __cdecl SpeakInternal(wstring uText, wstring uPath);
};
voice.cpp:
// voice.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "voice.h"
#include "app.h"
void DoCompile()
{
CApp nApp;
nApp.DoCompile();
}
void SpeakInternal(wstring uText, wstring uPath)
{
CApp nApp;
//nApp.SpeakThis()
}