const accept: packed array[0..1] of LPWSTR = (PChar('*/*'), nil);

how do i redclare that const to complile in D&?

i get error of incompatible types  PWideChar and WideChar
arwar49Asked:
Who is Participating?
 
Ephraim WangoyaCommented:

Sorry, Delphi 7
Here
const
  accept: packed array[0..1] of PWideChar = (PWideChar(WideString('*/*')), nil);

Open in new window

0
 
arwar49Author Commented:
should be Delphi 7
0
 
Ephraim WangoyaCommented:

const
  accept: packed array[0..1] of PWideChar = (PWideChar('*/*'), nil);
0
 
arwar49Author Commented:
i get an error "Invalid Typecast"
0
 
arwar49Author Commented:
that did the trick- thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.