Jump to content
The simFlight Network Forums

EsCaPe

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by EsCaPe

  1. Today, I tried to translate C code to Delphi....I have few code problems....maybe you can help.. asm push eax [b] call next next: pop eax[/b] mov dwError,eax pop eax end; Compiler does not recognise "next" in both lines.....is there any alternate to this code or something else ? Also, I have problem with: dwError = SendMessage(m_hWnd, WM_IPCTHREADACCESS, (WPARAM) (m_pNext - m_pView - 4), (LPARAM) m_pView); I see that WM_IPCTHREADACCESS is #define WM_IPCTHREADACCESS (WM_USER+130) but there is no WM_USER definition in Delphi... I also found that WM_USER is 0x0400 ($0400 in Delphi)...is that correct ? How to use this? I was playing a little with a code (without knowing what am I doing) and when i set this: dwError := SendMessage(m_hWnd, RegisterWindowMessage(FS6IPC_MSGNAME1), WPARAM(DWORD(m_pNext) - DWORD(m_pView) - 4), LPARAM(m_pView)); //(Delph code) i get 89844 IPC ERROR: Atom Id not recognised in FSUIPC LOG when i set this: dwError := SendMessage(m_hWnd, RegisterWindowMessage(FS6IPC_MSGNAME1), WPARAM(1), LPARAM(m_pView)); //(Delph code) i get 666594 IPC ERROR: Offset >= 65534 in FSUIPC LOG It is possible that I am not calling Open2 in a right way...please provide me a simple code for calling it....just to check... ...this is only moment when FSUIPC detect some action...maybe that can help you to see what I am doing wrong... My cable connection expires today so I'll be back by tonight...I hope I'll find out something else till then... Bye Marko
  2. Yes :) intra-process Well, I am trying to find slution because I don't want you to change FSUIPC only because of me... I am having trouble now rebuilding Library for Internal users...I rebuilded it but I get Access Violation error...working on it... Regards Marko
  3. Hi Pete.... I built DLL that can be used to communicate with FSUIPC for External Modules (FSUIPC_Open() function) I attached changed version of library found in SDK...it is now in TOTAL MESS because I was only testing and I am not any kind of pro in C :D I will appritiate if you take a look and check if it is everything OK... I chenged my External module source code to use that DLL to communicate with FSUIPC...and it works almoast perfect....only think that went wrong is Fuel Capacity....but...maybe that was my mistake (variable type) I will now try to recompile Inter-Process Library.... Bye Marko FSUIPC.ZIP
  4. http://en.wikipedia.org/wiki/Microsoft_nk_Library I found what I need...this explanes me some things... Ill try now to compile Internal-User Library as DLL with few changes...and execute functions from Delphi... Wish me a luck :D
  5. This is totally convinient.... There is same functions in Delphi for loading DLL library With your code changes I think that there won;t be any problem but I suggest that (if it is not a problem and takes you less time) you create separate DLL that will act as processor betwen "Some APP" and FSUIPC This resolves FSUIPC version problem...user is not required to download new version. I don't know is this possible but I think that it is much better solution Delphi is able to use LoadLibrary (explicit linking) Few more days reasrching and will see what will happen...I am going little crazy because of all these Pascal, C, C++ codes but...It is the risk I am ready to take :D Beest Regards Marko
  6. Delphi is very easy to understand and manipulate so soloving this problem will probably help few more people than me :) Delphi's main linking to system libraries (USER, KERNEL and etc) are automatic so there is no visible source or something simmilar where I can se how it works.. For now, I can link Delphi APP with DLL built by Delphi...today Ill play with C DLLs and Delphi... Any progress I'll provide source here to help someone else with same problem (if there is such people) :) Tnx Marko
  7. As i know it can, because I must type whole file name in LoadLibrary function. For last few days I am doing my best to find some alternative...Maybe the least painful option will be if I find Borland C++ Module Example (DLL) because I can use my previous knowledge from Delphi to use Borland C++ I have C source provided with SDK I noticed one ASM part...I think that Delphi is also able to use asm code...Ill check it out... I dont want you to do something yet because I am not 100% sure that I know how to call a function from DLL writen in C. Ill try to build some small C DLL example and use it by Delphi app... Yes...that was my idea too...ill spend few more days trying to find out some solution...If I dont find it, then I will probably use some other addons instead of FSUIPC for internal module, and small C programs (external...called by internal module) for some routines (fuel loading and etc.)...until I found some solution or create module in C++...anyway, FSUIPC is the best so sooner or later I will find out way to use FSUIPC in my project... I wrote a PrivateMessage same day you told me about him, but no answers yet...I cannot find his email...could you provide it to me via PM or email (escape@cg.yu) so I can contact him... Thanks a lot Pete Marko ---------------------------------- SEA - Software Development http://www.skyeast-va.com ----------------------------------
  8. Hi to all, I created Delphi DLL module but I have one problem...Delphi SDK has no access to Open2() function so I can not register my module withn FSUIPC using Inter-Process I attached test project to create delphi DLL for FS... Does anyone knows is there any way to use "Library for FS Internal Users" with Delphi app so I can register my module... Or maybe creating some C DLL and linking Delphi to it...anything will help... This means me a LOT because I am working on huge project for FS VA Community...non-comercial program software Unfortunatelly, I crated external application before I tested Delphi's ability to use Inter-Process registration....Please help people... Thanks a lot... Marko escape@cg.yu module.zip
  9. Hi... I need some help... offset 0580 is for True heading, but I need to get magnetic heading...how to resolve this problem ?
  10. Hello... I need help... 1. How to determinate in area of wich airfield am I....or when I am landed, how to determinate on wich airfield? 2. How to determinate touchdown rate (ft/mn) just like in FsPassenger or something like that? THANKS in advance... Marko
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.