G
Gary
Had a recent opportunity to grab some MP2 audio encoder source to use
in a little utility I am writing in support of a Korg portable
multitrack digital recorder. It is LGPL C and my project is Visual
C++. A few problems, e.g.
variables using C++ keywords, e.g. new and class - OK that was easily
solved.
biggest problem is file I/O, the C code uses lots of
FILE *fp;
fp = fopen("googble.mp2","rb);
etc.
Do I really have to go thru all the code and say CFile fp;
fp.Open(etc.etc.), or is there some way to get the original FILE
pointer method to work? I just get compile errors whenever this is
encountered.
For the record I write a computer program every 2 or 3 years so I am
pretty rusty on what may be a simple problem. I hope.
I am a bit daunted because FILE and associated routines are used ALL
over this code, and given it is open source I'd like to avoid major
mods if possible.
Thanks,
Gary
in a little utility I am writing in support of a Korg portable
multitrack digital recorder. It is LGPL C and my project is Visual
C++. A few problems, e.g.
variables using C++ keywords, e.g. new and class - OK that was easily
solved.
biggest problem is file I/O, the C code uses lots of
FILE *fp;
fp = fopen("googble.mp2","rb);
etc.
Do I really have to go thru all the code and say CFile fp;
fp.Open(etc.etc.), or is there some way to get the original FILE
pointer method to work? I just get compile errors whenever this is
encountered.
For the record I write a computer program every 2 or 3 years so I am
pretty rusty on what may be a simple problem. I hope.
I am a bit daunted because FILE and associated routines are used ALL
over this code, and given it is open source I'd like to avoid major
mods if possible.
Thanks,
Gary