Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / C++ [игнор отключен] [закрыт для гостей] / error:'_T' was not declared in this scope / 3 сообщений из 3, страница 1 из 1
11.05.2017, 16:02
    #39451481
ZXCD
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
error:'_T' was not declared in this scope
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
// TestDLL.cpp : Defines the entry point for the console application.
//
 
#include "windows.h"
#include "iostream"
#include "support.h"
 
int main()
{
    HINSTANCE hModule=NULL;
    typedef  BOOL (WINAPI MESS)(UINT);
    MESS* me=NULL;
    hModule=::LoadLibrary(_T("user32.dll"));
    if (hModule!=NULL)
    {
        me=(MESS*)::GetProcAddress((HMODULE)hModule,"MessageBeep");
        if (me!=NULL)
        {
            UINT type=1;
            BOOL result;
            result=(*me)(type);
        }
        else std::cout << "Error Load function" << std::endl;
        ::FreeLibrary(hModule);
    }
    else std::cout << "error load Dll" << std::endl;
 
return 0;
}



error: '_T' was not declared in this scope
...
Рейтинг: 0 / 0
11.05.2017, 16:14
    #39451488
Изопропил
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
error:'_T' was not declared in this scope
ZXCD,

в tchar.h живёт
...
Рейтинг: 0 / 0
12.05.2017, 12:57
    #39452054
ZXCD
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
error:'_T' was not declared in this scope
Спасибо!!! Спасибо!!!
...
Рейтинг: 0 / 0
Форумы / C++ [игнор отключен] [закрыт для гостей] / error:'_T' was not declared in this scope / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]