내가로부터 embtvstools
(엠바 카데로 TVirtualShellTools) 다운로드 한 : 나는 새 패키지를 만들 때 http://embtvstools.svn.sourceforge.net/resourcestring을 상수로 사용할 수없는 이유는 무엇입니까?
그러나, 을 파일를 .pas (과에서 VirtualTreeView에서 누락 된 compilers.inc
)을 삭제하고 많은 컴파일, 나는 얻을 오류 E2026, 이 이유는 무엇이며 어떻게 피할 수 있습니까 /이 문제를 해결하려면 어떻게합니까?
resourcestring
sAssociationChanged = 'Association Changed';
sItemCreate = 'Item Create';
sItemDelete = 'Item Delete';
....
const
// Literal translations of TShellNotifyEvent type. Useful when using the
// OnShellNotify event to print out what event occurred. VirtualShellUtilities.pas
// has a helper function ShellNotifyEventToStr that uses these.
VET_NOTIFY_EVENTS: array[0..19] of WideString = (
sAssociationChanged,
sAttributes,
sItemCreate,
.....
[파스칼 오류] IDEVirtualResources.pas는 (155) : E2026 상수 식
[파스칼 오류] IDEVirtualResources 예상 : E2026 정수 표현은
[파스칼 오류] IDEVirtualResources.pas (156)가 예상. PAS (157) : E2026 상수 표현은
업데이트
가변경 예상에서 string
까지 나는 컴파일러가 불평을 멈추게합니다. (widestring <> 문자열이기 때문에 다른 문제가 생길 것 같습니다) widestring
상수를 유지하고 싶습니다.
이 코드는 resourcestrings이 WideString 인 D2009 +에 대한 것일 수 있습니다. –
D2009와 D2010은이 점에 대해 불평하지 않습니다. 유니 코드와 관련이있을 수 있습니다. WideString은 모두 Windows Managed UTF-16LE 문자열입니다. D2009 이전의 resourcestrings은 AnsiStrings입니다. –
나는 'WideString'의 타입 상수를 가질 수 있다는 것이 놀랍다 고 말하고 싶습니다. COM 할당자를 런타임에 할당 한 실제 WideString입니까? 아니면 null로 끝나는 WideChar 배열에 대한 포인터입니까? –