-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Labels
Comments
mscoree does not implement "requesting" to an non cil managed code in
the same manner like you need (e.g. through il `call` opcodes): ~
```
call void 'NS'.'Class'::'exportedFunction'()
```
That is, you should understand that exported function does not belong to
this class anymore, I mean for initialized context in CLR of course.
So you can simply extract logic via normal managed methods, then just
call them through any place.
…On 19.03.2019 17:47, Sean wrote:
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) {
return a + b; saySomething(); //<---- } //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
<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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#94>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADGJ_V7kenFFz2n29O1JMJUNiCLrMimIks5vYPhrgaJpZM4b8Uu9>.
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...
=====================
Then it will end up saying cannot find method "saySomething" .
Version, configuration, commands:
Versions:
-version
: v1.6.2-build-info
:The text was updated successfully, but these errors were encountered: