Codewright Editor Issues

Maybe I'm stuck in my ways like a dinosaur, but I've always liked my Codewr ight editor. My latest PC would not take my previous installation of it th ough and I had to start fresh. But that means a lot of stuff that worked b efore doesn't work now. This is ver 7.5, that latest.

I don't know exactly how Windows makes the connection when you click on a f ile type to open it in the editor. Back in the day there were specific opt ions to enter on the command line which was shown in a dialog for setting t he action on a file extension. That dialog vanished a few generations of W indows ago. I have Codewright linked to the file extension, but when I dou ble click nothing seems to happen. If I drag the file to the Codewright wi ndow it shows the arrow with the plus sign which seems to indicate it will open, but again nothing happens. The only way to open a file seems to be t hrough the Open File menu option.

Anyone know how to set this so Codewright will work with Windows Explorer a nd open files like other apps?

Once I get this working I need to work no language settings... one step at a time.

--
  Rick C. 

  - Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C
Loading thread data ...

Right click on file and select Open With, set checkbox to always use with the app you select.

Reply to
Brett

n
a
c

er

Thanks, but that has already been done. The Codewright icon shows up on th e files. Double click the file and Codewright comes to the foreground (sor t of) but the file doesn't open. Likewise drag and drop shows an indicator this should work, but the file never opens.

--
  Rick C. 

  + Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

ion

on a

fic

g

gn

.

orer

th

the files. Double click the file and Codewright comes to the foreground (s ort of) but the file doesn't open. Likewise drag and drop shows an indicat or this should work, but the file never opens.

File associations are contained in the registry.

You don't say which windows you are using but there are many options still available even up to win10:

'assoc' command Control Panel->Default Programs->Associate a file type(...) Settings->Apps->Default Apps->Choose default applications by file type

The last is Win 10 specific but the others also work in Win 10.

HTH

--
Cheers, 
Chris.
Reply to
Chris

Did you perhaps set Codewright to run with Administrator privileges?

Windows 8 and 10 won't allow drag and drop into an application that has Admin privilege unless you disable user account controls. Note that simply turning off UAC notifications in Settings is NOT sufficient - you need to edit the registry to disable UAC entirely.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System EnableLUA:DWORD = 0

But realize that if you do this, all users the machine (not just your account) will lose UAC warnings about programs that are trying to change system settings.

George

Reply to
George Neuner

Thanks for the info. I hadn't even thought about looking at that.

It doesn't look like admin privilege is enabled. Properties, Shortcut, Advanced, Run as Admin is not checked. That toolbar icon is how I run the program.

I turned off UAC under Win7 and it healed many issues. Win 8 and 10 seem to play much better with various programs. I'm running Win10.

--
  Rick C. 

  -- Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

I don't to sound rude, and this group is not exactly overwhelmed by activity - but surely you'd get an answer from 30 seconds of googling?

Reply to
David Brown

If you didn't want to sound rude, why did you? Actually it isn't so much r ude as just not well informed. The info I'm looking for isn't the cut and dried matter that Bret and Chris offered.

If you think you can find the solution using Google, please show me. I tri ed and found 80 million hits about anything remotely related, none of the f irst few pages of hits were even close.

I remember a teacher saying you can look up a word in the dictionary to get the correct spelling. I asked how do you use the dictionary if you don't know how to spell the word. Google can have the same problem where you nee d to know how to get focused answers to find what you need and this is one of those times when I can't figure out how to get Google to focus.

If this is all you have to offer, why did you even reply???

--
  Rick C. 

  -+ Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

I don't believe I did sound rude - but I feared you might interpret it that way. Rude would have been posting a "let me google that for you" link with the search "how to change file association in windows 10".

Yes, I know it is not entirely a simple matter. Yes, I know MS in their unending quest to irritate people change these things from version to version, taking perfectly good working methods and screwing with them until no one knows what's going on.

That is /precisely/ why googling is a better idea than asking in a newsgroup (especially one that specialises in a very different niche - though it does have the advantage of having smart and helpful denizens). A web search will get you to tutorials, web pages, etc., a let you get right to the requirements at hand - no need for several posts back and forth to figure out what version of Windows you are using or any other details. It would get you the answers you want faster. It would get you more details if you want them - or just a simple picture to follow if a quick answer is all you want. Surely that is a good thing?

You have been around Usenet for longer than most people have used computers. Don't tell me you have never read a "how to ask smart questions" FAQ. You know that if you have already tried things - including web searches - you write a summary with your question. For example, you should have started with saying that you got CodeWright to start from clicking the file, but it wasn't opening the file itself. And you could have given information about what /does/ work - can you open files properly from within the application?

Well, what did you try?

I had this vague idea that I could help you get better help, but it seems I was mistaken. From a number of threads with you, I get the impression that you sometimes prefer to rant than to solve problems - especially if the solution involves accepting the reality that the world has moved on in the last 20 years. (I am not asking you to /like/ the fact that things that were perfectly simple decades ago are now overly complicated, when the old solutions would still do the job - I am asking you to accept it.)

If you had been looking for an answer rather than a rant or a fight, you'd have replied to my post with "I already googled for ..., but the hits did not help - have you any suggestions?".

So, please take a moment and figure out what you want to do.

Do you want to vent your frustrations about modern Windows not letting you use your old program as you like? Or that MS won't let you use old Windows that you were quite happy with? If so, I think you'll find very strong agreement from most people (including me). Start a rant thread, and people can share their war stories and feel a little better.

Do you want to figure out how to use your old editor on your new system? Then google a lot, and tell people what you have tried, what works, and what doesn't. And be prepared to accept that maybe it won't ever work - that maybe you'll have to open files from within the editor instead of drag-and-drop. Be prepared that it might take a lot of work, trial and error, "compatibility modes", reading manuals, etc.

Do you want to edit files to write code and do your work? Maybe it's time to spend an hour getting familiar with NotePad++ (or whatever) and dropping CodeWright. I'm sure you'll find some pros along with all the cons.

Reply to
David Brown

Try it with a file like

c:\test.txt

Maybe there is a problem with long file names or spaces in path/file name.

Reply to
Herbert Kleebauer

Does that mean CodeWright has an installer and you ran it successfully?

I don't remember but OK. It seems to me there are maybe two or three systems for the association stuff in Windows 10. For example, I use Emacs and it has some associations that work but the command line tool assoc isn't aware of some of those at all and for some files things work differently from what assoc and ftype report. But maybe using these older tools (assoc and ftype) could work for CodeWright?

Then there's the tool called FileTypesMan which I've used with some success. It seems to give a more complete view of the situation.

Reply to
Anssi Saari

I was going to attempt installing Codewright on my Windows 10 machine - but alas - it must have been thrown out in the last major clear up (making room for pallet full of HP power supplies).

Mostly I use the editors in the Keil IDE (for C) and Aldec HDL (for VHDL). Any other time I use Notepad (the dead simple MS thing) or Notepad++ (the free and open source thing).

I was a bit miffed when Codewright went unsupported but it was a very long time ago - it might be time to bite the bullet and move on :-(

MK

Reply to
Michael Kellett

Sorry. If it's not admin privileges then I'm out of ideas.

George

Reply to
George Neuner

but the file doesn't open.

.

Thanks for the suggestion. I try to keep spaced out of both directory name s and filenames. But I tried your suggestion and same result. Codewright pops to the foreground, but the file is not opened. It would seem the asso ciation is made, but Codewright is not getting what it needs to open the fi le.

I recall from my early Windows programming days that the association is don e by invoking the Codewright app (like a command line) with parameters tell ing it to open the file. There is/was a difference between basic "opening" the app/file and editing the file. The editing command had to have partic ular details to open the file. It's all very fuzzy as I don't think I've h ad to do this since W2K.

Thanks for the suggestion though.

--
  Rick C. 

  +- Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

Am 21.01.2020 um 21:15 schrieb Rick C:

[Note: This all happens in the registry, where "keys" in a hierarchy of locations hold values, one of those being "(Standard)" value: ]

You don't really register a filename extension directly to an app (at least no any more). You register a file type to an extension:

location: \HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.c value: "cfile"

then you register "shell" commands to that file type:

location: \HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cfile\shell\open\command value: C:\WATCOM\binnt\viw.exe %1

That's the command line to handle "open"ing of a file of this type. %1 is replaced by the file to be opened.

For the vast majority of Windows users and the programs they use, the only commands that ever get handlers registered and used are "open" and "print", which have existed since all the way back in Windows 3.1.

I've encountered only one tool that actually uses the "edit" command instead: MKS Source Integrity, nowadays owned by PTC --- and what a nuisance it was to hunt down that bit of information!

Reply to
Hans-Bernhard Bröker

Yes.

Thanks. Digging around with assoc and ftype helped me figure out what was going on. So I think I found the issue.

While the association was pointing to the Codewright installed under C:\Pro gram Files (x86) that was not the location of the Codewright I was running and pinned to my taskbar. On changing that the associations seem to work n ow and not only bring Codewright to the foreground, opens the file.

Now I need to set up the various visual issues. Seems the font selection d oesn't actually result in that font being used, but something else is being substituted as if there are only a small number of real fonts and it selec ts something "close". Many of them result in very wide characters... or mo re like wide space between characters. Is it possible there is something p reventing Codewright from accessing the many fonts it shows in the fonts li st and translates everything to a small number of fonts (possibly 1)?

formatting link

formatting link

Here's another thing I'll just mention to anyone wishing to continue the di scussion. Out of the box it has some goofiness with not displaying files i n the File Open dialog box. Running in compatibility mode fixes that, but now every time I run it I have to click the dialog box giving permissions f or it to access files. Why not before but only after setting compatibility mode?

--
  Rick C. 

  ++ Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

dewright editor. My latest PC would not take my previous installation of i t though and I had to start fresh. But that means a lot of stuff that work ed before doesn't work now. This is ver 7.5, that latest.

a file type to open it in the editor. Back in the day there were specific options to enter on the command line which was shown in a dialog for setti ng the action on a file extension. That dialog vanished a few generations of Windows ago. I have Codewright linked to the file extension, but when I double click nothing seems to happen. If I drag the file to the Codewrigh t window it shows the arrow with the plus sign which seems to indicate it w ill open, but again nothing happens. The only way to open a file seems to be through the Open File menu option.

er and open files like other apps?

at a time.

I'm really sorry you tossed it out. Anytime you toss out software it would be nice to offer to give it to someone. I gave away my really old Xilinx software for the old 4000 series parts a few years back. Someone was worki ng with them and wanted the software. I don't know if I ever found the key for it though. lol

I've looked at using other stuff, but at this point Codewright is in my DNA and it's just painful to give it up. I'm always missing the features. Th ere's also a thing or two I don't care for. The way it doesn't treat end o f lines as continuing to the next line for cursor movement. Use the right arrow and it just keeps moving right, no wrapping at the end of the line. There's a few more that the authors think are features, but mostly I think of them when they get in the way.

BTW, a friend of mine who thinks old computers are something to be relished like an old wine had to toss his Win95/98 machine and insisted I find some one who "could use it". Rather than argue with him about it I took it and it's sitting in my basement. Anyone want it or should I toss it? It's got some software with it, but I can't tell you exactly what at the moment. A re Win95 machines getting rare yet?

--
  Rick C. 

  --- Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

That reminded me of the issue of getting a UAC prompt asking if the app sho uld have permission to modify the computer. I don't get that if I run it s imply, but if I run in compatibility mode or as admin I get the UAC dialog. I've never figured out a way to get rid of that. Not a big deal. Once o pened I tend to keep CW up continuously.

--
  Rick C. 

  --+ Get 1,000 miles of free Supercharging 
 Click to see the full signature
Reply to
Rick C

If it's any consolation, I use CW 4.0E from 1996 on Win 10 Home 64 bit. It works just fine. I've carried it forward on numerous computers all these years. My method has always been to manually copy the entire CW directory tree verbatim (never use the installer). It's always been "C:\CW32". Doing it that way relieves me of the burden of editing the ini files to resolve the new paths.

My help files are broken for good. Former copies running under WinXP and beyond used to screw up key auto-repeat timing frequently. The problem still happens on my Win 10 but its now rare, almost as if CW is getting better as Windows ages! I used to experience CW failing to start on Win7. That never happens on Win10.

JJS

Reply to
John Speth

Hmm.

I don't know why you'd get that from a compatibility mode start but not from a "normal" start. CW hooks into Explorer (to monitor files for changes) and it writes configuration in the registry unless you changed that setting. So if you have UAC notifications turned on, it ought to warn UNLESS you start CW in admin mode.

Did you perhaps upgrade a Win7 machine? Can't say I've seen this problem particularly, but I've seen a number of odd things with Win7 upgrades that just don't happen if Win10 is installed fresh.

George

Reply to
George Neuner

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.