День добрый
При прогромировании под WinCE
возникла проблема
// WinCEAppl.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
LPCWSTR Port;
Port = "COM1";// ОШИБКА
return 0;
}
При компиляции :
error C2440: '=' : cannot convert from 'char [5]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Кто виноват и что делать?
P.S. Если вопрос глупый то уж не бейте новичка
12.09.03 17:45: Перенесено модератором из 'C/C++' — AS