Hi!
Man kann schon eine Konsole als Standard Ausgabe definieren:
(Steht im API Manual...)
Since Unigraphics is a native Windows application, there is no console started up automatically. Therefore using a printf to print to stdout will not work. If you want to use printf statements to debug your internal Open C application, you must add the following code to your internal Open C API function:
#include <windows.h>
#include <fstream.h>
#include <stdio.h>
...
FILE *fp;
...
/* allocate console window conout$ */
AllocConsole();
/* reopen stdout on conout$ for fprintf and printf */
fp = freopen("conout$", "w", stdout);
This will create a console window and attach it to stdout so that printf and fprintf will work.
Funktioniert, ich habs allerdings bislang nicht gebraucht.
uc1601() reicht mir.
Gruß,
Rainer
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP