1. RE: Nexus v2

Don,

Tried the attached program, it ran and said the key was removed.  I 
reran Nexus, changed my window colors and got the same result.  

I then traced the GetProfileBin routine and noticed that none of the 
registery values were being retrieved so the problem is not isloated to 
the colors.  

Did I mention I was using Win2000 Pro?  I wonder if this might be a 
security related issue.  I read through the docs on the routines to 
get/set reg values and noticed some discussion of security issues for 
the NT/2000/XP platform.  Didn't have a lot of time to investigate.  
What OS are you using?

Jonas
Don Phillips wrote:
> Hey Jonas, im stumped... my version (same as I sent to RDS) seems not 
> have this problem as far as I can tell.  I can modify any setting I 
> choose and it will not only propigate to all open editor windows, it is 
> also being correctly restored when re-run.
> 
> The only thing I can think of is that its possible (although I dont know 
> 
> how) that the registry key I am writing to on your system got corrupted.
> 
> Below is a small program which will find and remove the main key and all 
> 
> values in it from your computer.  Then you can run Nexus again and it 
> will reset everything to its default state and recreate the key as it 
> should be.

new topic     » topic index » view message » categorize

2. RE: Nexus v2

Don,

Really like the Nexus editor!  I'm actually considering trading my 
ConText for Nexus! However, there's one thing thats keeping me from 
doing so.

I changed the window color scheme (background, text color, keywords, 
etc.) to match what I had set up in ConText.  When I close the editor 
and opened another file the color scheme reverted back to the scheme it 
came with.  

I pressed Apply and it changed but it didn't appear to save the 
settings.  Am I doing something wrong or is this a coming feature?

Jonas
Don Phillips wrote:
> I sent off (to RDS) the code for version 2 (something) of Nexus.
> If the feature you wanted is not present, it will be in due time.  I 
> wanted to knock out the main issues first.  Now supports multiple 
> documents and warning windows for modified files that have not been 
> saved.  Numerious small other improvements also (see readme)...
> 
> Any problems please let me know so I can get them into the next release.
> 
> Don
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. RE: Nexus v2

Jonas  Temple wrote:
> Don,
> 
> Really like the Nexus editor!  I'm actually considering trading my 
> ConText for Nexus! However, there's one thing thats keeping me from 
> doing so.
> 
> I changed the window color scheme (background, text color, keywords, 
> etc.) to match what I had set up in ConText.  When I close the editor 
> and opened another file the color scheme reverted back to the scheme it 
> came with.  
> 
> I pressed Apply and it changed but it didn't appear to save the 
> settings.  Am I doing something wrong or is this a coming feature?

Actually this is a new feature!  (Just kidding).  Must be a bug.  It 
*was* working on version 1.  To add in multiple file support I had to 
recode and shuffle around about 75% of what I had already written.  I 
tried to be thorough in my testing (tried each button and window) but 
mainly concentrated on crash bugs.  Chances are good I placed the save 
code in the wrong procedure so its not being called at all... I will 
look at it tonight.  Thanks for the heads up...

Don

new topic     » goto parent     » topic index » view message » categorize

4. RE: Nexus v2

Hey Jonas, im stumped... my version (same as I sent to RDS) seems not 
have this problem as far as I can tell.  I can modify any setting I 
choose and it will not only propigate to all open editor windows, it is 
also being correctly restored when re-run.

The only thing I can think of is that its possible (although I dont know 
how) that the registry key I am writing to on your system got corrupted.

Below is a small program which will find and remove the main key and all 
values in it from your computer.  Then you can run Nexus again and it 
will reset everything to its default state and recreate the key as it 
should be.

I think I will keep this in all future releases as well just in case...

Let me know if this fixes (or not) the problem you are describing.

==========
include Win32Lib.ew

-- API imports
constant
nAdvApi32				= registerw32Library( "advapi32.dll" ),
nRegDeleteKey			= registerw32Procedure( nAdvApi32, "RegDeleteKeyA", 
{C_LONG,C_POINTER} ),
nRegOpenKeyEx			= registerw32Function( nAdvApi32, "RegOpenKeyExA", 
{C_LONG,C_POINTER,C_LONG,C_LONG,C_LONG}, C_LONG ),
nRegCloseKey			= registerw32Procedure( nAdvApi32, "RegCloseKey", 
{C_LONG} )

-- API constants
constant
nHKEY_CURRENT_USER		= #80000001,
nERROR_SUCCESS			= #00000000

-- Variable declarations
atom Void
atom String, phkResult
atom MainKey

-- Remove the key from the registery
String = allocate_string( "Software\\Nexus" )
phkResult = allocate( 4 )

MainKey = w32Func( nRegOpenKeyEx, 
{nHKEY_CURRENT_USER,String,0,#8,phkResult} )
if MainKey = nERROR_SUCCESS then
    w32Proc( nRegDeleteKey, {nHKEY_CURRENT_USER,String} )
    w32Proc( nRegCloseKey, {peek4u(phkResult)} )
    Void = message_box( "Nexus registry key successfully removed", 
"Nexus", MB_OK )
else
    Void = message_box( "Nexus registry key not found", "Nexus", MB_OK )
end if

free( phkResult )
free( String )
==========

Don

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu