Jump to content

Embedding scite.


 Share

Recommended Posts

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.html

Unfortuanatly 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

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.. ? :shocked: )

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 by mrRevoked
Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...