Jump to content

Search the Community

Showing results for tags 'c#'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Product Support Forums
    • FSUIPC Support Pete Dowson Modules
    • FeelThere Support Forums
    • Fabio Merlo Products Support Forum
    • Nikola Jovanovic Support Forum
    • Intrasystems Support Forum


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 7 results

  1. I've been trying to use both the SimConnect.dll and the WAPID.dll in the same project in Visual Studio C# but I always get an error message and the code won't compile. (System.BadImageFormatException HRESULT: 0x8007000B). Though I've been successful in running both dll's individually, but not both in the same project. I've tried to change the target platform from x64 to x86 to AnyCPU but either the SimConnect or the WAPID gives back an error. I'm no professional programmer, nor do I know alot about programming, so I'd be thankful if someone could help me figure out how to fix this issue!!
  2. Hello: My name´s John McKen, I live in Asheville, NC, USA. I´ve been a C# & C++ programmer for serveral years, and used FSUIPC succesfully in a cuple proyects too. However now I´m facing something that is driving me crazy, I am creating a programm that detects where you´re flying and the timezone and then it should introduce the hour(time) into FSX/P3D via FSUIPC. But I could not find any variable to do that. Kind Regards! And congratulations to Pete for this awesome "programm".
  3. Hi there, i use C# to develope a simple Software for my FS2004. I works very well, i can read and write anything i want, but i have a Problem with playing Sounds. This is what i do: I read one Byte (FSUIPC_Read, then FSUIPC_Get) at 0x4200 and get the Information: "FREE". Second i set (FSUIPC_Write) the filename 737LP at 0x4208 (through an Array of 248 Bytes). The file 737LP exists in the Sound Directory of my FS2004 Installation. The Array contains the following values: 55, 51, 55, 76, 80, 46, 87, 65, 86, and the rest of the Array contains only 0 values. Third i set (FSUIPC_Write) the command PLAY_LOOP as a Byte with value 2 at 0x4200. Fourth i use the command FSUIPC_Process (it returns 0 as result, so all should be ok) But the sound does not play. After reading 0x4200 i get "PLAY_LOOP" ever and ever again. I think i miss something, but i don't know what. Perhaps someone can help me, perhaps has a simple example for me that i can use to check if it works. Thanks in advance, Bodo
  4. Hello , I'm trying to make a weather injector for fsx , where the user inputs for , for example, the surface wind and the program injects that into the simulator. I am very unsure about how this is done, Looking at the FSUIPC for programmers pdf I found the offsets list , after successfully getting the airspeed from the simulator from an offset i went to Changing the surface temperature , as this is one of the options available in my program. I found the offset 0EC0. int token = -1; int dwResult = -1; fsuipc.FSUIPC_Write(0x0EC0, 10, ref token, ref dwResult); This is an extract from my inject function. Using the included example project I was able to produce this. My questions are , what is int token used for ? All other variables in the example project where commented apart from token however I couldn't figure out what token was used for. In addition to this regarding the weather aspect of the offset list , how do I tell whether I am getting or setting a value. Is this surface temperature being set globally or for the nearest weather station? Is there an easier way to search for the offsets I need ? I also noticed it would be 10*256 as the actual temp in the simulator , is this correct? Many thanks, Arun
  5. Hello, I’ve developed a black box with C#. Until today, it has worked with no problem using FSUIPC in FS9 & FSX. My application uses the FSUIPCClient.dll reference version Today, one of my users has updated FSUIPC4 to 4.934 (FSX). Now it’s impossible stablish a connection between the application and FSX. FSUIPC throws an exception (when trying to connect) with error #7: “Error #7: FSUIPC_ERR_VERSION. Incorrect version of FSUIPC” I’ve searched a new version of FSUIPCClient according to FSUIPC 4.934 but with no result. I hope you can help me, Regards, Daniel
  6. .NET DLL for communicating with FSUIPC Attached is Version 2.4 of my FSUIPC Client DLL for .NET Benefits: Object-Oriented class interface better suited to .NET than the other procedural .NET SDKs. Data from FSUIPC is returned directly to your .NET variables. Supported types are: Byte, Int16, Int32, Int64, UInt16, UInt32, UInt64, Double, Single String (Unicode/ASCII conversion and termination handled for you) BitArray (Allows you to easily manage the bit field type offsets) Array of Bytes (Allows you to read and write raw blocks of data if you need that level of control.) Writes are handled just by assigning a new value to the local .NET data variable. The write to FSUIPC will be handled automatically during the next Process(). Errors are handled by .NET exceptions, not by checking return values. The DLL can be use with any .NET language. Documentation and example projects for C# and Visual Basic.NET. The library has full internal documentation that will appear on the IntelliSense popup menus in Visual Studio. Just as fast as the procedural-style .NET SDKs. Thread safe. Can be used in multi-threaded applications, with each thread communicating with FSUIPC, without corrupting the data. (Only one thread can talk to FSUIPC at a time – other threads will block until the connection is free). The zip file contains the DLL, documentation and an example project in C# and Visual Basic.NET (Visual Studio 2010 format). Documentation for the 2.4 features is only in the form of example code which is attached below. Microsoft have free versions of Visual Studio 2012 compilers for VB, C#, C++ here: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop#product-express-desktop Paul FSUIPCDotNetClient2.4.zip
  7. Hey, guys! I'm a beginner in applications with FSUIPC, and I'm pretty sure this is a stupid question but, how do I set the payload of an aircraft? The plane in question is an Embraer 195, with 3 sectores: crew, passengers and cargo. I can read and set the fuel levels, but got nowhere close with the payload. Here's what I'm doing so far, fuelwise: double targetFuel = 2134; double maxFuel = 6495.225; int formula = (int)((targetFuel * 100 / maxFuel) * (128 * 65536) / 100); result = fsuipc.FSUIPC_Write(0x0B94, formula, ref token, ref dwResult); result = fsuipc.FSUIPC_Write(0x0B7C, formula, ref token, ref dwResult); result = fsuipc.FSUIPC_Process(ref dwResult); This works as a charm, but I have no idea how to work on offset 1400. Any help at all would be greatly appreciated. Thank you!
  • 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.