I would like some feedback from vb programers on a project im doing. Im basically doing my own basic language trying to keep close to vb.
Any encouragement or discouragement would be great.
www.martinm.net/vsBasic.html
Printable View
I would like some feedback from vb programers on a project im doing. Im basically doing my own basic language trying to keep close to vb.
Any encouragement or discouragement would be great.
www.martinm.net/vsBasic.html
seems to me that there's something wrong with creating a BASIC language using VB to build it, but I could be wrong...
dglienna,
You kinda lost me there.
You mean that you think I used VB to create the IDE,convert program and ect?
It was all done in C++.
Check what the exe's are linked with. No VB runtime dll is there.
Or do you mean that it is too close to VB?
Thats the whole idea. A free basic language similiar to VB but without runtime dll and option to make true dll.
But thanks for the feedback.
:)
Oh yea, just a note: I dont think I mentioned it anywhere, but currently basic source must be error free as only a limit number of checks for errors are done during the conversion. Also the compile button calls the batch file that calls the mingw gcc compiler to compile to exe.
Seems neat. I take it that your program converts your language into C++ and then compiles with MinGW? Or do you have a slightly different method? What kind of code does it get converted to for the GUI (Win32 API? ALT? wxWidgets? qt? MFC?)?
kasracer,
Correct. the basic source is converted to c++ and then compiled with MingW, so user must have MingW to compile to Exe.
The GUI is done by my own class wrappers that have methods similiar to vb.
I didnt use ones already made because I wanted to handle window messages similiar to how vb does. Like the cmdCancel_Click().
Thanks for feedback, much appereciated.
packetvb
What are your class wrappers wrapped around though? I'm just curious which GUI API you choose to use.
Uh well,
Since they were created to be similiar to vb, the Classes are Forms,TextBoxes,Labels,CommandButtons,ComboBox,ListBox,Frame, ListView.
Each of these include thier own message handling and window creation.
So API used in them are CreateWindowEx, and SetWindowLong (to subclass) GetWindowLong.
Not suire if thats what you meant
packetvb
An API is a set of functions that allows you to interface with something. I'm guessing that is the Win32 API that you're using.Quote:
Originally posted by packetVB
Not suire if thats what you meant
kasracer,
Ok I understand your question now. Sorry, guess im a bit slow. :)
Yes I used the Win32 API.
packetvb
It does seem close to VB, but if you include things that VB doesn't then it would be a good thing. Especially if it picks up speed when it is compiled. I will gladly test it with my app. It has flexgrids, listboxes, option buttons, checkboxes, and line-drawing. It also implements text files.
PM when you have a working program.
dglienna,
Since it is translated to c++ it should be faster in speed.Quote:
It does seem close to VB, but if you include things that VB doesn't then it would be a good thing. Especially if it picks up speed when it is compiled. I will gladly test it with my app. It has flexgrids, listboxes, option buttons, checkboxes, and line-drawing. It also implements text files.
It will be some time before its near vb, as there is only one developer.
:(
packetvb
Updated version:
Here some of the new things.
Basic Dir function added.
Implemented Form and Source code open and save.
Implemented Object combobox to allow selecting objects on form.
Changed multiline for textboxes to show the scrollbar. Any text added to a multiline textbox will automatically scroll to the last line.
Added FontName(String),FontSize(Integer),FontUnderLine(Bool),FontItalic(Bool),FontBold(Bool) methods.
Conversion implemented for files: Open, Close, Eof, Line Input, Print -- (Text files only).
Conversion implemented for while/wend statements.
My last post here on this subject. Anyone interested can watch for updates on my web site.