Add your own alternative version
Stats
617.5K views 25.1K downloads 260 bookmarked
Posted
17 Nov 2002
|
Comments and Discussions
|
|
Searching a syntax highlighting control, I stumbled upon BrainChild. The description fully fits my requirements. So, I downloaded all available zip files, and I created the required folder and corresponding registry key. But BCDemo.exe has problems:
1. a click to any main menu item takes 3 to 4 seconds for the menu to appear
2. a click to the "Window" menu freezes the program
3. a click to the "Options/Configuration menu line displays the following error message:
"Problems reading the BrainChild configuration files. Therefore it is not possible to edit the settings."
So, I had a look on the Q/A section, and I noticed that the key should be duplicated into the HKEY_CURRENT_USER section. But the behavior remains unchanged.
Here are the key values:
Key name: HKEY_LOCAL_MACHINE\SOFTWARE\BCDLL\CurrentVersion
Value 0
Name: Settings
Type: REG_SZ
Data: C:\Program Files (x86)\Borland\Delphi6\BrainChild\Defaults
and
Key name: HKEY_CURRENT_USER\Software\BCDLL\CurrentVersion
Value 0
Name: Defaults
Type: REG_SZ
Data: C:\Program Files (x86)\Borland\Delphi6\BrainChild\Defaults
I tried with a trailing backslash, too, but no success.
I started BCDemo.exe from the BrainChild_bin folder, and all required files (according to the installation notes) are in this folder.
Can you help me out, or is there an impossibility with W8.1 64 bits, even with compatibility mode ?
|
|
|
|
|
Hello Klaus,
Brainchild is a 32bit application and therefore it should be registered in the 32bit registry hive. Changing the key to:
Key name: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\BCDLL\CurrentVersion
Value 0
Name: Settings
Type: REG_SZ
Data: C:\Program Files (x86)\Borland\Delphi6\BrainChild\Defaults
should suffice. I'm doing this from memory (it has been a while since I last looked at this) but it should not be necessary to have the key duplicated in current user. But just in case it does make sure it ends up in the Wow6432Node.
regards,
Jan
|
|
|
|
|
Thank you for your hint, Jan. I did it, and it changed the behavior of the program, but not to the positive side.
The presence of the "settings" value produces a crash with the message "L'application n'a pas réussi à démarrer correctement (0xc0000142)." .
The presence of the folder path as string value doesn't change anything. As soon as the "settings" value is suppressed, the program starts up again, but falling back to the initial behavior.
Regards.
Klaus
|
|
|
|
|
can not compile the source code correctly.
with the following error:
can not find
#include
|
|
|
|
|
Hi,
my preferential IDE for C++ is CBuilder 6 and BDS 2005,
so I'd like to compile this phenomenal component in this compiler.
I'm trying to compile, but I have the impression that this source is intended for VC++...
how I make it?
regards
Zenek
|
|
|
|
|
How to enable accepting unicode such as Arabic characters? do you have an idea?
|
|
|
|
|
I am afraid that support for unicode in Brainchild is extremely basic. Input of unicode characters is not supported at all.
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
For a long time I've looked for a program that would allow me to print C code with syntax color highlighting. The best that I had found was emacs (my normal editor) which used Ghostscript and was able to print basically what I saw on the screen. It worked, but was horribly slow - a six page print could take around a half hour (it produced nearly 100 MB per page). This afternoon I decided to see if maybe something else was available and came across your program. Didn't take that long to set up using the instructions in the article, and I am now able to print at roughly the same speeds as I would from editors like notepad.
Thank you for taking the time to create this program and share it with the world.
Regards,
Dave Harper
|
|
|
|
|
DavidHarper wrote: Thank you for taking the time to create this program and share it with the world.
You are welcome. I'm glad you found it usefull. Never though it would be used for it's printing abilities
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi,
Can anyone tell me how to call the config setting in C# project?
Thanks!
|
|
|
|
|
I have never tried to call the CPL from managed myself but this article may be of help.
http://www.codeproject.com/KB/cs/appletengine.aspx
|
|
|
|
|
Hello Again Jan & all,
Can you please tell me if I can programmatically change the Delimeter Background Color for the selected line ONLY. I wish to do this so that the delimeters on the currently selected line do not standout but are the same color as the selected line's background color.
Regards
Mule
|
|
|
|
|
TeeJayMule101 wrote: Can you please tell me if I can programmatically change the Delimeter Background Color for the selected line ONLY. I wish to do this so that the delimeters on the currently selected line do not standout but are the same color as the selected line's background color.
There is no way you can influence the colors for the selected line only. To get this to work like you want it to you will need to make some changes to the Brainchild source code. Something like a flag that says not to use text background colors on the current line when the current line marker is shown...
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi,
I am using Windows XP SP3 and I have tried to install this control in Visual Studio 2008 but the control fails to self-register. I have tried to manually register it with REGSVR32 but it produces an error which is caught by JIT debugger.
Can you please tell me what could be causing this problem?
I am using the .ocx, .dll & .cpl file from the Brainchild compiled binaries file. I have recently reinstalled but I have not had any problems installing this control in XP or VS2008 in the past.
Thanks and regards
|
|
|
|
|
Hi,
I have just checked on my virtual machine running XP + SP3 with the binaries downloaded from CodeProject and the binaries from my latest build and in both cases the ocx registers OK.
I can also add it to my toolbox in VS 2005. I am not at my personal machine now which has VS 2008 installed so I have not tested it on VS 2008 but I can't see why that would be a problem.
Just to make sure:
1) Are your settings (.bcp) files OK?
2) Are your registration settings for Brainchild OK? (LOCAL_MACHINE\Software\BCDLL\CurrentVersion\Settings)
3) Are the .cpl, .dll & .ocx located in the same folder?
4) Do you have admin rights to perform the registration?
If so what is the error you get when trying to register the component?
Bye,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi,
First of all, I wanted to say thank you for this wonderful control. I am currently using it in a C# project I am working one, completely trouble free It's a very easy to use, attractive and comprehensive Editor control. It has taken many many months if not years off my project. So thank you again
I have really only one small concern. I would like very much to change the name of the configuration editor, from what it is ("Brainchild configuration editor.") to something a little more generic (ie "Editor Options" or "Configuration Options", something in title case and without the dot on the end).
Unfortunately I am new c# and very new to c++, otherwise I would compile a new version of the Configuration Applet. This being said, it there anyway you could build and post on this site another version of the BCC.cpl binary with the title changed to one of the above? Alternatively, could you step me through how to compile a new version myself. I have Visual C++ Express 2005.
Thanks & Kindest Regards
|
|
|
|
|
Hello TeeJayMule101,
It is probably a to big of a job to try and compile a new version of the cpl with VC express. On the other hand it is also difficult for me to provide you with a version with the requested changes.
If you really want only to change the title of the configurator you are probably best of to "patch" the BCC.cpl file. Simply open it in VC++ in the binary editor and look up the title text. As long as you do not make the title longer than it already is you should be able to change it there (Do not forget to terminate the new title with a 0 byte).
Bye,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi Jan,
Thank you very much for your reply. I have been able to change the title of the Editor to what I wanted, thanks to your help.
Kindest Regards
TeeJay 
|
|
|
|
|
Hello all,
Is there any way to wrap the text to fit the container area and avoid horizontal scroll bars?
|
|
|
|
|
this is a great setup, you or one of the best programmers I seen.
I'm a hobby programmer that ponds out code, cutting and pasting because I'm not a good typist and I studied Lots of programming languages, started on trs80 and Qbasis, stop until windows 95 began wit c and it seem strange the tried Liberty basic, then relies it great for quick utilities but to slow for large programs,
went back to tried c++ classes confuse me because the book I used use student,teacher and class room stuff to explain,got on the internet started Jscript love it, tried Pearl don't like it, began PHP like it, and sql for the internet.anyway I mite not write the best programs but I can read them fix them and can tell good ones from bad.
yours or great, comment good, good procedures,compact with all the bell and whistles.
I'd like to set your code up as a platform on my computer and add a project manager to it.
I sell programs on ebay and would get $5 for it.
I do not what to go behind your back since you spent a lot of time and effort. I will include your copyright in the install,help, and about box.
please give me a good copyright acknowledgement to use
|
|
|
|
|
You can use the code in any way you see fit. Commercial or otherwise. Complete or only parts of it. It is free for anyone to use.
-Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
When can we expect a new version, with the Defaults directory bug (slash Create Registry key) fixed?
Elsethread you mention a possible version problem between the DLL and the compiled binary. However, I just downloaded both minutes ago, entered the registry key manually, and got that dreaded error message.
... That said -- great job! My free tip of the day: If you ever feel like checking the world of Unicode, you should read James Brown's catch22[^] pages.
[JW]
|
|
|
|
|
I'm afraid it can be a long wait since I am no longer actively developing Brainchild. Even though I have developed the control beyond what you can download here I no longer have the time or energy necessary to develop the control any further.
Regards,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi, i'm new in OOP and i'm learning how to program on visual studio 2005.
When i tried to compile the demo i got:
Error 5 fatal error C1083: Cannot open include file: 'classes/all.h': No such file or directory c:\documents and settings\optimus primum\escritorio\brainchild\bcdemo\bcdemo\bcdemo.h 6
How can i solve this?
how can i use brainchild on a IDE that i want to develop in visual Studio .NET?
|
|
|
|
|
I created a file classes in the visual studios VC include directory
the project default includ dirrectory what ever that is and then extract the classli.zip to it.
I really extract it to my desttop in a new folder but when I got the message and seen
the <> was a clue it shound be a compilers include path and copied it to c:\program files\microsoft visual studio\vc7\include directory.
this will solve many of the compile problems
|
|
|
|
|
|
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
|