Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Calling C Library DLLs from C#
Đang chuẩn bị liên kết để tải về tài liệu:
Calling C Library DLLs from C#
Bá Tùng
98
13
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
The .NET framework was designed to be the “lingua franca” for Windows development, with the expectation that it will set a new standard for building integrated software for Windows. However, it is inevitable that there is a time lag before .NET is fully adopted and existing applications are recoded. In particular, there is a large body of legacy code that will likely never be rewritten in .NET. To address this situation, Microsoft provides attributes, assembly, and marshaling. At the Numerical Algorithms Group (where I work), our particular interest in using these techniques is to utilize numerical software developed in C from within the .NET environment. Because. | Numerical Algorithms Group Title Calling C Library DLLs from C Utilizing legacy software Summary For those who need to utilize legacy software we provide techniques for calling unmanaged code written in C from C . The .NET framework was designed to be the lingua franca for Windows development with the expectation that it will set a new standard for building integrated software for Windows. However it is inevitable that there is a time lag before .NET is fully adopted and existing applications are recoded. In particular there is a large body of legacy code that will likely never be rewritten in .NET. To address this situation Microsoft provides attributes assembly and marshaling. At the Numerical Algorithms Group where I work our particular interest in using these techniques is to utilize numerical software developed in C from within the .NET environment. Because C is the premier .NET language the examples I present here are in C . While I use an example of data types that are current in the NAG C Library the techniques I present are general enough for calling unmanaged code written in C from C directly. The NAG C Library uses the following data types as parameters Scalars of type double int and Complex. These are passed either by value or by reference as pointers to the particular type . enum types. Arrays of type do uble int and Complex. A large number of structures generally passed as pointers. A few instance of arrays which are allocated within NAG routines and have to be freed by users these have type double . Function parameters also know as callbacks . These are pointers to functions with particular signatures. For convenience I include a C DLL containing definitions of all the functions being called from C . This DLL is available electronically from DDJ see Resource Center page 4 and NAG http www.nag.com public ddj.asp . For instance take the example of a C function that takes two parameters of the type double and double that is the first parameter is input
TÀI LIỆU LIÊN QUAN
Calling methods
Bài giảng Tin học đại cương - Chương 5: Pointers and Strings
Calling C Library DLLs from C#
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.