search for: winfunc

Displaying 1 result from an estimated 1 matches for "winfunc".

2008 May 18
2
problem build wine lib
...am trying to call a Linux shared library from an unmodified windows C++ program using a ?C? interface to a DLL. I have built very simple test case that I would like help to compile. Sorry for long post. File 1. header file to define the interface between the windows program and windows DLL #ifndef WINFUNC_H_ #define WINFUNC_H_ extern "C" { char * winFunc(bool select); } #endif /*WINFUNC_H_*/ File 2 ? the windows program #include <stdio.h> #include "WinFunc.h" int main(int argc, char * argv[]) { char * str = winFunc(false); printf("main: got %s\n", st...