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

preview_player
Показать описание

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++");

}

}
Рекомендации по теме
Комментарии
Автор

you are the best in the internet
all ITMO students fall in love with you

slikyumsh