Search results

  1. M

    LUA scripts and PBR material problems

    Hi, apologize for my weak english. Below GinaTextureScript.lua lua scripts works nicely !lua --Get precip state. local raining = 0x00000004 local precipState = varget("A:AMBIENT PRECIP STATE", "Mask") precipState = math.floor(precipState) --Define textures. textureDry=...
  2. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks, i have set HERE the complete managed C++/SimConnect solution (Visual Studio C++ 2017 Community), it entraps both SIMCONNECT_OPEN and SIMCONNECT_QUIT into WinForms private methods, even simple guess is a good starting point to create nice UI that can crosstalk with the sim via...
  3. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    [SOLVED] Thanks to Benjamin Erd i have now corrected my code and it works, so i have nice managed SimConnect C++ code. 2 fix to do to code: Sim_Connect = gcnew SimConnect(safe_cast<String^>("tf104gconfig"),this->Handle, WM_USER_SIMCONNECT, nullptr, 0); and this->simConnect->OnRecvOpen += gcnew...
  4. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks a lot, i have routed these tracks: 1. using this: https://blogs.msdn.microsoft.com/abhina ... ogramming/ tried to mix managed and unmanaged code using compiler directive as suggested also by you, it compiles but does not link with unmanaged LM SimConnect.Debug.lib or SimConnect.lib 2. as...
  5. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks a lot, I have tried it before, it compiles and works nicely but is linked with a FSW simconnect.lib and Dovetail Simconnect.dll on the executable folder. Does not link with p3d simconnect.lib, however i'm not sure to have such extension, will give a try.
  6. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks Doug, that's could be a feasible route, all in all there are few functions to export, remain to check if it could be loaded into a managed code. /Mario btw don't know if you received my answer about arrestor, i had some failure on my SMTP, however thanks a lot, will test soon, also...
  7. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks for reply, that's what i'm looking for to decide to either give up or succeed; 30 example of non-managed C++ code are unuseful. /Mario
  8. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    thanks for reply, I'm working on ver 141 (2017) and x64, with /clr option I'm trying using c# as a rough guide, discovered, as i expected, SimConnect::RecvOpenEventHandler() and others accepts function pointers as a pure C call, that's why i have embedded it in extern "C" { }; /Mario
  9. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    You are intentionally rude and prove you do not know what you're talking about and you did not understand anything from the beginning, there is not a single C ++ example of SimConnect managed code, that would not compile using C++/CLI and .NET framework, the only examples of managed code are on...
  10. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks for reply, My goal is to make an external GUI application in C++ (an aircraft configurator) able to talk with the sim via SimConnect. Actually the only way i could have is an inelegant file cross talk. Yes actually i use client_event.cs as a start point, no language preferences, my route...
  11. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    I have done several non-managed SimConnect clients so far, what you say does not match with what i know, ie: // Connect to the SimConnect's Server HRESULT hr = SimConnect_Open(&hSimConnect, "TF104G", NULL, 0, 0, 0); .... // Give to the SimConnect's Server our SimConnect's callback pointer...
  12. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks for reply, not yet, since i interpreted those steps as registering callbacks to events. Since connection with the sim seems to be established correctly (the try/catch work as expected with the sim running or not) guessed that at least a WM_USER_SIMCONNECT should be received in window...
  13. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    Thanks for answer, what i did following Client_Event.cs example from SDK 4.3 before looking for help, however at least some msg like SIMCONNECT_RECV_ID_OPEN or SIMCONNECT_RECV_ID_QUIT should be received also without registering, or i missing something ? Do you have some working code example ...
  14. M

    P3D v4 Desperately trying to make SimConnect with C ++ work in managed code

    (Using Visual Studio 2017) I've had some success using the CLR and the Forms even though in the P3D SDK there is no mention of C ++ but only for C#. I could connect with the SimConnect server: private: System::Void MainForm_Load(System::Object^ sender, System::EventArgs^ e) { try...
  15. M

    P3D v4 GaugeSound P3D V4

    Hi Doug, may i have same penalty like razorsvan? tia /Mario
  16. M

    Developing FSW C++ add-ons with no SDK

    If things are so Marcin, the right path is that of LM and FSW is going to be a flop like MS Fligth Sim. /Mario
  17. M

    Puzzled by this code, someone could help me ?

    Thanks Naruto, no FSUIPC not used, no other module try to entrap FLAP event as far i know. More over also all trim events have same problem in a weird way, ie: ELEV_TRIM_UP and ELEV_TRIM_DN work, rudders event won't. i have sorted out with a trick: did a xml gauge keytrap.xml that intercept flap...
  18. M

    Puzzled by this code, someone could help me ?

    Here my code: switch (pData->dwID) { case SIMCONNECT_RECV_ID_OPEN: { SimConnect_MapClientEventToSimEvent(hSimConnect, EVENT_FLAP_DOWN, "FLAPS_INCR"); SimConnect_AddClientEventToNotificationGroup(hSimConnect, EVENT_KEY_GROUP, EVENT_FLAP_DOWN); SimConnect_MapClientEventToSimEvent(hSimConnect...
  19. M

    Doug Dawson oustanding sound dll

    Thanks for the prompt answer Doug /Mario
  20. M

    Doug Dawson oustanding sound dll

    I was trying to figure out if Doug is going to rebuild at 64 bit his sound dll, 64 bit simulators are coming and we will understand if we can use his nice piece of software Thank you in advance /Mario
Top