Forum

by Jocelyn Fiat (modified: 2017 May 24)

:: Welcome :: Forum

Eiffel related groups and forums:

Check the latest messages:

  • May 23
    Re: Re[2]: [eiffel-users] Re: Wrapping C API Help
    Thank you very much and this is exactly what I needed as it is all working now on my end, much appreciated. On Tue, May 23, 2017 at 4:09 AM, 'Alexander Kogtenkov' via Eiffel Users < eiffel...@googlegroups.com> wrote: > It looks like the API uses C++ rather than C, so you need to use external >
  • May 23
    Re[2]: [eiffel-users] Re: Wrapping C API Help
    It looks like the API uses C++ rather than C, so you need to use external C++, e.g.: steam_init: BOOLEAN -- Call SteamAPI_Init. external "C++ inline use " alias "return EIF_TEST(SteamAPI_Init ());" end steam_shutdown
  • May 23
    Re: [eiffel-users] Re: Wrapping C API Help
    Due to all the C compilation errors I've reduced the steam_api.h file to the following as these are the only two calls I need wrapped. Assuming the following is correct this is what I have: #ifndef STEAM_API_H #define STEAM_API_H #ifdef _WIN32 #pragma once #endif #define S_CALLTYPE
  • May 22
    Re: Re[2]: [eiffel-users] Re: Wrapping C API Help
    I just tried it with EiffelStudio 16.05 and received the same set of C compilation errors. To confirm I'm on Windows 10 64-bit and this latest test was with the Visual Studio 11 C compiler. Hubert On Monday, May 22, 2017 at 12:32:06 PM UTC-4, Alexander Kogtenkov wrote: > > I believe you do not
  • May 22
    Re: Re[2]: [eiffel-users] Re: Wrapping C API Help
    Thanks Finnian and Alexander. I tried the suggested C inline format and everything seems to be set up properly now except for the fact I get a number of C compilation errors. I'm using Eiffelstudio 6.5 for this project which I believe uses Visual Studio 9 for the C compiler. It stopped after
  • May 22
    Re: [eiffel-users] Strange VAPE error
    That was it. I feel bad. In an descendant of {REPOSITORIES_SHARED}, I exported {ANY} the `users_repository. So the error has a lot of sense now. Also you are right; in the complete error, there was a reference to the class that the feature was exported. I will know next time. Good day, Louis M
  • May 22
    Re: [eiffel-users] Strange VAPE error
    Most probably feature `users_repository` is exported in a descendant though `database_access` is not. Also, the complete error message could mention the descendant class name. Alexander Kogtenkov Louis M : Hi everyone, I have a little error here and I have to admit that I
  • May 22
    Re: [eiffel-users] Re: Wrapping C API Help
    Yes, I don't think you need any glue code. Just do something like in this example using "C inline use " frozen c_open_file_read (name: POINTER): NATURAL -- HANDLE WINAPI CreateFile( -- _In_ LPCTSTR lpFileName, -- _In_
  • May 22
    Re: [Eiffel-Loop] goodbye PROCEDURE [ANY, TUPLE]
    I found the syntax_updater -a did a good job of converting existing code. I did the ECF's manually because I use Pyxis format for ECF. The only problem I ran into was I didn't realise that with the old "1-8-0" configuration, the system option `full_class_checking' is false by default. When I
  • May 22
    Re: Strange VAPE error
    Are you sure that `is_database_set' is sufficiently exported, because descendants of REPOSITORIES_SHARED need to access this value.
  • May 22
    Strange VAPE error
    Hi everyone, I have a little error here and I have to admit that I feel super noob because my error seems elementary, almost trivial. But the problem is that I don't understand it. Here it is. I have this simple code: deferred class REPOSITORIES_SHARED feature {NONE} -- Implementation
  • May 22
    Re: [eiffel-users] Re: Wrapping C API Help
    Hi Finnian, Thanks for the link and I will take a look and for what I've done so far was to mimic an implementation from another wrapped library I've used in the past which I believe was based on the EWG tool. But as I was working through it I had second thoughts if I was even doing the right
  • May 22
    Re[2]: [eiffel-users] Re: Wrapping C API Help
    I believe you do not need a wrapper here and can make the calls directly. Something along the following lines should work: steam_init_external: BOOLEAN -- Call SteamAPI_Init. external "C inline use " alias "return EIF_TEST(SteamA
  • May 22
    [Eiffel-Loop] goodbye PROCEDURE [ANY, TUPLE]
    It is time to say goodbye to the old agent syntax. All of Eiffel-Loop has now been migrated to the ECF configuration "1-16-0". The changes are now in github and will become part of the next release 1.4.7 Since I made the change, Eiffel-Loop now contains 347 fewer words of code. Congrats to the
  • May 22
    Re: [eiffel-users] BSOD
    Thanks Chris. It does appear that the BSOD is a matter of having the right hardware+SW+settings rain dance. Larry Rix Moonshot Software Rocket science for everyone! Savannah, GA 770-295-9729 On Sat, May 20, 2017 at 9:55 PM, Chris Tillman wrote: > It looks like some other
  • May 22
    Re: Wrapping C API Help
    Hi Hubert, you haven't posted the code you have so far, or what compiler error you are getting. But as a general strategy, have you tried inline calls? See here for an example http://www.eiffel-loop.com/library/base/runtime/file/names/spec/windows/el_ms_windows_directories.html This method
  • May 22
    Wrapping C API Help
    I have an API for Steam where I need to make two calls to initialize the Steam application and one to shut it down. The API for these two calls looks like this: // SteamAPI_Init must be called before using any other API functions. If it fails, an // error message will be output to the debugger
  • May 22
    Re: Wrapping C API Help
    And see here for an example of an inline call which returns something http://www.eiffel-loop.com/library/base/runtime/file/operations/spec/windows/el_win_file_info_c_api.html > >
  • May 21
    Re: [eiffel-users] BSOD
    The first link you shared is interesting because EiffelStudio does have a lot of nested windows too. Strangely enough it works for many of us who upgraded to the Windows Creators Update so it is not clear what the cause of it. Thanks for looking this up! Manu ------------------------------
  • May 21
    Re: [eiffel-users] BSOD
    It looks like some other applications are facing similar issues. The second link seems to indicate the video driver could be the culprit. https://social.msdn.microsoft.com/Forums/windows/en-US/05a5081a-6582-4d24-9b7f-dda2d85b7c51/bsod-windows-10-version-1703-and-windows-forms-with-multiple-contain
  • May 20
    Re: [eiffel-users] Re: BSOD
    I reverted the update and no issues (so far). Stupid updates! Larry Rix Moonshot Software Rocket science for everyone! Savannah, GA 770-295-9729 On Sat, May 20, 2017 at 11:01 AM, Emmanuel Stapf wrote: > Hi Larry, > > You should look at the event viewer logs and check why your
  • May 20
    Re: [eiffel-users] Re: BSOD
    2017-05 Security Update for Adobe Flash Player for Windows 10 Version 1703 for x64-based Systems (KB4020821) HP Development Company, L.P. - Other hardware - HP Mobile Data Protection Sensor Feature update to Windows 10, version 1703 I am about to rollback these updates and see what I get.
  • May 20
    Re: [eiffel-users] Re: BSOD
    Hi Larry, You should look at the event viewer logs and check why your computer is doing a BSOD. The other options is to revert the update. Manu ------------------------------ From: eiffel...@googlegroups.com on behalf of Larry Rix Sent:
  • May 20
    Re: BSOD
    WOW—Now, even Task Switching gets the BSOD! I was starting to write about how I was able to use ES with minimal mouse movement with no issues (so far). The only mouse movement was to the class input textbox on the toolbar and the Groups tool trew view. I decided to Task Switch from Chrome back
  • May 20
    Re: [eiffel-users] Re: BSOD
    Larry, FWIW I am on latest Win10, but on ES 16, no problems. - thomas On 20/05/2017 15:38, Larry Rix wrote: CONFIRMED: Another BSOD (I have lost count)! 1. I opened ES 2. I clean compiled my ECF 3. I let ES just rest for a few seconds 4. I moved the mouse to the Outputs tab and hovered there for
  • See more ...