Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3990870
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:32:48+00:00 2026-05-20T06:32:48+00:00

I am making a program, in C++ using Visual Studio 2005, that needs to

  • 0

I am making a program, in C++ using Visual Studio 2005, that needs to create a watermark with the time on a set of images.

These images are taken from a video that were processed at certain time intervals. What I am trying to do is to modify the time on each image through SYSTEMTIME. I looked at the MSDN and it says not to modify the values within SYSTEMTIME itself, but to convert it into a FILETIME and then an ULARGE_INTEGER. My question is how is the ULARGE_INTEGER split up? Is the HighPart the date and the Low Part the time and if that’s the case how to I take into account rollover? Like if a image shows up at 11:58pm on 2/25/2011 and goes through until 12:11 2/26/2011? Would just adding the specified value automatically be taken into account and shown when I convert it back into a SYSTEMTIME variable?

Thanks in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:32:48+00:00Added an answer on May 20, 2026 at 6:32 am

    They suggest converting SYSTEMTIME to FILETIME, which is a number of ticks since an epoch. You can then add the required number of ‘ticks’ (i.e. 100ns intervals) to indicate your time, and convert back to SYSTEMTIME.

    The ULARGE_INTEGER struct is a union with a QuadPart member, which is a 64bit number, that can be directly added to (on recent hardware).

    SYSTEMTIME add( SYSTEMTIME s, double seconds ) {
    
        FILETIME f;
        SystemTimeToFileTime( &s, &f );
    
        ULARGE_INTEGER u  ; 
        memcpy( &u  , &f , sizeof( u ) );
    
        const double c_dSecondsPer100nsInterval = 100.*1.e-9;
        const double c_dNumberOf100nsIntervals = 
                        seconds / c_dSecondsPer100nsInterval;
    
        // note: you may want to round the number of intervals.
        u.QuadPart += c_dNumberOf100nsIntervals;
    
        memcpy( &f, &u, sizeof( f ) );
    
        FileTimeToSystemTime( &f, &s );
        return s;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a request to a CGI program using AJAX. The response sends
I'm making a program that fits the wizard concept ideally; the user is walked
I'm making a program that retrieves decently large amounts of data through a python
I'm fairly new to C# programming. I am making a program for fun that
I'm making a C program where I need to get the directory that the
I was making a program that rounds up numbers with various decimal places, so
I'm using Visual Studio 2008 Pro. I'm probably missing something very obvious here, but
For my project I am using the integrated Visual Studio unit-testing framework but I
I am using Django and am making some long running processes that I am
I'm making a program which the user build directories (not in windows, in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.