storage problem about an inserted mp3 player activex control
Posted: Fri Aug 11, 2006 9:52 am
Dear Sergey,
I have create an activex control component using visual c++ which can play mp3 files, it's form like media player. I have inserted this activex ocx in trichviewedit sucessfully, after setting a mp3 file's path to this ocx, it will begin to play and so on.
But there is a problem about save and load. That is, i want to save all content in the trichviewedit as rvf format, including each mp3 file's data corresponding to each inserted activex control. The same requirement to loading, that is, after loading the rvf file, the inserted control can still get the audio data part from the rvf file. Now i can not realize this.
I have studied your demo WavButton, and i think maybe i can solve the problem by either the following approaches:
Approach1: rewrite the activex control with c++ builder, implement some additional properties and approach that listed in WavButton.pas, such as FStream LoadFromFile SaveToFile(here not existed, but i think need) WriteMusic ReadMusic DefineProperties and so on. If this apporach feasible? If ther any attentions i must pay?
Approach2: keep the activex ocx writing with visual c++, add some additional codes in c++ builder. I prefer to this approach, but do not know how to implement!
Thank you very much!
I have create an activex control component using visual c++ which can play mp3 files, it's form like media player. I have inserted this activex ocx in trichviewedit sucessfully, after setting a mp3 file's path to this ocx, it will begin to play and so on.
But there is a problem about save and load. That is, i want to save all content in the trichviewedit as rvf format, including each mp3 file's data corresponding to each inserted activex control. The same requirement to loading, that is, after loading the rvf file, the inserted control can still get the audio data part from the rvf file. Now i can not realize this.
I have studied your demo WavButton, and i think maybe i can solve the problem by either the following approaches:
Approach1: rewrite the activex control with c++ builder, implement some additional properties and approach that listed in WavButton.pas, such as FStream LoadFromFile SaveToFile(here not existed, but i think need) WriteMusic ReadMusic DefineProperties and so on. If this apporach feasible? If ther any attentions i must pay?
Approach2: keep the activex ocx writing with visual c++, add some additional codes in c++ builder. I prefer to this approach, but do not know how to implement!
Thank you very much!