| A workaround would be to programmatically compile a dummy .csd file.
If you use the CppSound class, you can build a .csd file programmatically, then export it for performance and compile it. It doesn't have to do anything.
Regards,
Mike
-----Original Message-----
>From: Carsten Hoyer
>Sent: Mar 1, 2008 3:11 PM
>To: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] keep getting -1 from csoundCompile
>
>
>
>
>Victor.Lazzarini wrote:
>>
>> you can't. It does not make sense to use csoundCompile without
>> code. It is the same as typing gcc only at the console and getting
>> "no input files" as a response. Perhaps you want csoundPreCompile() ?
>>
>
>Hmm. The thing is. At the moment i dont really care for any orchestra or
>score, all i really need is to use CsoundOpcodeList. I can use
>CsoundOpcodeList to get all opcodes in list form, but I´m using those in a
>wxTreeCtrl that has drag and drop abilities.
>I used to just make a sample treeCtrl and then the dnd worked, however when
>i fill the tree with opcodes, the dnd fails. I have tracked the problem down
>to csoundCompile.
>
>So to use CsoundOpcodeList the API says i first need to call csoundCompile.
>Any suggestions to how i can avoid a -1?
>csoundPreCompile looks good, but doesnt seem to be an option, when
>CsoundOpcodeList needs csoundCompile called first.
>
>Thanks
>Carsten
>--
>View this message in context: http://www.nabble.com/keep-getting--1-from-csoundCompile-tp15779139p15780451.html
>Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel
A
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.source |