How to make TRACE work in native C++ code for a C# Univeral apps project

I am playing the
real-time communication sample project.  It works as expected but writing to the Output console does not work for the C++ code.  I have tried the TRACE macro,  and also tried the Trace() function of the project. Nothing is shown in
the Output console. I am using the Debug configuration and running the app in the debug mode.
Could anyone shed some light on this?
Hong

Thanks for the response.  Here is the Trace method of the project which uses OutputDebugString:
void Trace(DWORD dwLevel, LPCWSTR pszFormat, ...)
if (g_dwLogLevel > dwLevel)
return;
WCHAR szTextBuf[256];
va_list args;
va_start(args, pszFormat);
StringCchVPrintf(szTextBuf, _countof(szTextBuf), pszFormat, args);
OutputDebugString(szTextBuf);
It does not work. It does not generate any error either.
Hong

Similar Messages

  • SPA3000 FXO to SPA2000 FXS, how to make it work?

    I'd like to create an environment so I can test the dial plan of SPA3000. But when I dial throughgw0 of SPA3000 while connecting FXO to FXS of SPA2000, from SPA2000 configuration I always get Call 1 State Invalid and Call 1 Tone Reorder. It seems that SPA2000 couldn't recognize the DTMF tone sent by SPA3000. Don't know how to make it work. Please advise. Thanks in advance.

    I have a SPA3102 attached thru the FXO port to the FXS port of a SPA1001.  I don't think there is anything special in the configuration.
    On the PSTN Line Tab I have:
    Preferred Codec: G711u
    Use Pref Codec Only: no
    DTMF Tx Method: AVT
    VoIP-To-PSTN Gateway Enable: Yes
    VoIP Caller Auth Method: none
    Line 1 VoIP Caller DP: none
    PSTN Dialing Delay: 1
    VoIP Answer Delay: 0
    If you are having trouble, for troubleshooting I would run the sip debug trace on the SPA3000.  If the failure is in your line 1 dial plan you won't see anything in the trace.  If the dial plan sends the call to gw0 then you will see the sip invite for the internal call inside the adapter and you should see the FXO port go off hook.  If that looks OK you can run a trace on your SPA2000 to see the result there.  The SPA3000 Info tab will also give you troubleshooting information.  You should see the on-hook and off-hook voltage level of the SPA2000.  You may also see information about the last pstn number dialed.
    On the SPA2000, you would need to have it registered with a voip provider, or else have it set to Make Call Without Reg before it will accept an incoming call from the FXS port.
    Message Edited by hw on 02-02-2009 06:02 PM

  • DVR with fms3 , how to make it work?

    Hi
    I am trying to look for documentation on how the DVR functionality is working in fms3. It seems that I need to implement som server-side scripting to make DVR even work. In Flash Live Encoder there is an option to Record DVR, but it when I press the button, all I get is:
    Thu Apr 30 2009 13:15:38 : Start DVR command received
    Thu Apr 30 2009 13:15:38 : Requested DVR command has been successfully issued to Primary FMS server for stream ob1stream
    Thu Apr 30 2009 13:15:38 : Primary - Network Status: NetConnection.Call.Failed error Method not found (DVRSetStreamInfo).
    Does anyone know how to make this work?
    Best Regards Niclas

    ok i'm back for a second......so uhhh....class is in session here is a basic example of a video encoder
    use this to stream your video while recording.....what makes it record?and not live? this line here:
      ns.publish("thefilename", "record");
    the second parameter.....to make it stream live without recording it to file you change it to "live"....the first parameter is what you name your file...
    after this you use your client player to connect to the same connection as outlined.....and to play the same file ..ie   stream.play("thefilename");
    package
        import flash.display.*;
        import flash.media.*;
        import flash.net.*;
        import flash.events.*;
        public class SimpleEncoder extends Sprite
            var nc:NetConnection;
            var ns:NetStream;
            var mic:Microphone;
            var video:Video = new Video();
            var camera:Camera;
            public function SimpleEncoder():void
                NetConnection.defaultObjectEncoding = 0;
                nc = new NetConnection;
                nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                nc.connect("rtmp://localhost/video/myvids");
            private function publishLiveStream():void
                ns = new NetStream(nc);
                ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                ns.client = this;
                camera = Camera.getCamera();
                mic = Microphone.getMicrophone();
                if (camera != null){
                    camera.addEventListener(ActivityEvent.ACTIVITY, activityHandler);
                    video = new Video();
                    video.attachCamera(camera);
                    ns.attachCamera(camera);
                if (mic != null) {
                    mic.addEventListener(ActivityEvent.ACTIVITY, activityHandler);
                    ns.attachAudio(mic);
                if (camera != null || mic != null)
                // start publishing
                // triggers NetStream.Publish.Start
                // "thefilename" is the name of the file you use after you connect to stream in client player   stream.play("thefilename");
                ns.publish("thefilename", "record");
                else
                    trace("Please check your camera and microphone");
                addChild(video);
            public function onBWDone():void
            private function netStatusHandler(event:NetStatusEvent):void
                trace(event.info.code);
                switch (event.info.code)
                    case "NetStream.Buffer.Full":
                        break;
                    case "NetStream.Buffer.Empty":
                        break;
                    case "NetConnection.Connect.Success":
                        trace("Congratulations! you're connected");
                        publishLiveStream();
                        break;
                    case "NetConnection.Connect.Failed":
                    case "NetConnection.Connect.Rejected":
                       // trace ("Oops! the connection was rejected");
                        break;
                    case "NetStream.Play.Stop":
                        break;
                    case "NetStream.Play.StreamNotFound":
                        trace("The server could not find the stream you specified");
                        break;
                    case "NetStream.Publish.BadName":
                        break;
                    case "NetStream.Publish.Start":
            private function statusHandler(event:StatusEvent):void {
                trace("statusHandler: " + event);
                trace(mic.activityLevel);
            private function activityHandler(event:ActivityEvent):void
                //trace(mic.activityLevel);
            public function onFault(e:Object)
                //trace(e.info);
                //nc.close();
        }//end class
    }//end package
    thelegendaryghost

  • Macbook pro to HDTV, video is working but audio is not working, how to make audio work as well

    Macbook pro to HDTV, video is working but audio is not working, how to make audio work as well

    If you use an HDMI cable, the audiostream will be integrated, so there will be sound when using an HDMI cable!
    Not necessarily.  That only works as stated if you have one of the most recent MBP's that has a built-in HDMI port.
    If the MBP only has a Thunderbolt or miniDisplayPort, you need an appropriate adapter cable and even if you use an HDMI adapter or cable to connect to your HDTV there is no guarantee it will carry audio.  You have to determine if your specific MBP model supports audio out through its miniDisplayPort or Thunderbolt output, and whether the adapter does likewise.

  • TS2634 I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I bought a composite AV cable with 30 pin connector at a proper apple store for my ipad 2 which no longer works now i have updated to ios7 - please advise how to make this work ?

    I have the same problem.
    Two similar discussions:
    https://discussions.apple.com/message/23081658#23081658
    https://discussions.apple.com/message/23281391#23281391
    I have not yet seen any official response to the question: "Is the Apple AV Composite cable fully supported with 30pin connector devices upgraded with iOS7 - specifically ? - eg. iPad 2, iPhone 4, iPhone 4s"
    If it is not currently supported is that then due to a bug / oversight and in that case is it something that will be fixed in the near future?
    Please let us know what feedback you got from asking Apple support.

  • How to make buttons work in Interactive Adobe Forms

    Hi Experts,
    I am new to interactive form. Though i have worked in normal/non-Interactive form, i do not know how to make buttons work in interactive adobe forms using ABAP  (I don't know JAVA). Can any one help me out and walk me through to how to code in ABAP to make buttons work.
    Kind Regards,
    Sharat.

    Please refer to my earlier post ... You will get an idea
    Please refer to the below thread for detail solution
    Sample Interactive form example ?....urgent...
    Cheers
    Satya

  • Deleted itouch files using ifile from cydia. i restarted it but now it shows the apple logo and that is it... it doesnt respond. any ideas of how to make it work?

    I restarted my itouch using the home button and top button...it restarted but it only shows the apple logo and that is it.  I deleted all files from ifile and then it froze... any ideas of how to make it work again?

    Discussions of hacked ipods is not permitted here.

  • I have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    i have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    Who was your original carrier; did you call them to ask them to unlock your phone, and are you aware of what their unlock policy is (THey may only unlock for international sims and not US sims

  • HT201343 My mac is OS X 10.6. has not airplay. how to make it work?

    My mac is OS X 10.6. has not airplay. How to make it work?

    OS 10.6 is Snow Leopard, which does not support Air Play.  If you upgrade to OS 10.7 Mountain Lion (which is what you list in your category) then you may be able to use Air Play depending on the age of your computer. 
    See this document:
    http://support.apple.com/kb/HT5404

  • Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

  • How to make tablesorter work for GroupedColumns??

    Hi all,
    I imported the class of TableSorter.java to my project. It automatically picks up my normal columns, they all can be sorted.
    but the groupedColumns generated by the drag and drop table node into the design area wont pick up, even i set the property of "onAction" of the column to "Sort"(method) it wont sort the content for me.
    how to make it work?
    thanks

    hi!
    you can get lead selection in the action handler then inset your code for currentContextElement.
    wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeXXX());
    thanks
    vishal

  • How to make rss work

    So, I'd like to get RSS working on my iMac. When I click on an RSS logo/button, I get the message "No associated application could be found." HUH??? Any idea on how to make RSS work??? In either Safari or Mail.

    RSS has been removed from Mail and Safari in Mountain Lion, so you will need to use a thrd party application such as Vienna.

  • How to make MDM work?

    Hi Guy,
    I'm newbie for MDM.I already intalled it on my machine(Window Xp)but dunno how to make it work.
    The installed components are MDM/Syndicator/Import server,Console/Import mgr/Data mgr/Syndicator.
    Do I have to install any component else?And Can you guy give me any guides/documents/Posts how to make it work.Cause I have to demo it next week but right now still blank about it...
    Thanks
    Parinya.

    Hi Jack,
    For Demo Purpose,
    1.Create few master records in R/3 Servers [ MM(Tcode MM01) /Employee(PA40) /Vendor(Xk01) /Customer(XD01) according to your MDM Repository(For Example "Products").]
    2.Extract those master datas from R/3 Servers.
    3. You will get the xml file of master datas.
    4.Open the import manager and import the xml file into  the MDM server.
    5.In Import manager ,you need to map the records[Source Fields(Imported records) VS Destination Fields(MDM repository)].
    6.Once you imported the record ,u can see the records in the MDM Data manager.
       We can Create/edit/Delete those records .
       We can merge the records for consolidation purpose.
       We can perform Data enrichments process   like Validation,Workflow,Assignments..etc.
    7.Once cleaned the Master records,it is ready to distribute to R/3 servers.
    8.Syndicator is used for sending data back to the R/3 servers
       Here also we have to do Mapping against R/3 servers.
       Using XI We can connect the R/3 Servers.
    Hope u will understand this.
    This is very simple example for MDC-MDH Scenario.
    For futher learning on how to create a repository/Enrich the mater datas, go through reference documents in the Service Market place.
    Best Regards
    Devaraj PK

  • How to make stylesheets work ???urgent

    Hi,
    How to make stylesheets work.I tried including the CSS file on the
    header
    <%@ include file="stylesheets.css" %>
    <%@ include file="stylesheets.inc" %>
    and both options does not work. can somebody tell me what is wrong here.
    Thanks
    jack

    Hi,
    below thing does not work ?? any idea ??
    <TITLE>IBMSWG - <%= childCategoryListBean.getCurrentCategory().getName() %></TITLE>
    <META NAME="Keywords" CONTENT=" passive, components">
    <META NAME="Description" CONTENT=" varistors">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="stylesheets.css" type="text/css">
    <script language="JavaScript">
    <!--
    function xxx
    Thanks
    jack

  • How to make Matlab work after loading Yosemite ?

    How to make Matlab work after leading Yosemite on a Macbook pro ?

    R2014b should work with Yosemite. What version do you have?

Maybe you are looking for

  • Planned Order Components Table

    I have a question. Is there a table that holds the components of a Planned Order? When I see the technical data of a component field in MD13 it tells me they are in MDPM, but this is a structure, not a table. that made me think that perhaps this is b

  • Leading zeros and editing figures

    Hello, Just need the following on a query: To get rid of 0unit or 0currency: Quatity 14ST -> 14 Import 145,320US -> 145,320 To print leading zeros: Item  10 -> 000010 Item 480 -> 000480 Item 10289 -> 010289 To print editing on figures and percentages

  • Issues with mobile YouTube.

    I'm having issues while using YouTube in my safari app. Videos will constantly freeze and not play, while the video time keeps going and buffering. It used to only do this one excessively long videos, but now almost every single video is doing this,r

  • Can't see older emails in inbox

    I am having an issue using the My Verizon 2.0 website to access my email. I switched over to Verizon around the end of Oct last year and when I open my email on Verizon's site and look at my inbox, I can only see email back for a couple of weeks. I a

  • Problems in VL01N

    Please help me to solve this issue at ur eraliest !! I am getting a error massge after doing PGI at the time time of delivery thru VL01N. Massage no . B1003 Could not determine receiptents for massage type ACPJMM An IDOC of massage type ACPJMM was pa