Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot call a Exported function A from Exported function B? #94

Closed
seagal82 opened this issue Mar 19, 2019 · 1 comment
Closed

cannot call a Exported function A from Exported function B? #94

seagal82 opened this issue Mar 19, 2019 · 1 comment
Labels

Comments

@seagal82
Copy link

seagal82 commented Mar 19, 2019

How to reproduce

Sorry i had not research this field much.
Is it normal that I cannot call a Exported function A from Exported function B?
such as...

=====================

in C

_add(1,2);

in C#

//Function B
[DllExport]
public static int _add(int a, int b)
{
    saySomething(); //<---- 
    return a + b;
}

//Function A
[DllExport]
public static bool saySomething()
{
    DialogResult dlgres = MessageBox.Show(
        "Hello from managed environment !",
        ".NET clr",
        MessageBoxButtons.OKCancel
    );

    return dlgres == DialogResult.OK;
}

Then it will end up saying cannot find method "saySomething" .

Version, configuration, commands:

Versions:

  • -version: v1.6.2
  • -build-info:

S_NUM: 1.6.2
S_REV: 1044
S_NUM_REV: 1.6.2.1044
S_REL:
bSha1: 9fa5bbb
bName: master
bRevc: 126
Wizard .NET: v4.0
Configuration: PublicRelease
Platform: AnyCPU
cfgname: Release
revDeltaBase: 2016/10/12
revDeltaMin: 1000
revDeltaMax: 65534

  • Full command:
  • Environment ( VS, MSBuild, ...):

Visual Studio 2015

@3F
Copy link
Owner

3F commented Mar 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants