| |

VerySource

 Forgot password?
 Register
Search
View: 672|Reply: 2

About C # call C ++ callback function.

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-23 10:20:02
| Show all posts |Read mode
In C ++, functions are defined by __cdel, and C # defaults to __stdcall. C # delegates call C ++ with errors. How to change the C # method calling convention to __cdel?
Reply

Use magic Report

0

Threads

46

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-2-8 09:45:02
| Show all posts
I don't understand VC ++ so well, but I can definitely turn around VC.NET <==> C #
Reply

Use magic Report

0

Threads

32

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-8-24 20:30:01
| Show all posts
CallingConvention=CallingConvention.Cdecl
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list