[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-04-19
5
Medium Priority
?
619 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
0
Comment
Question by:arwar49
  • 3
  • 2
5 Comments
 

Author Comment

by:arwar49
ID: 35427743
should be Delphi 7
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 35428147

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

Author Comment

by:arwar49
ID: 35428435
i get an error "Invalid Typecast"
0
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 500 total points
ID: 35428499

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

Open in new window

0
 

Author Closing Comment

by:arwar49
ID: 35428675
that did the trick- thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month18 days, 19 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question