Jump to content

dummzeuch

Members
  • Content Count

    2650
  • Joined

  • Last visited

  • Days Won

    92

Posts posted by dummzeuch


  1. 6 minutes ago, Ian Branch said:

    I still get this.

    ..\..\images\GXIcons.rc : error : Error Could not open input file D:\GExperts\Projects\DelphiXx120\My.RC [D:\GExperts\Projects\DelphiXx120\GExpertsRS120.dproj]
    Done Building Project "D:\GExperts\Projects\DelphiXx120\GExpertsRS120.dproj" (rebuild target(s)) -- FAILED.


    Build FAILED.

    "D:\GExperts\Projects\DelphiXx120\GExpertsRS120.dproj" (rebuild target) (1) ->
    (BrccCompile target) ->
      ..\..\images\GXIcons.rc : error : Error Could not open input file D:\GExperts\Projects\DelphiXx120\My.RC [D:\GExperts\Projects\DelphiXx120\GExpertsRS120.dproj]

        0 Warning(s)
        1 Error(s)

    Does your path to the GExperts sources maybe contain a space character?

    Anyway, I have now moved all rescource compiling to the pre build event (revision #4100).

    If the my.rc file was temporarily generated by the compiler this might solve the issue.


  2. 2 hours ago, PeterBelow said:

    Since several Windows versions an application running in background (= not having the input focus) cannot simply push itself into the foreground anymore because it thinks itself soo much more important than what the user may currently be working with. Instead it flashes its taskbar button to inform the user that it requires its attention.

    Hm, in that case the IDE should not be allowed to push itself into the foreground when it hits a breakpoint or catches an exception while debugging a program, when a different program (not the one being debugged) is the foreground window?


  3. 6 minutes ago, Anders Melander said:

    That "joke" is getting a bit old, to say the least. Maybe it's time to evolve and not do that for once.

    I'm not sure it is a joke. Even today there are so many people with superstitions around, that releasing a version containing the number 13 might actually cost them some customers. I even have the impression this part of the population is growing rather than shrinking.

    • Like 1

  4. 1 hour ago, Kas Ob. said:

    GTX SpeedStar F1, code name "Dawn", will make great name.

    As for the patches, numbers are something from different millennia, better something like AfterDawn or Breakfast, BroLaunch, "MorningCoffee The First of its Name"...

    Don't give them any ideas ...

    • Haha 1

  5. 29 minutes ago, FPiette said:

    I use the PCAN-BASIC API with several PCAN-USB devices and there is no problem at all. Sorry but I don't agree with you : this API is easy to use whatever number of interfaces you use.

    My use is controlling motors using digital positioning controllers in an industrial environment.

    I'm not saying it can't be done. Just more work than I was prepared to put into it. Some of the features seemed to be missing too. But that was several years ago (when PCAN Developer was still called CanAPI2 or something like this).

    • Thanks 1

  6. We are too using Peak Systems hardware, but not with the free PCAN-Basic API (I tried it, but it was too much hassle), but the paid for PCAN-Developer 4 API. We use several PCAN USB interfaces per PC and many devices.The Delphi examples aren't that great though and there was at least one serious bug in one of them (I don't remember the specifics but it took me a while to figure it out. I reported the problem, so maybe they have fixed it by now.)

    • Thanks 1

  7. 6 hours ago, Nigel Thomas said:

    Which is more efficient - or doesn't it matter, is it just a case of readabilty:

     

    
    var Foo: Foo;
    
    Foo := GetFoo;
    DoSomethingWithFoo(Foo);

    Or:

    
    DoSomethingWithFoo(GetFoo);

     

    Does that even compile? With a variable having the same name as its type?

     

    Regarding the actual question: That depends on the variable type. If it is something that can fit into a register, the variable might not even end up on the stack. But if it is something requiring additional code, e.g. reference counting, there might be a performance penalty on top of the space it needs on the stack and the code to read and write it.

     

    I for one care a lot more for readability than efficiency, with very few exceptions.

×