Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Alerts, printf statements, asserts
No permission to create posts
October 13, 2013
10:07 pm
Avatar
RMA
Member
Members
Forum Posts: 12
Member Since:
September 28, 2013
sp_UserOfflineSmall Offline

I'm using VC++ 2010 Express. Is there a way I can get printf statements to show up in the Output window? Or a way to log errors or warnings to the Error list window? Or a popup alert window with some info? I'm guessing that since the DLLs are being hosted by RackFX, that RackFX is eating the output. Have you considered adding an output window to RackFX? Short of that, how do I get printf-like output for debugging?

How do other using RackFX get this info?

I have the debugger working just fine. But sometimes printf debugging is more expedient.

October 14, 2013
1:23 am
Avatar
RMA
Member
Members
Forum Posts: 12
Member Since:
September 28, 2013
sp_UserOfflineSmall Offline

The one thing I have been able to do along these lines. Not as easy as a printf...

if (!m_MessageBoxSuppress) {
sprintf(m_MessageBoxBuffer, "uNumInputChannels: %d uNumOutputChannels %d uBufferSize: %d\nPress Cancel to supress these messages.", uNumInputChannels, uNumOutputChannels, uBufferSize);
if (MessageBox(0, m_MessageBoxBuffer, "processRackAFXAudioBuffer", MB_OKCANCEL) == IDOK) {
// Clicked OK
} else {
m_MessageBoxSuppress = true;
// Clicked Cancel
}
}
October 15, 2013
2:03 am
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

Hi RMA

First, no RackAFX doesn't eat the output window of the compiler; Visual Studio is in control of the Output window.

And, RackAFX already has a built-in status window for debugging.

See the thread here

http://www.willpirkle.com/foru.....or-std-io/

It also has a link to a stackoverflow message on adding your own TRACE command (which is missing from the Express versions of VS).

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online: W Pirkle
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Derek: 41

Peter: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 478

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 29

Topics: 479

Posts: 1870

Newest Members:

certvalue111, sobhana s, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 140

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 140