|
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
|
|
|
|
|
I download source code of DLL and OCX. When I compile OCX using the DLL I have compiled on my machine, I got "Performing Registration Error" during compilation. If I use original DLL and LIB file to compile OCX, it is OK. When I try to register compiled OCX from command line, I got LoadLibrary("BrainChild.ocx") failed - Invalid access to memory location error. Anybody know what is happening?
I am using Visual Studio 2005 to compile these two project.
Thanks,
Ant.
|
|
|
|
|
After playing with the registry for about an hour. I've noticed that not all Windows Version allow read access from the "HKEY_LOCAL_MACHINE" key. Especially some Windows XP HOME OEM versons. You have to go into safe mode (or administrator mode) to read it. Users with laptops like DELL, Compaq or HP will have a problems setting up BrainChild Control Panel with the registry.
So, BrainChild Control Panel will only work if you are the administrator.
|
|
|
|
|
I've made a small change to the BCC source. In the main.cpp, I just changed HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER key. So, that it will work for multiple users and the administrator.
Open the registry to HKEY_LOCAL_MACHINE\Software\BCDLL\CurrentVersion. Add the string key "Settings". Then change that value to the path of the configuration files (*.bcp, from dll source).
Then, do the same for HKEY_CURRENT_USER\Software\BCDLL\CurrentVersion. Add the string key "Settings". Then change that value to the path of the configuration files (*.bcp, from dll source).
HKEY_LOCAL_MACHINE\Software\BCDLL\CurrentVersion and HKEY_CURRENT_USER\Software\BCDLL\CurrentVersion keys must equal and the path must be correct.
This should help a lot of people.
I love this control, thanks so much!
James harris
|
|
|
|
|
I've pointed it down to the exact code.
HRSRC hsrc = FindResource(hModule, lpszResource, _T("BRAINCHILD"));
For some reason hsrc returns NULL. It works in the WTL demo. When I insert it into my project the syntax coloring does not work. I've added the resource tree "BRAINCHILD" with the IDR_CPLUSPLUS resource file (c++.bcp) just like the demo.
The WTL Demo produces this warning, but it runs and the syntax coloing works.
BrainChildEdit warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
I am trying to figure why it's not coloring the text. Thanks for helping in Advance.
James Harris
|
|
|
|
|
Did you add the 'c++.bcp' file to your project as a custom resource (simply import the file as a resource)? If it you did not the FindResource() will not find it.
To get syntax coloring for brainchild you can also setup as explained in the article. That way the files are loaded by the control automatically. You only need to include the bcp files as resources in the executable when you want to embed the parser files into your executable.
Bye,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
I've checked my resource file.
IDR_CPLUSPLUS BRAINCHILD "res\\c++.bcp"
It does appear in there. Also, I've check the res folder and the file exist!
Also, when I run BrainChild and try to open the CPL. I get this error, "Problems reading the brainchild configuration files. Therefore it is not possible to edit the settings." I've inserted the key into the registry like you said in the help files.
The LoadFile function does not like unicode. For example, I've had to add code for string conversion;
BOOL LoadFile(BOOL bForce, LPCTSTR lpszFileName)
{
ATLASSERT(::IsWindow(m_hWnd));
int n = 0;
while(lpszFileName[n] != 0){
buffer[n] = lpszFileName[n];
n++;
}
buffer[n] = 0;
return (::SendMessage(m_hWnd, BCM_LOADFILE, bForce, (LPARAM)buffer) == BCMR_OK);
}
Is there anything that's I'm doing wrong? I'm using visual studios 7.1.
James Harris
|
|
|
|
|
FIXED!!! I've fixed the syntax coloring problem but not the brainchild configuration tool.
In VS 7.1 Properties. Select General under the Configuration Properties folder. Then, select "Use Mult-Btye Character Set" from the Character Set option.
You may want to add this to your Help File
|
|
|
|
|
download the help file read how to set reg.
this is a great programer, program, help file and window libria.
Thank you Jan van den Baard
besure to have the .bcf files or read the message above this one.
you still need to download the DLL source code. It contains necessary setup files which you will need to get things running.
Download, setup and compile the ClassLib C++ library. Move it to your VC++ include directory
Compile the brainchild DLL.
Compile the brainchild CPL.
Compile and register the brainchild OCX (optional).
Compile the BCDemo demonstration program. claslib folder classes need to be in vc++ include folder
Create a directory on your hard disk where you can put the brainchild configuration files. the parser files with the .bcp ex.
Copy the directory Defaults, which you can find in the DLL source zip, including all its contents to the created directory.
Open RegEdit.
Add the key HKEY_LOCAL_MACHINE\Software\BCDLL\CurrentVersion. (Be careful using the registry editor!)
In the key, add the string value Settings and set its value to the directory you created for the brainchild configuration files. the Defaults folder with the .bcp files
To get the demonstration program up and running, copy the branchild.dll, brainchild.ocx and bcc.cpl files to the directory containing the BCDemo executable and you should be able to run the demonstration program.
you might also want to download the HTMLHelp docs. It will explain, how to use brainchild in your own programs and how to use the configuration tool. a must very detailed and profesional help
|
|
|
|
|
when i input chinese, japanese etc, the window don't accept
|
|
|
|
|
That is correct. So far there is only very limited unicode support and no support for multibyte characters at all. It is on my todo list but it is not a trivial thing to implement.
Bye,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
when i use Brainchild.ocx in powerbuilder, the system give me a message: "Brainchild.dll could not be loaded! no Brainchild control!"
why?
the demo app can run normal.
|
|
|
|
|
I'm not familiar with PowerBuilder but it sounds to me that the OCX and the dll are not installed in the same directory. When you copy the brainchild.dll into the directory where the OCX is located and registered things should be OK.
Enjoy,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
thandk you, Jan
but
i am sure the brainchild.dll and the brainchild.ocx are located in the same directory.
|
|
|
|
|
i compile all files with vc6
when the program is running, all is ok!
it's very good
|
|
|
|
|
Can you let me know exactly what to do to recompile with VC6 as I am having the same problem accessing the ocx from Powerbuilder.
Many thanks
Paul
|
|
|
|
|
The WTL wrapper code compiles without any errors, but when i execute the app i get an error saying " Unknown command on line 12 of language file C#.bcp"
any suggestions
cheers
|
|
|
|
|
vatic wrote: The WTL wrapper code compiles without any errors, but when i execute the app i get an error saying " Unknown command on line 12 of language file C#.bcp"
Are you using the latest version of brainchild.dll & bcc.cpl? Using newer language files with older libraries may cause this message.
Bye,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|
|
Hi Jan,
Whenever I enter a single quote in the brainchild control, the computer beeps. Could this be linked to the brainchild control? If yes, how can I switch it off?
Thanks
|
|
|
|
|
Shakti Goel wrote: Whenever I enter a single quote in the brainchild control, the computer beeps. Could this be linked to the brainchild control? If yes, how can I switch it off?
It is. When you turn off "Automatic bracket matching" for the language in question the beep will disappear.
Bye,
Jan
We are the all singing, all dancing crap of the world. - Tyler Durden
|
|
|
|