Simplest way to write output message to 'output window' in Visual Studio 2010?

后端 未结 6 1671
难免孤独
难免孤独 2020-12-30 01:32

I\'ve tried OutputDebugString function and most of the time I get error like :

error C2664: \'OutputDebugStringA\' : cannot convert parameter 1          


        
6条回答
  •  Happy的楠姐
    2020-12-30 01:58

    For debugging purposes you could use _RPT macros.

    For instance,

    _RPT1( 0, "%d\n", my_int_value );
    

提交回复
热议问题