Author Topic: HippoEDIT 2.00  (Read 1103 times)

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #15 on: October 30, 2017, 01:49:45 PM »
YESSSSSSSSSSSSSSS!

Thanks a bunch for the update on the hex plugin!
I'm going to try it out.

Edit:
Unfortunately, the setup doesn't work. I had v2.00.37 installed, and tried to update it with v2.00.44 and get the following error (when installing):
[attach=1]

Also, when I try to start HippoEdit I get the same error.
« Last Edit: October 30, 2017, 02:00:36 PM by S.H.Bouwhuis »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #16 on: October 30, 2017, 05:27:10 PM »
Hi Sander,

Thanks for the info. Probably I have packed in the wrong concrt140.dll.
Will try to update asap.

BR, Alex.

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #17 on: October 30, 2017, 06:44:58 PM »
Just out of curiosity, what do you use from the concurrency library? I use the C++ native concurrency related routines like concurrency::parallel_for and such. But, you don't need to redistribute the concrt library for that. And, for normal POSIX style full fledged threading you only need the default crt library. For that too you don't need to release the runtime libraries.

In fact, I think you are supposed to include the libraries using the Microsoft redistributable runtime library installer.

Finally, do you create versions of HippoEdit for native Linux or through Wine? My software fails when I use C++11 concurrency when running in Wine and I have different code paths for Linux Wine versions.
« Last Edit: October 30, 2017, 06:50:03 PM by S.H.Bouwhuis »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #18 on: November 01, 2017, 01:43:22 AM »
Hi Sander,

I am using it mostly for same: parallel_for, parallel_invoke, task_groups etc. I do not know, which exact function requires concrt140.dll, but it is required :) You see, that already by the message you got in the installer or starting HE (I call registration of hippoedit com server in the installer).
Probably it is linked automatically if you include <ppl.h>...

Normally, I check the executable/libraries with Dependency Walker - it will show what you need. And it shows concrt140.dll at least for Editlib.dll.

Yes, you are right, the proper way to install VS dependency would be to use the corresponding redist. But then I need to include in in HippoEDIT installer, and this is additional 15 MBs. So, I prefer selectively include required dlls, to spare size of HippoEDIT installer. But of course, it may lead to problems...

I do not have any HippoEDIT version for Linux. It is Windows only. If I would start to develop HippoEDIT now - it would be multiplatform, QT based. But change it to cross-platform would be too expensive.

BR, Alex.
P.S: I have updated the installer, can you please recheck?


Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #19 on: November 02, 2017, 09:29:56 AM »
I also use Dependency Walker to check dependencies.

I see you are using MFC. I never use any framework I cannot trust to be supported and at least reasonably portable to other OSes. No MFC, no .NET, no ADO/DAO, no ActiveX, ...
I implement all my own functions so that if there is a bug, I'm 100% sure I can fix it. From datetime to crypto to database connectivity to ownerdrawn controls.
Maybe a dependency of MFC forces use of the concrt library.

Unfortunately, both the installer and HippoEdit itself still gives me the error.
I'm on Windows 10 x64 English.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #20 on: November 08, 2017, 04:41:52 PM »
Hi Sander,

can you please retry? I have updated the installer. It was a little bit mixed up by dlls ;)

If you do a lot of UI, it is rather difficult to keep everything in your hands, for UI-less utilities it much more easier. Anyway, I have selected the framework to use already long time ago and changing that now is a huge effort :(.

I doubt that MFC uses it - it is an old piece of "code" that MS does not update/develop anymore. I do not think it uses PPL, more probably it is some my usages...

BR, Alex.

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #21 on: November 09, 2017, 10:36:13 AM »
Sir, we have a winner!

I'm probably an idiot, but how do you switch between hex and ascii? (I forgot)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #22 on: November 09, 2017, 11:48:13 AM »
If Hex Editor plugin is loaded, you shall see "View in Hex Editor" in View menu, when you are in Text Editor and corresponding "View in Text Editor" when you are in Hex Editor.
Default shortcut Ctrl + Shift + F12 (Hmm..., have I updated the default scheme?..)

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #23 on: November 09, 2017, 12:04:24 PM »
Yes, I see it now.

But, the shortcut key doesn't work.
I added it manually, but got a warning that my settings would be lost after an update?!? Is that a mistake? It would be crazy if every update would overwrite my own settings.

When I restarted HippoEdit, the shortcut key didn't work anymore. Also, when I go to the View menu, I see that 'View in hex editor Ctrl+Shift+F12' is greyed out (unselectable).
« Last Edit: November 09, 2017, 12:08:26 PM by S.H.Bouwhuis »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #24 on: November 09, 2017, 02:09:07 PM »
Ok, so probably initially, the shortcut was also in but was not working, like after restart.
Which kind of the document you had open - the switching to Hex mode is possible only for saved files. Hex Plugin is not a view of the same document, it is a different kind of an editor, opening the file directly (so, unsaved in text editor changes will not be visible in Hex).

About shortcuts. Yes, if you modify a default keyboard mapping scheme, your changes will be overwritten on an update, because it is an only way for me to deliver shortcuts for new commands. If you do not accept it, you can copy the default scheme in your own one, which will not be overwritten, but in this way, you will also not get updates on the scheme :/

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #25 on: November 09, 2017, 05:21:14 PM »
Switching modes
Aha, ok. That was it. I created a new file to write text, but it was in hex mode. Now I couldn't switch to ascii mode so couldn't write normal text. Perhaps it's best to ask what type of file you want to start with when creating a new document as this was very confusing. Alternatively, simply store/backup somewhere on disk. This is how Notepad++ does it. It stores unsaved documents in a temporary file. This way, when you stop and restart the editor your documents are back even if you've never saved them.

Shortcuts
Why don't you simply only keep a list of shortcuts a user set? Any key not set is automatically the default shortcut you built-in. That's how I also normally do shortcut keys. Overrides are preserved regardless of newly added default shortcuts.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #26 on: November 09, 2017, 07:02:55 PM »
Switching modes
Probably you have opened a file in Text Editor, then switched to Hex Editor, and from there called New Document (Ctrl+N), which is by default always inherits type and syntax of the current document. And got independent Hex Document from where you can not switch back to Text Editor, while a file is in memory only. Yes, I agree that it is rather tricky. But probably the better way will be to just reload the content of one document in another document on switching (with IStream), without actual saving of the file on disk (ok, one can do it with temp file also, but that is a little bit dirty). I will think about this scenario.

- As I mentioned, on Ctrl+N HEs creates a new file in the format of the current file. If one needs a specific file type, he can use menu File->New or assign a shortcut to the corresponding command. If you do not like such behavior - there is an XML flag to disable it: http://wiki.hippoedit.com/options/xml/new-file-as-current
- HippoEDIT also saves unsaved files between sessions without a prompt in temp files, but only "untitled" files. The same does NP++. Saving of modified real file into a disk without explicit "save" from a user is not a good idea.

Shortcuts
Yes, I agree. But not only set but also deleted one shall be persisted. And such for each scheme. Now it is not nice, but easy way ;). I will think about it.

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #27 on: November 10, 2017, 07:36:03 AM »
Switching modes
Ok, I changed the <CreateNewFileAsCurrent> setting to false. This is good enough for me.

Shortcuts
I hope this can be implemented, because I heavily use changed shortcuts because I set all editors to the same settings I have in Visual Studio. That way, my muscle memory can be used work with any text editor very efficiently.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2224
  • Karma: +37/-3
    • HippoEDIT
Re: HippoEDIT 2.00
« Reply #28 on: May 05, 2018, 04:12:11 PM »
HippoEDIT 2.00.58 is published.

Added Total Commander Lister plugin, for previewing source code file in Total Commander directly, using an F3 key for standalone Lister window or Ctrl+Q for quick view in one of the pane windows.
« Last Edit: May 07, 2018, 02:30:57 AM by alex »

Offline S.H.Bouwhuis

  • Registered User
  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
Re: HippoEDIT 2.00
« Reply #29 on: May 05, 2018, 04:26:28 PM »
Thanks for your continued efforts.

Edit:
Where did the hex plugin go? I ticked it to on in the installer, but 'View in hex editor' is not in the View menu anymore.
Also, when I go to 'check for updates', the hex plugin is gone.

Should I be worried?
« Last Edit: May 05, 2018, 04:43:51 PM by S.H.Bouwhuis »