Go Back   Access World Forums > Microsoft Access Discussion > Reports

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 04-15-2019, 09:56 AM   #16
isladogs
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 8,876
Thanks: 105
Thanked 2,379 Times in 2,186 Posts
isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all
Re: ReportSpecs MDE Source Code

No. It means you haven't used the APIs that need converting Long to LongPtr.
A very quick glance indicates there are quite a few changes needed but I haven't checked properly.
For example all instances of hWnd need to be LongPtr

When you do something that requires one of those APIs, it will either fall over or just do nothing. So you may or may not notice any issues in the near future

__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
isladogs is offline   Reply With Quote
Old 04-15-2019, 10:07 AM   #17
PleasantB
Newly Registered User
 
Join Date: Dec 2018
Posts: 21
Thanks: 5
Thanked 1 Time in 1 Post
PleasantB is on a distinguished road
Re: ReportSpecs MDE Source Code

Quote:
No. It means you haven't used the APIs that need converting Long to LongPtr.
That was my first thought so I put a breakpoint on an API call that uses a handle to see if it was invoked.
The following APIs are definitely called:

Code:
Private Declare PtrSafe Function api_FindWindow32 Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As Any) As Long

Private Declare PtrSafe Function api_DestroyWindow32 Lib "user32" Alias "DestroyWindow" (ByVal hwnd As Long) As Long
PleasantB is offline   Reply With Quote
Old 04-15-2019, 10:13 AM   #18
isladogs
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 8,876
Thanks: 105
Thanked 2,379 Times in 2,186 Posts
isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all
Re: ReportSpecs MDE Source Code

Suggest you download a copy of Ron Bruin's API Viewer for Excel.
Despite the name it applies to any VBA enabled application.
http://www.rondebruin.nl/win/dennis/...sapiviewer.htm

__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
isladogs is offline   Reply With Quote
The Following User Says Thank You to isladogs For This Useful Post:
PleasantB (04-15-2019)
Old 04-15-2019, 12:24 PM   #19
PleasantB
Newly Registered User
 
Join Date: Dec 2018
Posts: 21
Thanks: 5
Thanked 1 Time in 1 Post
PleasantB is on a distinguished road
Re: ReportSpecs MDE Source Code

Quote:
Suggest you download a copy of Ron Bruin's API Viewer for Excel.
That tool is incredibly handy.

I was able to find x64 equivalents of all API calls except the following:
Code:
Private Declare Sub hmemcpy32 Lib "kernel32" Alias "RtlMoveMemory" (lpDest As Any, lpSource As Any, ByVal dwBytes As Long)
However, based on all of the other translations I've seen, I think the following would work:
Code:
Private Declare PtrSafe Sub hmemcpy32 Lib "kernel32" Alias "RtlMoveMemory" (lpDest As Any, lpSource As Any, ByVal dwBytes As LongPtr)

Last edited by PleasantB; 04-15-2019 at 01:04 PM.
PleasantB is offline   Reply With Quote
Old 04-15-2019, 12:56 PM   #20
isladogs
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 8,876
Thanks: 105
Thanked 2,379 Times in 2,186 Posts
isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all
Re: ReportSpecs MDE Source Code

Its very useful ...apart from the odd API it doesn't cover.
I've never seen that API before. Suggest you do an online search and failing that, suggest you test that API code carefully both with and without the dwbytes adjustment
__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
isladogs is offline   Reply With Quote
Old 04-15-2019, 01:08 PM   #21
PleasantB
Newly Registered User
 
Join Date: Dec 2018
Posts: 21
Thanks: 5
Thanked 1 Time in 1 Post
PleasantB is on a distinguished road
Re: ReportSpecs MDE Source Code

According to Microsoft's documentation (https://docs.microsoft.com/en-us/win.../rtlmovememory), the last parameter is of type SIZE_T.
As far as I know, size_t is 64 bits on 64-bit system so I believe LongPtr makes sense here.
PleasantB is offline   Reply With Quote
Old 04-15-2019, 01:13 PM   #22
isladogs
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 8,876
Thanks: 105
Thanked 2,379 Times in 2,186 Posts
isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all isladogs is a name known to all
Re: ReportSpecs MDE Source Code

I really don't know whether that is the case.
According to this link, it seems not....
https://stackoverflow.com/questions/...nd-older-offic

__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
isladogs is offline   Reply With Quote
Old 04-15-2019, 01:36 PM   #23
PleasantB
Newly Registered User
 
Join Date: Dec 2018
Posts: 21
Thanks: 5
Thanked 1 Time in 1 Post
PleasantB is on a distinguished road
Re: ReportSpecs MDE Source Code

That's strange because GlobalAlloc (https://docs.microsoft.com/en-us/win...se-globalalloc) also has a SIZE_T parameter and API Viewer indicates to use LongPtr for this parameter.

PleasantB is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Source Code Formatter Uncle Gizmo General 2 09-03-2015 03:56 PM
VBA Row Source Code? steve21nj Modules & VBA 13 09-19-2012 02:36 PM
Remove lines of code from source code? greaseman Modules & VBA 1 11-03-2006 02:13 PM
Source code Sharon Williams General 2 02-26-2003 11:03 AM
[SOLVED] Controlling the Row Source with Code girobert Forms 1 06-25-2001 12:57 PM




All times are GMT -8. The time now is 10:13 AM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World