Results 1 to 13 of 13

64bit compatible code

Threaded View

  1. #1
    Registered User
    Join Date
    08-23-2014
    Location
    england
    MS-Off Ver
    2013
    Posts
    23

    64bit compatible code

    writing code on 2013 64bit and expected to be able to use VB7 as follows

    vba.png


    but doesn't like it. am I doing something wrong?

    (can't get uploaded image to display)

    #If VBA7 Then
    Private Declare PtrSafe Sub GetSystemTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME)
    Private Declare PtrSafe Function GetTimeZoneInformation Lib "kernel32" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As LongPtr
    #Else
    Private Declare Sub GetSystemTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME)
    Private Declare Function GetTimeZoneInformation Lib "kernel32" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long
    #End If
    Last edited by dalai; 11-03-2014 at 01:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SOAP component30 not compatible with Office 64bit
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2014, 03:56 AM
  2. my 32bit vba code won't run in 64bit
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2014, 02:15 PM
  3. Change registry settings for IE 64bit in 64bit environment
    By dgdgdg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2014, 07:56 AM
  4. [SOLVED] Updating Code for 64bit Office
    By D.A.S in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-22-2013, 06:16 PM
  5. Replies: 3
    Last Post: 11-23-2012, 01:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1