We help IT Professionals succeed at work.

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

arwar49
arwar49 asked
on
Medium Priority
641 Views
Last Modified: 2012-05-11
how do i redclare that const to complile in D&?

i get error of incompatible types  PWideChar and WideChar
Comment
Watch Question

Author

Commented:
should be Delphi 7
Ephraim WangoyaSoftware Engineer
CERTIFIED EXPERT

Commented:

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

Author

Commented:
i get an error "Invalid Typecast"
Software Engineer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
that did the trick- thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.