+ Reply to Thread
Results 1 to 4 of 4

Error message can anyone help please

  1. #1
    Registered User
    Join Date
    03-07-2021
    Location
    Bristol
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    73

    Error message can anyone help please

    I keep getting this error message below

    It says the code on this project must be updated for a 64 bit system. Please review and update declare statement and then mark them with Pttsafe attribute

    This is a bit about what Im trying to do use the Predict function




    Marge (Ward Systems Group)

    Apr 2, 08:28 CST

    You need to load the NeuroShell 2 runtime add-in into Excel. In Excel, go to the File Menu, Excel Options, and look for the Add-ins link. If you don't find NeuroShell 2 runtime add-on on the list, click on the Go button near Manage Excel Add-ins, and then click on the Browse button and search for c:\NeuroShell 2\Runtime examples\Excel2000\pred.xla, the version that works with Excel 2016.

    Once the add-in is loaded, you can call your trained network from Excel using the Predict function.
    =Predict("C:\NeuroShell 2\Examples|apple.def";$B$2:$E$2; 1)

    Substitute the .def file from your problem for apple.def above.
    Substitute the input cells for your problem for $B$2:$E$2 above.
    1 refers to the first output of the model. Adjust for your model.

    For a complete description, refer to the help topic DLL Server - Detail. Also, look at the spreadsheet called Predict2000.xls in the c:\NeuroShell 2\Examples\Runtime examples\Excel2000 directory.
    TRACY SPEN
    TRACY SPENCER

    Apr 2, 06:37 CST



    Can you help I have upgraded from Neuroshell 4.0 to 4.2 . The reason was so that I can fire network from Excel 16 . I have tried all sorts of things and it still doesn?t work I?m using the predict for reproducing my trained network from the Dll file.

    Sent from Mail (https://go.microsoft.com/fwlink/?LinkId=550986) for Windows 10

    Virus-free. www.avast.com (https://www.avast.com/sig-email?utm_...nt=emailclient)

  2. #2
    Registered User
    Join Date
    03-07-2021
    Location
    Bristol
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    73

    Re: Error message can anyone help please

    This is the code

    Option Explicit

    ' Function prototypes for the NS2-32.DLL
    Declare Function OpenNet% Lib "Ns2-32.dll" _
    (ByVal path$, netnumber%, inputs%, outputs%)

    Declare Function FireNet% Lib "Ns2-32.dll" _
    (netnumber%, inputsarray#, outputsarray#)

    Declare Function CloseNet% Lib "Ns2-32.dll" (netnumber%)

    Public Function Predict(fname, indata, output_number)
    Dim netnum%, ret%, ins%, outs%, path$, inar#(), outar#(), i%

    'copy filename into string variable
    path = fname

    'open network file
    ret = OpenNet(path, netnum, ins, outs)

    'exit if (file not found) OR (file is not a definition file)
    'ret=0 means no error
    If ret <> 0 Then
    Predict = "File?"
    Exit Function
    End If

    'make input array and copy inputs
    ReDim inar(1 To ins)
    For i = 1 To ins
    inar(i) = indata(i)
    Next i

    'make output array
    ReDim outar(1 To outs)

    'fire the net
    ret = FireNet(netnum, inar(1), outar(1))

    'ret=0 means no error
    If ret = 0 Then
    Predict = outar(output_number)
    Else
    Predict = "Error!"
    End If

    'close the network
    ret = CloseNet(netnum)

    End Function

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Error message can anyone help please

    It would appear you need to get a 64bit compatible version of the add-in.
    Rory

  4. #4
    Registered User
    Join Date
    03-07-2021
    Location
    Bristol
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    73

    Re: Error message can anyone help please

    Thanks Roy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Replace error message with text message
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2017, 02:37 AM
  2. An error message on open - a totally blank VBA message box
    By Mr_Tigas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2013, 11:29 AM
  3. Error Message For Function Procedure WITHOUT using a message box
    By bmr8002 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2012, 02:01 PM
  4. Replacing run time error message with a different message
    By penny in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-14-2009, 10:51 AM
  5. replace VBA run-time error message with custom message
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-14-2006, 11:05 AM
  6. [SOLVED] changing the message in an error message
    By The Villages DA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2005, 01:34 PM

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