Results 1 to 10 of 10
  1. #1
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110

    64 bit upgrade issue Ribbon images missing


    I discovered that my system was running 32 bit access so I upgraded to 64 bit. Obviously, that means that all my Declare statements need to have ptrsafe added to them, which I did. It also means that all Long variables need to be updated to LongPtr, which I did. Now my application works just fine, except .......... my custom Ribbon icons no longer appear. I've done a lot of web searches and can't find a resolution.

    Any ideas?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    It also means that all Long variables need to be updated to LongPtr
    No, it doesn't. Only longs which are a pointer need to be changed.

    With regards your custom ribbon icons - perhaps they need to be reinstalled

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Quote Originally Posted by willkr View Post
    I discovered that my system was running 32 bit access so I upgraded to 64 bit. Obviously, that means that all my Declare statements need to have ptrsafe added to them, which I did. It also means that all Long variables need to be updated to LongPtr, which I did. Now my application works just fine, except .......... my custom Ribbon icons no longer appear. I've done a lot of web searches and can't find a resolution.

    Any ideas?
    Updating for 64 bit is not as simple as just adding ptrSafe or longPtr haphazardly. You only need to add them for certain things like handles and pointers. What API's are you using?

    Any reason you cant run your Home Budget app in 32 bit access?
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Agree with the earlier comments - converting all Longs to LongPtr is incorrect & many APIs will no longer work.

    Suggest you read my series of 5 articles on 32 to 64-bit conversion starting with 32 to 64-bit Conversion (isladogs.co.uk)
    The articles also contain links to other useful articles and utilities that will help you do the conversion correctly
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110
    I was wanting to release my Home Budget Manager application for both 32 bit and 64 bit systems. So I have to make it run on a 64 bit system. As I said earlier, I have already added ptrsafe to all Declare statements. I also was under the impression that all Long declarations had to be changed to LongPtr, so I have done so. I don't use any API's and my custom ribbon icons are in a separate directory.

    So, the real question is, "Have I screwed myself?"

    Isladogs, I have started reading through your articles.

    willkr

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Sorry but that makes little sense.
    If you don't use APIs you wouldn't have any declarations to convert. So where have you added PtrSafe? Where have you converted Long to LongPtr.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  7. #7
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110
    OK, I'm showing my ignorance again. Isn't an API used to connect with another application like excel or word?

  8. #8
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Sounds like you really do need to spend time reading up on this before you go any further.

    API = application programming interface
    APIs are used to do a wide variety of tasks that extends the feature set of what Access can do by itself

    Interaction with other Office apps is usually done by automation
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  9. #9
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110
    Ouch! The truth hurts sometimes.

  10. #10
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Quote Originally Posted by willkr View Post
    Ouch! The truth hurts sometimes.
    Sorry about that but better to get it right now rather than later.

    For info, my first conversion was a huge database for schools of 5000+ objects to 64-bit back around 2012. I was only given 2 weeks notice by my largest client.
    At the time, there was little guidance available and I also wrongly converted all Longs to LongPtr as I didn't know what I was doing.
    I also used a over complex method for conditional compilation as I had users on A2003/2007 as well as 2010 (both bitnesses)

    As very few users initially had 64-bit Office & even fewer bothered to report errors, it took a while before those errors started to be reported.
    It was only over a period of time that I realised much of the code reliant on APIs didn't work
    I had to learn how to do the conversion properly & had to review every API & Type statement individually together with related definitions in procedures based on APIs
    I had several hundred APIs and it took a long time to fix!

    I also created an automated error reporting system at the same time so I wasn't dependant on users making the effort to report any errors in my application
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. upgrade issue
    By dollygg in forum Access
    Replies: 3
    Last Post: 06-14-2023, 07:13 AM
  2. Control ribbon missing while in Preview
    By GraeagleBill in forum Reports
    Replies: 2
    Last Post: 08-27-2021, 10:04 AM
  3. missing functions from ribbon
    By harryklein in forum Access
    Replies: 8
    Last Post: 09-25-2018, 01:46 AM
  4. Import Data Options Missing from Ribbon
    By wcrimi in forum Import/Export Data
    Replies: 6
    Last Post: 07-09-2017, 04:06 PM
  5. Replies: 1
    Last Post: 03-06-2012, 02:16 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums