Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / IDe in AutoIt

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 22nd Sep 2007 21:53
A friend of mine developed a nice text editor in auto it! We thought why not making it a IDE for darkbasic ...! Problem is how to call the compiler witch is an .exe so that it could compile what we have in the text editor! Or at least a saved file

zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 22nd Sep 2007 23:54
Sorry about 2X Posting but i got an ideea.. sort off! Can we call the dbpro compiler.exe like


Do you think that will work?

hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 23rd Sep 2007 05:22
It's very possible to do. Look at this thread for an explanation of what to do. You have to create a .dbpro project file and send that to the compiler. You don't use any command line switches to call it.

However, the tricky part is to figure out when the compiler is done doing its thing so that your IDE can launch the .exe file. You do this via the ShellExecuteEx() and the GetExitCodeProcess() Windows API functions. You can also get the current line number the compiler is compiling as well as any error messages it sends by use of memory mapping (MapViewOfFile, or something like that.)

Trust me though, writing a functional IDE isn't as easy as you might think. I've wasted 1.5 years on mine.

CodeSurge
Version 1.0 finally released! Code your DBP projects in style. (And save the kittens!)
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 23rd Sep 2007 10:07
Wow! Thankx ! No way are thinking of making something that complicated! Is just that well theres a small romanian DBPro comunity starting to form, and we wanted to make a romanian IDE for them, and to help starters to understand what is an ide, how to use commands etc!

Login to post a reply

Server time is: 2024-11-19 07:35:05
Your offset time is: 2024-11-19 07:35:05