Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3.  
  4. // C#から呼ばれる関数の定義
  5. DllExport void Test(const char* str);
  6.  
  7. void Test(const char* str)
  8. {
  9. if (str == NULL) {
  10. std::cout << "str is null." << std::endl;
  11. return;
  12. }
  13. std::cout << str << std::endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement