|
GetOrderDate |
Top Previous Next |
|
This function returns the date when order has been created.
static void GetOrderDate(int& iYear, int& iMonth, int& iDay, int& iHour, int& iMinute);
Parameters
int iYear - Year in date of the activation int iMonth - Month in date of the activation int iDay - Day in date of the activation int iHour - Hours in date of the activation int iMinute - Minutes in date of the activation
Return value
Returns nothing.
Requirements
Library: IntelliProtectorDummy.dll Source: UnitIntelliProtector.h
Example
#include "UnitIntelliProtector.h" using namespace IntelliProtectorService; //... void TFormMain::ShowOrderDate() { int iYear, iMonth, iDay, iHour, iMinute; CIntelliProtector::GetOrderDate(iYear, iMonth, iDay, iHour, iMinute);
if (iYear < 0) lOrderDate->Caption = "-1"; else { TVarRec vrParam[] = {iDay, iMonth, iYear, iHour, iMinute}; lOrderDate->Caption = Format("%d.%d.%d %d:%d", vrParam, 5); } }
|
| Copyright © 2011 intelliprotector.com |