| |

VerySource

 Forgot password?
 Register
Search
Author: zero9999

Can masters embed C language into C #

[Copy link]

2

Threads

29

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-3-10 12:45:02
| Show all posts
No, you can only encapsulate the code of C and use __dllexport. In C #, it is called like the win API. When exporting, it is best to write the exported function name in the def file.
c # use [DllImport ()] public static extern xxx (xxx);
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-13 00:45:01
| Show all posts
You can write "standard Dll" in C and use C # to call it. .
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-24 15:15:01
| Show all posts
Embedding will definitely not work
Can use C # to call the standard dll written in C language
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-25 14:00:01
| Show all posts
Can be embedded. You can refer to the example in Chapter 3 of C # Advanced Programming!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-31 07:30:01
| Show all posts
mark
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-6 18:15:01
| Show all posts
Or use C ++ / CLI instead
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-9 16:45:01
| Show all posts
Compiled into .dll, can be called by any language under WINDOWS environment ~
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-27 09:00:01
| Show all posts
dll
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-27 09:15:01
| Show all posts
Calling its DLL is not enough
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-27 09:30:01
| Show all posts
DLL
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