I have since years in my VBA code in MS Access the following lines:
Private Declare PtrSafe Function CoCreateGuid Lib "ole32.dll" (guid As GUID_TYPE) As LongPtr
Private Declare PtrSafe Function StringFromGUID2 Lib "ole32.dll" (guid As GUID_TYPE, ByVal lpStrGuid As LongPtr, ByVal cbMax As Long) As LongPtr
And until now that worked fine on all PCs.
Now, since today, I get a compile error on one PC with Windows 10 and Office 2007 32bit.
I guess Windows updated something automatically. But I am not the administrator of that PC and I see the error only on one PC.
The word PtrSafe is highlighted at when "Compile Error" is shown.
Does anybody know about a recent update which might cause this error? I like to tell the administrator of that PC what they should check for. Just telling them that my VBA does not work anymore won't help much.
Thank for any help
Edit: This question is different from this one Declare PtrSafe Compatibility in Excel Because until now the VBA code was running fine on that PC, for years. The user did not change anything.
I like to know why the error shows now and never showed before.
I guess an automatic Windows update caused this but I can't check it myself on that PC because I have no admin rights. And I don't see the error on any other PC which uses the program.