SAMEER QASIM
asked on
Looking for 64 bit version of Declare Function GetUserName
I am using getusername function to use Windows login for security. However, when I tried to use the mdb on a 64 bit setup I get the following error msg.
The code in this project must be updated to 64bit systems. Please review and updatet declare statetments and then mark them with the PtrSafe atribute.
What do I need to do this?
The code in this project must be updated to 64bit systems. Please review and updatet declare statetments and then mark them with the PtrSafe atribute.
What do I need to do this?
If your just getting into this (32 vs 64 bit) you'll want to read this thread:
https://www.experts-exchange.com/questions/27190589/GetUserName-fails-on-64bit-Access.html
and specifically this comment:
https://www.experts-exchange.com/questions/27190589/GetUserName-fails-on-64bit-Access.html?anchorAnswerId=36167741#a36167741
which has some very helpful links.
Jim.
https://www.experts-exchange.com/questions/27190589/GetUserName-fails-on-64bit-Access.html
and specifically this comment:
https://www.experts-exchange.com/questions/27190589/GetUserName-fails-on-64bit-Access.html?anchorAnswerId=36167741#a36167741
which has some very helpful links.
Jim.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I have recommended this question be closed as follows:
Split:
-- crystal (strive4peace) - Microsoft MVP Access (https:#a42141408)
-- Jim Dettman (Microsoft MVP/ EE MVE) (https:#a42141404)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
Pber
Experts-Exchange Cleanup Volunteer
I have recommended this question be closed as follows:
Split:
-- crystal (strive4peace) - Microsoft MVP Access (https:#a42141408)
-- Jim Dettman (Microsoft MVP/ EE MVE) (https:#a42141404)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
Pber
Experts-Exchange Cleanup Volunteer
Declare PtrSafe Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As LongPtr) As Long