Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6677363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:06:36+00:00 2026-05-26T04:06:36+00:00

I have to replace an existing dll call that is registered and called using

  • 0

I have to replace an existing dll call that is registered and called using RegFn and CallFn respectively.

I am trying to write the dll using C# in the hope that as long as the function signature match and the dll is in the right place it will work.

so

pnHndl= RegFn("CALCULATE", "I", "I", "AJons.DLL")
pnRetVal = CallFn(pnHndl, 0)

My code is as follows:

[Guid("EAB7C2CD-2471-4BDA-90E9-F70403BAA557")]
[ComVisible(true)]
public class AJons : _AJons
{

    [ComVisible(true)]
    public int CALCULATE(int value)
    {
        return value * 2;
    }

}

Foxpro doesn’t play ball I just get ‘could not load library AJon.dll’

Does anyone have any experience here?

Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:06:37+00:00Added an answer on May 26, 2026 at 4:06 am

    From what I can see, those really old RegFn and CallFn are for calling Win32 native Dlls – completely different from COM.

    What you need to create a Win32 dll that will work with those functions is C++.

    What you should do (if you HAVE to keep using FoxPro) is at least use the latest version of VFP.

    written on my iPhone

    Update 1

    1) Just in case I wasn’t clear, you cannot make this kind of DLL from .NET.

    2) Have a look at this link here for a very simple example of how to write a Win32 dll.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using FlowPlayer to replace an existing FLV player on my site that plays
Using AspectJ, how do you replace an existing annotation? I have the following code
Do any of the existing JavaScript frameworks have a non-regex replace() function, or has
I have to download the database and replace existing one in the sandbox: Here's
We have an updated version of our app icon to replace the existing one,
I have a treeview in my C# code. I want to replace all existing
Our app receives a list of records that are to replace an existing set
I have a SOAP Service that is implemented using Apache Axis 2. It has
I have to replace the content of this xml string through java <My:tag>value_1 22&#xA;value_2
I have to replace something in file with :something . My editor is kate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.