[M3devel] cm3.cfg variables for IDE

Jay jayk123 at hotmail.com
Mon Jan 28 22:33:57 CET 2008


Make it easier on Windows... ? Right?
Windows is the oddball anyway, right? Ok, that's not a great excuse.
 
Do people tend to have firefox or firefox-bin on $PATH on Unix, if they have it on their machines?
Or they have "shortcuts" on their "start menus"?
   I know this totally Windows termonilogy but I have used KDE and GNOME and they seem pretty isomorphic in this area.
   Ok, I guess they are the K menu the Foot menu. I don't know what they call "shortcuts".
 
Is anyone, um, interested in adopting spaces in their file paths on Unix and work out the kinks?
I for one put my compiler, linker, headers, libs without spaces, AND the environment variable based approach I put in makes spaces work anyway.
Less luck with IE though.
 
The code is likely forked in terms of where it runs stuff. CreateProcess vs. exec. Not that Windows doesn't have stuff that looks more like exec, or esp. system(), but still some chance that it is forked. So going down the Windows CreateProcess path, it could optionally use ShellExecute, and that will more leaf-only paths like "wordpad.exe" and "iexplore.exe" "just work".
 
Here is another idea. There are environment variables for %programfiles% and %programfiles(x86)%.
How about letting environment variables be used here?
Well, heck, they are already are allowed, in Quake, with a leading dollar sign.
BROWSER  = $ProgramFiles & "\internet explorer\iexplore.exe" or somesuch.
Not sure you could reference x86 IE from a 64bit process, what with hose parens in the variable name.. darnit.
I've got to an AMD64 machine for home soon...
 
If these are "paths to files" and not "command lines", then spaces are unambiguous.
As well, CreateProcess is a little funky, but one of its parameters is a file path, not a command line and using that might help here, might.
 
 - Jay



> CC: rcoleburn at scires.com; m3devel at elegosoft.com> From: hosking at cs.purdue.edu> Subject: Re: [M3devel] cm3.cfg variables for IDE> Date: Mon, 28 Jan 2008 14:32:19 -0500> To: jayk123 at hotmail.com> > It is not so much old-fashioned as consistent across platforms (Unix, > Windows, etc.). Ideally, the same install procedure and environment > variables make sense on all platforms. Don't fork the install for > different platforms if at all possible.> > On Jan 28, 2008, at 1:40 PM, Jay wrote:> > > There are other ways to do this...rather than run iexplore, you can > > use ShellExecute and run a url or something, or find the clsid of > > mshtml.dll maybe. For wordpad, again ShellExecute wil tend to find > > it. Notice how if you say start.run and type wordpad, it finds it? > > Or "start wordpad" from the command line? "start" ~ ShellExecute, > > instead of CreateProcess. "Shell" meaning the GUI shell -- Windows > > Explorer.> >> > Wordpad and notepad stink as text editors. And notepad doesn't like > > Unix newlines. I assume that's why wordepad.> > Someting should be done, like, in the grand gui installer, where it > > lists some freeware/shareware editors and offers to download and > > install and set them as the editor for you. Stuf like TextEdit, > > TextPad, UltraEdit...I think all of those exist, though somewhat > > I'm guesing based on the obvious formula. :)> > As well if it locate msdev or devenv that would be super.> >> > As I was saying the other day, I believe msdev and devenv are > > easily findable via normal installs, except not on my machines. :) > > I need to go through the environment you sent.> >> > The way this stuff works in Modula-3 today is..unnecessarily old > > fashioned...I'm all for simplicity, but having a bajillion > > environment variables does not seem to be the thing. Or a bajillion > > line user editor text files. Or short file names anywhere! Just do > > a backup/restore and see if those names survive. They might. They > > might not. Oh well, true, nobody ever backs anything up. Still, > > xcopy your software from one machine to another and see if the > > paths still work -- definitely it's hard to do that for free, but > > you can keep the cost down.> >> > - Jay> >> >> > Date: Mon, 28 Jan 2008 13:15:42 -0500From: rcoleburn at scires.comTo: > > jayk123 at hotmail.comCC: m3devel at elegosoft.comSubject: cm3.cfg > > variables for IDE> >> > Jay:> >> > I thought I should let you know what I understand to be the > > variables that the IDE is looking to find in cm3.cfg. That way, as > > you work through any changes to the various cm3.cfg, you can make > > sure these requirements are met> 
_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
http://www.msnmobilefix.com/Default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080128/9ce7d901/attachment-0002.html>


More information about the M3devel mailing list