How to call a C/C++ function from a Java method - simplified explanation

Описание к видео How to call a C/C++ function from a Java method - simplified explanation

for details see also the article https://blog-hoven.appspot.com/cpp-co...

This video explains how to call a c++ function from a java method. We explain how to compile a dll and then use two approaches to call the function.

this is the code you may be looking for -

extern "C"
{

__declspec (dllexport) void __stdcall Java_CMyClass_myMethod()
{

printf("Hello from C++");

}

}

Комментарии

Информация по комментариям в разработке