FbEdit

User projects written in or related to FreeBASIC.
tinycla
Posts: 121
Joined: Jan 07, 2006 12:51

Postby tinycla » Aug 21, 2007 12:28

FBIDE didn't work on anything but windows, either. It COULD be compiled in Linux, but it was extremely error prone and didn't work well.

I've been able to compile FBIDE under Linux and used it for several months. All you needed was wxWidgets and all its contrbs compiled by yourself.

Windows API, which is used extensively in FBEdit and it's AddIns, is not easy to translate to something Linux can use. If you are up to the challenge, by all means, go ahead.

I know that it's impossible to modify FBEdit to make it work under Linux. It's a Windows project, made by a Win32 API specialist, so it will work only on Win32. So it's not the IDE that FB needs. I don't have the time to start a so big project, so for the moment I will stay with SciTE, that works well, although it lacks the advantages of a true IDE.
Sisophon2001
Posts: 1704
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Aug 21, 2007 12:57

tinycla wrote: <smip>
I know that it's impossible to modify FBEdit to make it work under Linux. It's a Windows project, made by a Win32 API specialist, so it will work only on Win32. <snip>


The needs of FB users are varied, and I suspect the majority are using windows. I consider it the best of the FB projects so far (not counting games). FBEdit does run under Linux using wine, which after all is just another opensource library.

I use kate instead of scite because I had problems with scite crashing when I made too many personalizations to the configuration files. I an interested to know how you find it.

Garvan
tinycla
Posts: 121
Joined: Jan 07, 2006 12:51

Postby tinycla » Aug 21, 2007 13:08

I agree with you, FBEdit is one of the best project written in FB. When working under Windows, I always use it for FB programs. But in my home computer I don't want Windows (I've used it since 1990 to 2003, when I switched to Linux, and I must say that I'll never come back to MS product), so I'd like an IDE that works on both OS. wine is not an option for me, I've never installed it (only once, for testing, but removed it very soon). Win32 programs are intrinsically unsecure and create many problems, so I don't see the reason for using them under Linux.

As I said, I generally use Scite. I find it very usefull, I only modify the necessary properties-files to make FB available and all works perfectly.
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Aug 24, 2007 8:30

Hi all

Two simpe FbEdit tutorials have been created.

Get them here:
http://fbedit.freebasic.net/viewtopic.php?f=2&t=199

KetilO
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Aug 30, 2007 14:54

Hi all

FbEdit 1.0.5.6 are now uploded.

Get it here:
http://www.fbedit.freebasic.net/viewtopic.php?f=2&t=207

The FbEdit help file in the 1.0.5.6 release now includes tutorial 1 to 4.

KetilO
AlexZ
Posts: 55
Joined: Aug 09, 2007 9:23

Postby AlexZ » Aug 30, 2007 20:04

Well done, FbEdit is great to work with.
vdecampo
Posts: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Aug 31, 2007 1:37

Whoop! I love FDEdit! Thanks for the quick fixes!

-Vince
Frank Dodd
Posts: 444
Joined: Mar 10, 2006 19:22

Postby Frank Dodd » Aug 31, 2007 13:16

I have recently changed from using FreeBasic IDE to FreeBASIC editor. I have been using it and liking it but I didn't have a clue that it was actually written in FreeBasic :D

Excellent work guys I am very impressed with this project.
antarman
Posts: 66
Joined: Jun 12, 2006 9:27
Location: Russia, Ural, Chelyabinsk
Contact:

Postby antarman » Aug 31, 2007 13:24

Cool! Now your FbEdit work in my ASP Linux with wine! KetilO, thank you very much! :-)
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Postby anonymous1337 » Sep 05, 2007 6:14

Could I use FBedit for code other than .bas/.bi files? It would be neat to use .cpp or .c with FBedit and just change my code editor options/build options. Or should I look at RadASM for that? I was hoping that I could make FBedit use a different theme for code editing depending on the file extension that's open.
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Sep 05, 2007 6:36

Hi anonymous1337

FbEdit is for FreeBASIC only. RadASM handles both C/C++ and FreeBASIC projects.

KetilO
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Sep 17, 2007 9:58

Hi all

Tutorial 5 is uploaded.
Get it here:
http://fbedit.freebasic.net/viewtopic.php?f=2&t=199

KetilO
Merick
Posts: 1038
Joined: May 28, 2007 1:52

Postby Merick » Sep 19, 2007 1:48

When compiling a program, how does fbedit catch the errors that fbc throws out? I'd like to do something similar for a program I'm working on.
KetilO
Posts: 416
Joined: Sep 22, 2005 21:48
Location: Norway
Contact:

Postby KetilO » Sep 19, 2007 9:40

Hi Merick

In short you just create a pipe and a process. Still rather complex.

Code: Select all

Function MakeProc(ByVal Param As Integer) As Integer
   Dim sat As SECURITY_ATTRIBUTES
   Dim startupinfo As STARTUPINFO
   Dim pinfo As PROCESS_INFORMATION
   Dim chrg As CHARRANGE
   Dim hrd As HANDLE
   Dim hwr As HANDLE
   Dim bytesRead As Integer
   Dim lret As Integer
   Dim buffer As ZString*4096
   Dim rd As ZString*32

   chrg.cpMin=-1
   chrg.cpMax=-1
   SendMessage(ah.hout,EM_EXSETSEL,0,Cast(LPARAM,@chrg))
   sat.nLength=SizeOf(SECURITY_ATTRIBUTES)
   sat.lpSecurityDescriptor=NULL
   sat.bInheritHandle=TRUE
   lret=CreatePipe(@hrd,@hwr,@sat,NULL)
   If lret=0 Then
      ' CreatePipe failed
      SetCursor(LoadCursor(0,IDC_ARROW))
      MessageBox(ah.hwnd,StrPtr("CreatePipeError"),@szAppName,MB_ICONERROR+MB_OK)
   Else
      startupinfo.cb=SizeOf(STARTUPINFO)
      GetStartupInfo(@startupinfo)
      startupinfo.hStdOutput=hwr
      startupinfo.hStdError=hwr
      startupinfo.dwFlags=STARTF_USESHOWWINDOW+STARTF_USESTDHANDLES
      startupinfo.wShowWindow=SW_HIDE
      ' Create process
      lret=CreateProcess(NULL,@buff,NULL,NULL,TRUE,NULL,NULL,NULL,@startupinfo,@pinfo)
      If lret=0 Then
         ' CreateProcess failed
         CloseHandle(hrd)
         CloseHandle(hwr)
         SetCursor(LoadCursor(0,IDC_ARROW))
         MessageBox(ah.hwnd,@buff,@szAppName,MB_ICONERROR+MB_OK)
      Else
         CloseHandle(hwr)
         SetFocus(ah.hout)
         SendMessage(ah.hout,EM_REPLACESEL,0,Cast(LPARAM,@buff))
         SendMessage(ah.hout,EM_REPLACESEL,0,Cast(LPARAM,@CR))
         lret=SendMessage(ah.hout,EM_GETLINECOUNT,0,0)-1
         SendMessage(ah.hout,REM_SETBOOKMARK,lret,8)
         SendMessage(ah.hout,REM_SETBMID,lret,0)
         SendMessage(ah.hout,REM_REPAINT,0,TRUE)
         buffer=""
         While TRUE
            lret=ReadFile(hrd,@rd,1,@bytesRead,NULL)
            If lret=0 Then
               Exit While
            ElseIf Asc(rd)=10 Then
               SendMessage(ah.hout,EM_REPLACESEL,0,Cast(LPARAM,@buffer))
               buffer=""
            Else
               buffer=buffer & rd
            EndIf
         Wend
         CloseHandle(pinfo.hProcess)
         CloseHandle(pinfo.hThread)
         CloseHandle(hrd)
         SendMessage(ah.hout,EM_REPLACESEL,0,Cast(LPARAM,@buffer))
         Return 0
      EndIf
   EndIf
   Return -1
   
End Function


KetilO
Merick
Posts: 1038
Joined: May 28, 2007 1:52

Postby Merick » Sep 19, 2007 10:12

Is that createpipe windows only? I'm going to want to make this work on both win and linux

Return to “Projects”

Who is online

Users browsing this forum: Google [Bot] and 6 guests