Click here to Skip to main content
15,884,978 members

Comments by sjsteve33171 (Top 11 by date)

sjsteve33171 21-Feb-20 15:50pm View    
I did that previously. Visual Studio is telling me to simplify it by doing that
sjsteve33171 21-Feb-20 10:03am View    
Thank you all for the comments so far. I've spent a while looking into it and found out it's an issue with the app.manifest file.

Basically I noticed when using anything on the screen scaling over 100%, e.g. 150% or 200% i would get an image that was too big for the technician to see and it wouldn't fit. Put it to 100% and it works fine. So i found an article which explained to add the following to the app.manifest

<application xmlns="urn:schemas-microsoft-com:asm.v3">
  <windowsSettings>
    <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
  </windowsSettings>
</application>


Clearly this is causing the issue. If i remove it, it's fine and works. Starting to look around for ideas but if anyone can steer me in the direction of handling high DPI in a screenshot / app i'd appreciate it.
sjsteve33171 21-Feb-20 9:11am View    
Thats handy, thank you!
sjsteve33171 19-Nov-18 15:16pm View    
Thanks for the input Rick, however that’s using terminal services COM. I’m looking at C# sockets and streaming
sjsteve33171 24-Sep-14 5:50am View    
I come up with the below function:

bool ParseXMLLine( char *SearchFor, char *EndChar, char *&DataLine, char *ReturnBuffer, bool bSkip = true )
{
if( !strstr( DataLine, SearchFor ) ) return false;

char *TempBuffer = strstr( DataLine, SearchFor ) + ( strlen( SearchFor ) + 1 );
char *LineEnd = strstr( TempBuffer, EndChar );
int DataLen = strlen( SearchFor );
int CheckLen = LineEnd - TempBuffer;

TempBuffer[ CheckLen ] = '\0';

for( int i = 0; i < CheckLen; ++i ) ReturnBuffer[ i ] = TempBuffer[ i ];
if( LineEnd ) DataLine = LineEnd + 1;

return true;
}

What I'm doing now in my function is this:

while( ParseXMLLine( "BackupSet ID=", "\" ", result, pTemp ) )
{
printf( "%s\n", pTemp );
ZeroMemory( pTemp, sizeof( pTemp ) );
}

I get the following:

1373704238441
1373704403171
1373704726220
1373704952533
1373705074991
1389131910633
1397494831176
1398932504294
1410530753194

Likewise, if I do

while( ParseXMLLine( "BackupJob ID=", "\" ", result, pTemp ) )
{
printf( "%s\n", pTemp );
ZeroMemory( pTemp, sizeof( pTemp ) );
}

I get a load of results like:

2014-09-22-21-00-00
2014-09-23-21-00-00
2014-09-12-15-12-56
2014-09-12-18-00-00
2014-09-13-18-00-00
2014-09-14-18-00-00
2014-09-14-21-00-00
2014-09-15-18-00-00
2014-09-15-21-00-00
2014-09-16-18-00-00
2014-09-16-21-00-00
2014-09-17-18-00-00
2014-09-17-21-00-00
2014-09-18-18-00-00
2014-09-19-18-00-00
2014-09-20-18-00-00
2014-09-21-18-00-00
2014-09-21-21-00-00
2014-09-22-18-00-00
2014-09-22-21-00-00
2014-09-23-18-00-00
2014-09-23-21-00-00

So I'm able to get everything individually, however, How now can I split it down so it only passes the Job ID per backup set I request?

I'm assuming I would need to find the correct first 2 parameters to pass to my function?