All Forums
 Microsoft Windows CE
 .NET Application Development
 DEBUGMSG implementation for Managed Code
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 19 Jun 2002 :  12:42:15  Show Profile  Email Poster
Since DEBUGMSG isn't directly available in managed code, and it's extremely useful, here's an implementation:


public class Debugging
{
[DllImport("coredll.dll", EntryPoint="NKDbgPrintfW")]
private static extern void DebugMsg(string message);

public static void DEBUGMSG(bool condition, string message)
{
if(condition)
DebugMsg(message);
}
}


-----------------
Chris Tacke, eMVP
Applied Data Support
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000