C
CarlosMB
Hello,
I am writing code that uses a DLL which is supposed to print to
console
some useful information but for some reason it is not doing so. The
environment
is a bit complex to explain but here it goes:
- I am using a C library called SYMPHONY, which I compiled myself.
When using that
library in an standard console application I get the console output
right.
- I wrote a wrapper for the library in C to hook it into Matlab via
mex-files (which
are C files compiled to DLLs, but with a different name)
- This wrapper altogether with the library is used in a Matlab
program. From inside
Matlab the SYMPHONY output doesn't show up.
- This Matlab program is compiled into a .NET component which when
used by
a console application in Visual Studio shows all the information i was
missing in
the previous step.
Since I am not understanding what is going on right here I would like
to write
all the information that sometimes appears in the console (and
sometimes not)
to a file, but without the need to modify the SYMPHONY library that I
built in
the first step.
Is there anything in the C standard library that can help me with
this?
Thanks in advance,
Carlos Martínez
I am writing code that uses a DLL which is supposed to print to
console
some useful information but for some reason it is not doing so. The
environment
is a bit complex to explain but here it goes:
- I am using a C library called SYMPHONY, which I compiled myself.
When using that
library in an standard console application I get the console output
right.
- I wrote a wrapper for the library in C to hook it into Matlab via
mex-files (which
are C files compiled to DLLs, but with a different name)
- This wrapper altogether with the library is used in a Matlab
program. From inside
Matlab the SYMPHONY output doesn't show up.
- This Matlab program is compiled into a .NET component which when
used by
a console application in Visual Studio shows all the information i was
missing in
the previous step.
Since I am not understanding what is going on right here I would like
to write
all the information that sometimes appears in the console (and
sometimes not)
to a file, but without the need to modify the SYMPHONY library that I
built in
the first step.
Is there anything in the C standard library that can help me with
this?
Thanks in advance,
Carlos Martínez