Home | Gallery | Forum | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com Forum
OS2 World.Com Online Discussion Forum.
Index / OS/2 - General / Programming
author message
how to run visual basic program on OS/2 Warp 4?
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
simon
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 2
since: 19 May, 2005
1. how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
Boss asked me to write a program on OS/2. I only have windows in my working enviornment (OS/2 box is production machine, can't install any development kit.) It said some VB program can be executed on OS/2, is that right? Does anyone know which version of VB can be used and how to config?

thanks

Date: 19 May, 2005 on 11:10
ErOs2
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://eros2.by.ru/index_en.shtml
posts: 3
since: 14 May, 2003
2. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message

Boss asked me to write a program on OS/2.

Good boss!


I only have windows in my working enviornment (OS/2 box is production machine, can't install any development kit.) It said some VB program can be executed on OS/2, is that right? Does anyone know which version of VB can be used and how to config?

OS/2 can run windoze apps written for windows 3.1x (win16) in win-os/2 session. Also, some win32 apps can be executed using project Odin.

However, better solution will be create native OS/2 application. Or create crossplatform application using Java, if PC is have enough power to run java apps fast. Java is VB of future.

Date: 19 May, 2005 on 12:15
ddelcol
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://www.os2world.com/rdbms
posts: 24
since: 17 Oct, 2002
3. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
last updated at 19 May, 2005 13:02 (2 times)

simon (19 May, 2005 11:10):
Boss asked me to write a program on OS/2. I only have windows in my working enviornment (OS/2 box is production machine, can't install any development kit.) It said some VB program can be executed on OS/2, is that right? Does anyone know which version of VB can be used and how to config?

thanks


Couple of paths come to mind VB wise; at one time a few VB competitors existed,

IBM VisualAge Basic
CA Realizer for Windows and OS/2 - Cross compatible
RealBasic.com - Multiplatform pack DOS/OS2/Windows exe's

all are defunct but if you send out a posting; someone may have a copy sitting on the shelf that might help. if steadfast on VB Basci programing.

The only active choices are to learn C/C++ ie GNU version ( www.innotek.com and free www.netlabs.org or the Openwatcom.org C/C++ compiler which is fully supported Windows/OS2/DOS exe's with graphical IDE tools.

Pascal if that is an option. http://www.freepascal.org/

Recommend this one if permissable
Java , Java 2 support on OS/2 and eComstation ( goldencode.com, and innotek.com for latest Runtimes) - use the JDK. might even be some code convertors out there? not sure but I would expect it at some point. here you go.... conver VB to Java http://www.diamondedge.com/products/Convert-VB-to-Java.html

plus you want a cool Java Development tool. Simplicity for Java Professional! http://www.datarepresentations.com/
Lives up to its name.

Otherwise, if permissble timing architecture wise I would move to total server side operation and create a web interface for clients. Easy for me to say I appreciate the difficulty.

This is an area that needs to be addressed in the OS/2/eComstation community with the vast amount of VB code out there plus the VB community in mutiny on .NET. You may end up migrating to C/C# coding at some point down the road after reading the news threads, seems the VB MVP's are ticked off with MS Visual VB.NET tools and plans.

Rewrite everyone!.

Date: 19 May, 2005 on 12:57
cyberspittle
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 252
since: 09 Dec, 2002
4. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
As already mentioned, Visual Basic on OS/2 is dated. The last version of Visual Basic that I ran on OS/2 was Microsoft's Visual Basic 4.0. This version came out at the same time as Windows 95, and included 32 and 16-bit versions for Microsoft Windows. I had ran the 16-bit version in an OS/2 "winos2" full screen session.

As mentioned earlier, you should go to a native OS/2 language that is current. I prefer EMX (GNU C/C++), however everyone has their own preference. If you want to go with Basic, open a dos session and OS/2 includes the Basic compiler and sample applications in the C:/OS2/MDOS directory. These will be command line programs. Have fun.

Date: 19 May, 2005 on 18:23
warpcafe
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 350
since: 26 Nov, 2002
5. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
Hi,

first of all: I actually have a copy of IBM VisualAge Basic 1.0 in my shelf. But to be honest: Forget it - it's a crap. Outdated. Unstable.
So your boss wants to have an OS/2 program? Good. As I seem to understand from your question, Visual Basic is the language you prefer because you get along well with it?
If not - I would also suggest you to go for a different language. Even rexx is very powerful and can be "extended" to be used for real graphical user interface EXE programs.
But okay - what was the question? "VB on OS/2":

Try to find either a MS VB 3.0 or 4.0 version.
While both of them are able to produce 16Bit windows executables that run fine in OS/2, the 4.0 version also can do 32bit executables. For the development platform, I can't remeber whether VB 4.o might require a 32Bit windows (95 and up that is) so better go for the 3.0 version.

Oh wait! Do you already HAVE the program but are unable to RUN it in OS/2 or are you still in the process of having to write the program?

Greetings
Thomas

Date: 19 May, 2005 on 18:41
ddelcol
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this memberhttp://www.os2world.com/rdbms
posts: 24
since: 17 Oct, 2002
6. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message

simon (19 May, 2005 11:10):
Boss asked me to write a program on OS/2. I only have windows in my working enviornment (OS/2 box is production machine, can't install any development kit.) It said some VB program can be executed on OS/2, is that right? Does anyone know which version of VB can be used and how to config?

thanks


You have lots of opinons to choose and paths evaluate. Good Luck.

Cheers

Date: 20 May, 2005 on 02:00
cyberspittle
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 252
since: 09 Dec, 2002
7. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
With VB 4.0, you could install the 16-bit and/or the 32-bit version on Windows 95. However, I have not run VB 4.0 on other versions of Windows besides 95, which was what we had in the computer lab when I was working on a degree some time ago. I actually p1ssed off the instructor (A Microsoft activist), as they had to also install the 16-bit version along side the 32-bit version. This actually worked out, as a number of less vocal students were reluctant to mention they were still using MS-DOS and Windows 3.1. We then could do lab work at home and not wait for a free computer to do the course work.
Date: 20 May, 2005 on 03:23
simon
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 2
since: 19 May, 2005
8. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
thanks all of you for your kindly replies. Now, I understand how to develop applications on OS/2. When boss asked me to write program to run on OS/2 box, I wrote a simple window-based VB program and compiled it with VB6. It just can not work;p. I need to complete more sophisticated mission ( send keyboard event to the running application on OS/2). It seems C/C++ will be a good choice. I will evaluate these tools further. Could you recommend one which can do graphic user interface programming?
thanks again.
Date: 20 May, 2005 on 04:32
cyberspittle
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 252
since: 09 Dec, 2002
9. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
last updated at 20 May, 2005 18:11 (1 times)
The Open Watcom compiler is what you are probably looking for when it comes to C/C++. A quick search on Google or other search engine should be able to locate it (Hint: www.openwatcom.org).

As you probbably figured out with your VB6 experiment, you need a native binary to run on an operating system. If you are stuck with VB as your language of choice (learning the OS/2 API is a lot like Win32 programming WS_PAINT, etc.), moving to C/C++ can be a bit harsh. So, if you just can't break away from Microsoft Visual Basic (I'm going draw fire here) is to use Microsoft Visual Basic .NET, and create ASP.NET web-based programs. ASP.NET is better than standard ASP, as some ASP programs *required* the use of Microsoft's Internet Explorer as the web browser. ASP.NET programs allow the use of any standard web browser, which doesn't restrict you to one operating system.

Learning C programs and creating Presentation Manager programs is not to difficult (if an old COBOL programmer like me can do it, that is proof enough ). From there you can move on to the Workplace Shell (WPS) a superset of the Presentation Manager that literally blows the socks off any desktop created to date (most users have only the scratched the surface of an object-oriented desktop - including me). I know some people will advocate going straight to C++, but if you haven't learned object-oriented programming the learning curve is sometimes steep. Also, there is usually an abundance of surplus OS/2 C programming books in used book stores (some have not even been opened) compared to C++ WPS books.

Best wishes, as I've probably worn out this thread.

Date: 20 May, 2005 on 18:04
Radek
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 121
since: 17 Jul, 2003
10. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
C/C++ is the best solution most likely. You will have a *free* highly efficient compiler (Watcom was always one of the best compilers available) so that you will be able create very efficient programs. The current version 1.3 is C99 compliant. Download from

http://www.openwatcom.org

You will also need the IBM toolkit. The open sourced Watcom does not contain everything neccessary for the programming.

The problem will be the "graphic user interface" If you mean an IDE then you will be satisfied, Watcom contains a good IDE. But if you mean some graphical support for developing an application then, well, you won't be satisfied at all. The programs are written in an plain text editor and you will be doomed to the level "case WM_CHAR :" and so on.

If your app is a dialog (perhaps a complicated one but a dialog) then you will be able to proceed quickly. A five line main plus a dialog procedure plus resources made by the resource editor, link, debug, and pass to the boss A more complicated program will need some practice and study.

Date: 20 May, 2005 on 18:42
RobertM
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 152
since: 16 Aug, 2004
11. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
Hve you thought about REXX? There are a couple cross platform REXX GUI tools if I remember correctly...

- Rob

Date: 22 May, 2005 on 21:12
BigWarpGuy
Premium member
in staff

View this member's profileSearch all posts from this memberSend an email to this memberhttp://home.comcast.net/~tomleem
posts: 2298
since: 12 Jan, 2001
12. REXXLA?
Reply to this topic with quote Modify your message
http://www.rexxla.org - Here is the site of the REXX Language Association. It has - IIRC - some opened source REXX languages (I think OOR is there).

---
BigWarpGuy
- - - - - - - - - - - - - - - - - -
OS/2 Warp-ed/eComStation-ed to the very end.
- - - - - - - - - - - - - - - - -
Date: 23 May, 2005 on 14:50
steve
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 5
since: 05 Jan, 2005
13. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
At the risk of digressing a bit, I just got something called C Set ++ of OS/2 ver 2.1 with KASE:Set from Kaseworks. Can you programming guys tell me if this is useful? I have been playing with OS/2 Warp 4 fo awhile but don't know much about programming. I apologize to the original poster but I thought the same people helping him might be able to help me. Thanks... Steve
Date: 25 May, 2005 on 03:30
RobertM
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 152
since: 16 Aug, 2004
14. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message

steve (25 May, 2005 03:30):
At the risk of digressing a bit, I just got something called C Set ++ of OS/2 ver 2.1 with KASE:Set from Kaseworks. Can you programming guys tell me if this is useful? I have been playing with OS/2 Warp 4 fo awhile but don't know much about programming. I apologize to the original poster but I thought the same people helping him might be able to help me. Thanks... Steve


Hi Steve,

C Set ++ is the predecessor to Visual C++ for OS/2. The next release IIRC was VAC++ v3.0, followed by 4.x which I think was the final OS/2 release. Either one of VAC++ offered some pretty decent portability to Windows (with the appropriate Windows version of VAC++), but I can't recall if C Set/2 had a corresponding version.

If you have C Set/2, almost anything you write in it could be recompiled with a later version of VAC++ with minor or no changes (some few of the API's changed, and a bunch were added, so going up to a newer version to compile with isnt too big a deal), but whichever you use, you obviously have to stay away from OS/2 only API's. The documentation for all of them is very very thorough - though other than some examples in the tutorial for small apps, not very helpful if you were learning C++ at the same time. If that's the case though, there are plenty of books written for VAC++ for Warp and for C++ in general that could get you started in learning C programming (some of the Warp books go in depth into Warp specific aspects of programming such as WPS integration, SOM, REXX, threads-the-way-Warp-handles-them, and so on; so a part of the content in the Warp VAC++ tutorials won't apply to something that will be cross platform. Usually pretty easy to figure out what parts as you're learning.

Also, if you do go that route, check Hobbes' reference section - tons of references online there - and don't forget to check the IBM Redbooks Site: ( http://www.redbooks.ibm.com/ ) do a search for OS/2 Warp (and you'll get more references than you know what to do with), and narrow it down to VAC++ or programming and see what you find... you may also be able to easier find VAC++ references for Windows (and Warp) on the Redbooks site by just searching for VisualAge C++.

Hope that helps...
- Rob

Date: 25 May, 2005 on 05:45
cyberspittle
Premium member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 252
since: 09 Dec, 2002
15. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
I have C Set ++ (new in box), that I have not used, as I consider it collectable. What many people don't realize, is how new C++ and object-oriented programming is. I kkknow it's now been over 10 years, but the early nineties had a lot of turmoil as computer science progressed.

C Set ++ was the compiler to use for OS/2 2.x (2.0-2.11), as Microsoft ditched OS/2 and it's 16-bit compiler for OS/2 1.x. Watcom was always the best (and only?) cross-compiler around.

I prefer EMX, but my skill has been rudimentary (C programming calling OS/2 API ... PM and GPI). With C++, you have a better tool for OS/2's object-oriented workplace shell (WPS). Fact is, the software you create with C Set ++ will work on all 32-bit versions of OS/2 (versions 2 through 4, and eCS), as OS/2 is very backwards compatible.

Date: 25 May, 2005 on 19:56
Tapio
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 3
since: 28 May, 2005
16. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
Try the following site:
http://www.robert-tolksdorf.de/vmlanguages.html
From the above page you can find the link to the "Applet Designer" site
http://www.tvobjects.com/products/Convert-VB-to-Java.html
You should be able to run the Visual Basic program directly as a
Java VM application, but I have not tried this my self!
Date: 28 May, 2005 on 20:42
Jesper
Normal member
in staff

View this member's profileSearch all posts from this memberSend an email to this member
posts: 30
since: 29 Jan, 2001
17. Re:how to run visual basic program on OS/2 Warp 4?
Reply to this topic with quote Modify your message
I don´t know the status regarding Python and tkinter (GUI) on os2 but that might be usable. There are windows/linux IDEs avaliable.
Date: 30 May, 2005 on 17:41
how to run visual basic program on OS/2 Warp 4?
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
All times are CET+1. < Prev. | P. 1 | Next >
Go to:
 

Powered by UltraBoard 2000 Standard Edition,
Copyright © UltraScripts.com, Inc. 1999-2000.
Home | Gallery | Forums | Services | Webmail | Archive | Links | Contact Us | About Us
© OS2 World.Com 2000-2004