August 8, 200421 yr Commercial Member I should have come across this forum much earlier, it is great :).I am making a DLL at the moment and thanks to the example code of Jos Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
August 8, 200421 yr Arno,This is the code I used: FSUIPC_Open2(FSReq, &Result, Mem, Size); FSUIPC_Write(0x8001, 29, "Z6MCG7ZTBVD5dsd_catapult.gau", &Result); FSUIPC_Process(&ResultR);Note that 29 is the length of the string being written, plus one.Doug Dawson
August 8, 200421 yr Author Commercial Member Thanks, that was about what I already tried and I still get the warning on startup that the registration is not correct.As I wrote before I use the example of Jose. It contains a piece of code like this:[tt]if (FSUIPC_Open2(SIM_ANY, &dwResult, FSUIPCMem, 500)) { KillTimer (NULL,TimerFSUIPC); //rest of the code[/tt]And I changed it to this:[tt]if (FSUIPC_Open2(SIM_ANY, &dwResult, FSUIPCMem, 500)) { FSUIPC_Write(0x8001, 25, "HXGLI106K9TFactigate.dll", &dwResult); FSUIPC_Process(&dwResult); KillTimer (NULL,TimerFSUIPC); //rest of the code[/tt]Maybe someone can see what I am doing wrong :). Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
August 8, 200421 yr Have you checked in the FSUIPC log file? It may provide some insite as to what is going on...Doug
August 8, 200421 yr Author Commercial Member Yes, it contains these lines:[tt] 12985 Module identified = "actigate.dll" 15000 Illegal read attempt: offset 0BC8, size 2 15000 ... Program or module not accredited for use with this unregistered FSUIPC[/tt]That makes me think that something went wrong with passing the key.At least I know now that I am using the right commands, I will continue searching :). Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
August 9, 200421 yr Author Commercial Member OK, found it, thanks for helping.I was stupid enough to think that the key of the EXE I had made before would also work when I wrote it as a DLL, but that was not the case. Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
September 6, 200520 yr Hello,i also trying to register my dll in FSUIPC but inn Delphi and but it dosent work.I have a FPCuser.pas with a Procedure called FSUIPC_open, but i havent the FSUIPC_open2 Procedure.Can anyone help me here ?I have atached the FPCuser as a rar and hope here can help me anyoneplease.Thanksmatthias
Create an account or sign in to comment