Click here to Skip to main content
15,885,048 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have to change the ordinal position in ado we have put_OrdinalPosition API directly in DAO mfc but as dao will not support 64 bit we are changing to ADO but they are no apis to changed ordinal position.

Could you please let me know any idead about how to implement in ADO C++?

What I have tried:

DAOField *pField = Get_DAOField(lpszTable, lpszField);

if ( pField )
DAO_CHECK(pField->put_OrdinalPosition(ordinal));

how to changed to ADO?
Posted
Updated 28-Apr-21 1:16am

1 solution

The tiny small difference in character order is misleading to the big gap between the technologies.
The best solution is to get rid of this call by removing the need of that change of the data structure. Maybe it is only a fix for some old bug or some weired data fetch. Else you may change the data fetches which are using.
Last fix is to create a view or table with that fix in run time or swap after creation.

All not good solution, BUT the cause it that nasty and incompatible call. I prefer removing it by removing the causes from them.

Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900