Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I redirect PETScs stdout and stderr when programming with a GUI interface in Windows Developer Studio?

0
Posted

How can I redirect PETScs stdout and stderr when programming with a GUI interface in Windows Developer Studio?

0

These directions where supplied by a user. You just need to add this extern “C” { int PASCAL WinMain(HINSTANCE inst,HINSTANCE dumb,LPSTR param,int show); }; #include “petsc.h” #include “mpi.h” int MyPrintError(const char error[],…){ printf(“%s”,error); return 0; } int main(int ac,char *av[]) { char buf[256]; int i; HINSTANCE inst; inst=(HINSTANCE)GetModuleHandle(NULL); PetscErrorPrintf = MyPrintError; buf[0]=0; for(i=1; i

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123