Forums

using a dll

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Re: using a dll

Postby natter » Sun Nov 16, 2008 6:22 am

wow is this stupid

somehow the working directory is set to the notepad++ directory. this is where i needed to put the dll to make it working.
natter
 
Posts: 20

Re: using a dll

Postby Charles » Sun Nov 16, 2008 10:16 am

Well at least now we know.

Btw if you use "cobra -v ..." then it will print the current directory for you, in case you need that in the future.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: using a dll

Postby natter » Sun Nov 16, 2008 1:20 pm

ehm.. how do i change the current directory? shouldnt cobra always use the directory of the sourcecode as current directory?
natter
 
Posts: 20

Re: using a dll

Postby Charles » Sun Nov 16, 2008 1:38 pm

Cobra uses whatever your current directory is when you launch it. Also, you could give it multiple source files in different directories which blurs the concept of using the directory of the source files.

Most editors will let you set the initial directory in some way for the external commands you set up. Either as an option in a dialog or perhaps as a command such as "cd ${BASEDIR}; ...". Does notepad++? It seems people would have needed this before.

If not, and there is a BASEDIR type variable available, we could add a -cd command option to Cobra.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Previous

Return to Discussion

Who is online

Users browsing this forum: No registered users and 110 guests

cron