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

C / C++ / MFC

 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 7:53
David Crow12-Oct-09 7:53 
AnswerRe: How to Insert a record using SQLExecute. [modified] Pin
transoft12-Oct-09 11:09
transoft12-Oct-09 11:09 
AnswerRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac12-Oct-09 15:05
professionalOzer Karaagac12-Oct-09 15:05 
GeneralRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 16:40
janaswamy uday12-Oct-09 16:40 
GeneralRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac12-Oct-09 17:59
professionalOzer Karaagac12-Oct-09 17:59 
GeneralRe: How to Insert a record using SQLExecute. Pin
janaswamy uday13-Oct-09 4:56
janaswamy uday13-Oct-09 4:56 
GeneralRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac13-Oct-09 10:44
professionalOzer Karaagac13-Oct-09 10:44 
QuestionHow to get account expire value from Active Directory Pin
raja 412-Oct-09 2:47
raja 412-Oct-09 2:47 
Dear Experts,

i am using following code to get account expire value.But the output only shows 100 nano seconds from jan 1 1960.
so how to
1.convert the nano seconds into seconds
2.convert the seconds into date
using visual c++






CComVariant svar;
hr =x->Get(CComBSTR("accountExpire"), &svar);
if(FAILED(hr))
{
return hr;
}

// Get the IADsLargeInteger interface.
CComPtr<iadslargeinteger> spli;

long lHigh;
long lLow;
__int64 i64;


// Get the IADsLargeInteger interface.

hr = svar.pdispVal->QueryInterface(IID_IADsLargeInteger,(LPVOID*)&spli);
if(FAILED(hr))
{
return hr;
}

// Get the high and low parts of the value.

hr = spli->get_HighPart(&lHigh);
hr = spli->get_LowPart(&lLow);

// Convert the high and low parts to an __i64.
//__int64 i64;
i64 = (ULONG)lHigh;
i64 = (i64<< 32);
i64 = i64 + (ULONG)lLow;

wprintf(L"HighPart = %u, LowPart = %u, Combined = %I64d\n",lHigh, lLow, i64);
AnswerRe: How to get account expire value from Active Directory Pin
CPallini12-Oct-09 3:04
mveCPallini12-Oct-09 3:04 
AnswerRe: How to get account expire value from Active Directory Pin
Randor 12-Oct-09 3:10
professional Randor 12-Oct-09 3:10 
QuestionSendMessage Aplication beetween switch xp users [modified] Pin
maulik_patel12-Oct-09 2:30
maulik_patel12-Oct-09 2:30 
AnswerRe: SendMessage Aplication beetween switch xp users Pin
«_Superman_»12-Oct-09 7:51
professional«_Superman_»12-Oct-09 7:51 
GeneralRe: SendMessage Aplication beetween switch xp users Pin
maulik_patel12-Oct-09 18:36
maulik_patel12-Oct-09 18:36 
QuestionCompilation error Pin
shilpi_gupta070812-Oct-09 2:01
shilpi_gupta070812-Oct-09 2:01 
AnswerRe: Compilation error Pin
Randor 12-Oct-09 2:15
professional Randor 12-Oct-09 2:15 
QuestionRe: Compilation error Pin
David Crow12-Oct-09 2:49
David Crow12-Oct-09 2:49 
AnswerRe: Compilation error Pin
shilpi_gupta070812-Oct-09 2:52
shilpi_gupta070812-Oct-09 2:52 
Questionminix Pin
rad-212-Oct-09 1:48
rad-212-Oct-09 1:48 
AnswerRe: minix Pin
Rajesh R Subramanian12-Oct-09 2:23
professionalRajesh R Subramanian12-Oct-09 2:23 
Questionminix 3 Pin
rad-212-Oct-09 1:38
rad-212-Oct-09 1:38 
AnswerRe: minix 3 Pin
JosephHill31-Oct-09 17:20
JosephHill31-Oct-09 17:20 
QuestionDirectShow: Building Graph for input over network Pin
priteek12-Oct-09 1:30
priteek12-Oct-09 1:30 
AnswerRe: DirectShow: Building Graph for input over network Pin
Code-o-mat12-Oct-09 10:02
Code-o-mat12-Oct-09 10:02 
QuestionHow to implement PrintScreen functionality in VC++6.0 Pin
Arun Abraham Jose12-Oct-09 1:14
Arun Abraham Jose12-Oct-09 1:14 
QuestionRe: How to implement PrintScreen functionality in VC++6.0 Pin
CPallini12-Oct-09 1:57
mveCPallini12-Oct-09 1:57 

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.