Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Cdialog constructed/create Pin
ForNow24-Sep-09 7:29
ForNow24-Sep-09 7:29 
QuestionRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:01
David Crow24-Sep-09 8:01 
AnswerRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:08
ForNow24-Sep-09 8:08 
QuestionRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:10
David Crow24-Sep-09 8:10 
AnswerRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:24
ForNow24-Sep-09 8:24 
GeneralRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:32
David Crow24-Sep-09 8:32 
GeneralRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:50
ForNow24-Sep-09 8:50 
QuestionDWORD Time Puzzle Pin
phil241524-Sep-09 5:36
phil241524-Sep-09 5:36 
I know this isn't strictly a C++ problem but the application in question is written in C++ and this seems to be as good a place as any for some genius to come across this and answer it!

OK, I have this puzzle that's been driving me crazy for over a week. Perhaps if I explain it to you someone can help me to crack it!

I'm trying to replicated the behaviour of some software. It's a digital signage system and consists of a server application running, at the moment, on my PC, and a client which is a giant LCD screen with a built-in PC running Windows XP Embedded. In case anyone's familiar with it the sofware is MagicInfo by Samsung.

The server application has the option to create an alert ticker message. It can be formatted, colours selected, etc. And when it's ready you hit the 'Send' button in the server console and instantly the message appears on the remote client screen. It'll keep running for the length of time I specified in the message setup or I can stop it by pressing the 'Stop' button in the server console.

I've determined that the message itself and its formatting is contained in a simple XML file, which I'll paste below. Every time I update the message in the server the XML file on the client is updated. So, it's simple for me to come up with my own way to change the message.

The hard part is how to trigger the display of the message. Remember, it can't be scheduled, it only appears when that 'Send' button is pressed. I have searched high and low on the client for SOMEWHERE that might store the on/off flag, or SOME indication of what changes when the message is activated.

Getting in a bit over my head I've used network sniffer programs to examine the data packets sent between the server and the client when the message is activated and, sure enough, I can see the text of the updated message being sent. The client is permanently running a little application called XL_TICKER which seems to just sit there and wait for these packets from the server. However, attempting to replicate the packets manually with my limited knowledge has thus far failed to trigger the message on the client.

So here's the puzzle. The ONLY thing that appears to change on the client each time I trigger the message (other than the XML file itself) is an entry in the Windows Registry, in a node containing various details about MagicInfo. There are two keys, called TickerStartTimeHigh and TickerStartTimeLow. These are DWORD values. The latter, TickerStartTimeLow, changes every time I trigger the ticker message. The other one only changes sometimes. I'm desperately hoping that somehow the client checks these values continually and, depending on what the values are, displays the message. I know it's a long shot but since I can find nothing else on the client that changes with the triggering of the ticker message I've got nothing else to go on.

The problem is that the values in these keys make no sense at all. I don't even know why there would be a HIGH and a LOW start time. Here are some examples of the values in the keys. If anybody can work out how these relate to time or, indeed, what they mean, I'd be eternally grateful!

Link to table of DWORD values at various times

I know it looks as if the TickerStartTimeHigh might simply be an incremental value, going up one each time, but sometimes it doesn't change from one triggering of the message to the next. It does, however, seem to go up by very small amounts over time, whereas TickerStartTimeLow leaps up by thousands, then all of a sudden drops by thousands, as if it's reaches a maximum and started again (although only rises are seen in the data above). I can only assume that the actual time or significant value is a derivation of the two numbers, but again - why store it in this way?

FWIW, here's the text of the XML file for the ticker:

<?xml version="1.0" encoding="utf-8"?>
<root>
<Ticker>
<Text>The text of the message goes here</Text>

</Ticker>
<Time>00:02:00</Time>
<BottomPosition>True</BottomPosition>
<Direction>Right To Left</Direction>
<Speed>95</Speed>
<Step>1</Step>
<Font>Arial</Font>
<Size>70</Size>
<Italic>False</Italic>
<Bold>True</Bold>
<UnderLine>False</UnderLine>
<Strikeout>False</Strikeout>
<HLocation>Center</HLocation>
<TextColor>16777215</TextColor>
<BackgroundColor>255</BackgroundColor>
<Transparency>100</Transparency>
</root>
AnswerRe: DWORD Time Puzzle Pin
Stuart Dootson24-Sep-09 6:13
professionalStuart Dootson24-Sep-09 6:13 
GeneralRe: DWORD Time Puzzle Pin
phil241525-Sep-09 3:46
phil241525-Sep-09 3:46 
GeneralRe: DWORD Time Puzzle Pin
Stuart Dootson25-Sep-09 4:12
professionalStuart Dootson25-Sep-09 4:12 
GeneralRe: DWORD Time Puzzle Pin
phil241525-Sep-09 5:03
phil241525-Sep-09 5:03 
GeneralRe: DWORD Time Puzzle Pin
Stuart Dootson25-Sep-09 10:48
professionalStuart Dootson25-Sep-09 10:48 
GeneralRe: DWORD Time Puzzle Pin
phil241527-Sep-09 23:05
phil241527-Sep-09 23:05 
QuestionHow to prevent accelerators while certain childs have focus? Pin
i96danma24-Sep-09 5:28
i96danma24-Sep-09 5:28 
QuestionFast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
D_code_writer24-Sep-09 4:20
D_code_writer24-Sep-09 4:20 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Michael Schubert24-Sep-09 5:31
Michael Schubert24-Sep-09 5:31 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
molesworth24-Sep-09 6:04
molesworth24-Sep-09 6:04 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Rick York24-Sep-09 6:56
mveRick York24-Sep-09 6:56 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Luc Pattyn24-Sep-09 7:55
sitebuilderLuc Pattyn24-Sep-09 7:55 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
D_code_writer24-Sep-09 18:51
D_code_writer24-Sep-09 18:51 
QuestionCombine Two bmp images into one Pin
Game-point24-Sep-09 3:47
Game-point24-Sep-09 3:47 
AnswerRe: Combine Two bmp images into one Pin
Richard MacCutchan24-Sep-09 4:12
mveRichard MacCutchan24-Sep-09 4:12 
QuestionProperty sheet and page Pin
hrishiS24-Sep-09 3:46
hrishiS24-Sep-09 3:46 
AnswerRe: Property sheet and page Pin
David Crow24-Sep-09 4:02
David Crow24-Sep-09 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.