ok then theres an other problem 😀 (the topic should be renamed now)
so it is Microsoft Visual Studio 2005. WD, you said if I want to create my own FM emulator, the "entry point" is the OPL_Write() function in adlib.cpp.
I have some example (working) program for adlib using, a very simple. So it must be changed - instead of writing the 2 ports. So, OPL_Write() in adlib.cpp, and - I know its very primitive - pressing F7 and copy the .c, .h, .cpp files what the program needs. Im finished with inout, mem, mixer, ymf262 etcetcetc and after linkink it drops:
myprogram.obj : error LNK2019: unresolved external symbol "void __cdecl PIC_AddEvent(void (__cdecl*)(unsigned int),float,unsigned int)" (?PIC_AddEvent@@YAXP6AXI@ZMI@Z) referenced in function "void __cdecl OPL2::TimerHandler(int,double)" (?TimerHandler@OPL2@@YAXHN@Z)
yay. 😒