Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does an app/network listen for QT's debugstr ?



see QTMLClient.dll

and instead of "advapi32" use "qtmlclient", then use the proc string you wish (you can check which symbols the DLL exports easily, even with a hex editor else use depends.exe from Visual Studio)

-----
George Birbilis (email@hidden)
Microsoft Most Valuable Professional
MVP J# for 2004 & 2005
http://www.kagi.com/birbilis
QuickTime, Delphi, ActiveX, .NET, IPC
--------------
----- Original Message ----- From: "Graham Anderson" <email@hidden>
To: "quicktime API" <email@hidden>
Sent: Thursday, August 11, 2005 2:34 AM
Subject: Re: How does an app/network listen for QT's debugstr ?



Can I make a system call to QT from another application...to call 'mcActionShowMessageString' and get debugstr

On the pc side I use system calls to access stuff like:
System::Call "advapi32::GetUserName(t .r0, *i ${NSIS_MAX_STRLEN} r1)i.r2"
DetailPrint "User name - $0"

Maybe I can make a similar call to QT ?
Can I target QT by its PID [which I can get] and request for 'mcActionShowMessageString' to give my background app the debugstr ?


--------
This below  is the awfully complicated work-around I would rather avoid.

Currently, I am using a server side php/msql to store what debugstr could do locally.
With QueryListServer, QT sends GET variables to a php script that inserts/replaces the below record in the database.
'Commands' Table in mysql db
Mac Address Commad Parameters
000d9368cf4a createTextfile happy,fun,ball


When a ListReceived is triggered with the correct QT list name , QT sends out: http://127.0.0.1:8181 .
Using tcpvcon [PC] or lsop[ Mac] , the background application is searching for any communication from QT on port 8181.
On PC, I call this every second or so from my background app: tcpvcon -anc 828 | find /c "8181"
If the returned string is "1", then my background app queries the SAME database to get the command/parameters that QT sent....
Then, my background app parses the string and executes commands.
-----------


For obvious reasons, this is a bit kludgy :( Lots of needless db queries and extra steps.
I'm doing my homework :) Can someone throw me a bone ?


g


On Aug 9, 2005, at 8:37 PM, Eric Carlson wrote:

At 12:09 PM -0700 8/9/05, Graham Anderson wrote:
How is debugstr transmitted  by QT ?

QuickTime doesn't do anything with the string, but it will pass the string to the host application if it has requested a notification. Each application can handle or ignore the message as it chooses.

Eric Carlson
QuickTime Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >How does an app/network listen for QT's debugstr ? (From: Graham Anderson <email@hidden>)
 >Re: How does an app/network listen for QT's debugstr ? (From: Eric Carlson <email@hidden>)
 >Re: How does an app/network listen for QT's debugstr ? (From: Graham Anderson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.