ColdPhreze
Programmer
- Apr 15, 2002
- 93
Hi, and thanks in advance for any help.
I am trying to pass a string (I've tried everything I can think of) to a component I've added to BCB 6. The component was built in Delphi and the variables it receives are defined as WideString. You can find the source for the component at It is for editing the tags of video files. The website is here:
I call the function, and always get the errors:
E2034: Cannot convert 'wchar_t *' to 'wchar_t * *'
E2342: Type mismatch in parameter 'filename' (wanted 'wchar_t * *', got 'wchar *')
Here is the code I have now (The ReadAVITags function receives a lot of wchar_t vars, I've condensed it to just this one to save space) :
wchar_t * filename = new wchar_t[100];
//the following reads the tags from an AVI file and is the ActiveX Component I added to BCB.
EAVITagsGenerator->ReadAVITags(filename);
Please answer the following questions, and number you answers to correspond with the questions, thx.
1) What does it mean when there are 2 *s (wchar_t * *)?
2) How do I make/redefine my 'wchar_t * filename' to conform to 'wchar_t * *'?
3) What is an easy way, once I get the declaration correct, to convert the contents to an AnsiString?
4) Where (preferrably on the web) can I find a definitive guide to the differences of all the string types in BCB?
Thanks so much for your assistance,
KyferEz
Check out my DeVry Senior Project
I am trying to pass a string (I've tried everything I can think of) to a component I've added to BCB 6. The component was built in Delphi and the variables it receives are defined as WideString. You can find the source for the component at It is for editing the tags of video files. The website is here:
I call the function, and always get the errors:
E2034: Cannot convert 'wchar_t *' to 'wchar_t * *'
E2342: Type mismatch in parameter 'filename' (wanted 'wchar_t * *', got 'wchar *')
Here is the code I have now (The ReadAVITags function receives a lot of wchar_t vars, I've condensed it to just this one to save space) :
wchar_t * filename = new wchar_t[100];
//the following reads the tags from an AVI file and is the ActiveX Component I added to BCB.
EAVITagsGenerator->ReadAVITags(filename);
Please answer the following questions, and number you answers to correspond with the questions, thx.
1) What does it mean when there are 2 *s (wchar_t * *)?
2) How do I make/redefine my 'wchar_t * filename' to conform to 'wchar_t * *'?
3) What is an easy way, once I get the declaration correct, to convert the contents to an AnsiString?
4) Where (preferrably on the web) can I find a definitive guide to the differences of all the string types in BCB?
Thanks so much for your assistance,
KyferEz
Check out my DeVry Senior Project