I have the following line of code in my program:
StringCbPrintfA(szString,sizeof(szString),"INSERT INTO ClassRecord(SchInfoID,ArmNameID,ClassNameID,ClassTypeID,SessionID) VALUES(%u,%u,%u,%u,%u)",iSchInfoID,iArmNameID,iClassNameID,iClassTypeID,iSessionID);
where the relevant types are
long long &iSchInfoID;
long long iArmNameID, iClassNameID, iClassTypeID, iSessionID;
intellisence shows that:
iSchInfoID 1
iArmNameID 1
iClassTypeID 1
iSessionID 1
But 0 is placed in the buffer for iArmNameID.
What could be wrong?