Anyone knows a good tutorial how to use Scintilla in Win32 API? The one in the Scintilla homepage doesn't create the box, (even downloaded the source, everything else is there, satus bar, menus etc. but the scintilla edit won't appear)
Anyone knows a good tutorial how to use Scintilla in Win32 API? The one in the Scintilla homepage doesn't create the box, (even downloaded the source, everything else is there, satus bar, menus etc. but the scintilla edit won't appear)
"The Internet treats censorship as damage and routes around it." - John Gilmore
It should just be a case of loading the scintilla library with LoadLibrary and using CreateWindowEx with 'Scintilla' as the window class name to create a widget.
Which example are you referring to?
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
I tried that. It also had the code. But it acts like the 'Scintilla' class is not even registered!
I am referring to this: http://www.scintilla.org/dmapp.zip
"The Internet treats censorship as damage and routes around it." - John Gilmore
It seems to work okay. Have you got the scintilla dll (SciLexer.dll) in the working directory?
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Yes it is. It successfully loads the library, but the control still acts like the "Scintilla" class isn't registered. Tried precompiled SciLexer.dll and my own compiled SciLexer.dll...
"The Internet treats censorship as damage and routes around it." - John Gilmore
You'll need to be more specific. Is window class registration failing? If so what error code is returned from GetLastError? Is it window creation that fails? If so what error code is returned by GetLastError? When you say it succesfully loads the library, how are you verifying this?
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
From what I've seen, only the scintilla edit control creation fails. I will see and look if it even fails. Should a window creation fail if you specify a classname that is not registered?
I checked if it fails by checking if it fails, that's kind of a stupid answer but the question wasn't very good either.Code:When you say it succesfully loads the library, how are you verifying this?
"The Internet treats censorship as damage and routes around it." - John Gilmore
Please disregard my previous comment regarding window registration - I was unsure which window you were referring to. Still, the GetLastError error code returned after window(scintilla widget) creation failure would be useful.
To be honest, though, the only way I can reproduce the behaviour I think you are describing from that sample code is if the scintilla library(scilexer.dll) is not loading.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Maxorator, maybe it's better to post your code.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
He already did.Originally Posted by maxorator
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.