Here's what I'm trying to do:

I want my program to spawn a Msgbox on the first day of every month with some information for the user. Please walk me throught it EXACTLY, as I'm a beginner :icon_mrgreen:

:?:

Step 1: call function time() to get current time in seconds.

Step 2: call localtime() to convert the integer returned by Step 1 into a struct tm

Step 3: Check if tm_mday is 1

1.U can put an observer which informs u when the system date is changed( u will get notified 12 am everyday).
//please check for the appropeiate api to get the system date change notification in ur sdk .
2.And then do ur task if it is first of the month .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.