BillLuvsU Posted April 12, 2007 Share Posted April 12, 2007 Hey, I'm working on embedding scintilla into a GUI, instead of using a text box. I did some research and found this website:http://scintilla.sourceforge.net/Steps.htmlUnfortuanatly I'm not very good at C++ and I don't have a C++ compiler so I can't test this. So basically my question is, will this work? Also does anyone know of a C++ compiler that dosn't require an installation? Like just a stand-alone exe? Thanks.#include "stdafx.h" #include <iostream> #ifdef _MANAGED #pragma managed(push, off) #endif //This is where we define the externaly accessible function extern "C" __declspec(dllexport)int embed(hwnd Parent) { hmod = LoadLibrary("SciLexer.DLL"); if (hmod==NULL) { return -1 } hwndScintilla = CreateWindowEx(0, "Scintilla","", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_CLIPCHILDREN, 10,10,500,400,Parent,(HMENU)GuiID, hInstance,NULL); return 1 } BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } #ifdef _MANAGED #pragma managed(pop) #endif [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted April 13, 2007 Share Posted April 13, 2007 (edited) no need to stress it, you can check this out for ideas.. http://www.autoitscript.com/forum/index.ph...l=autoit+editor (not what your looking for.. ? )about the compiler.. ming32, gnucc, and cygyn seem to be good. you can download devcpp, and extract the installer with unextract or look for devcpp portable.. also, you can look at the actual source for sc1, or notepad++.. i believe they use it.. Edited April 13, 2007 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
BillLuvsU Posted April 13, 2007 Author Share Posted April 13, 2007 Ok, thanks for the help =], especially about the compilers. [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now