Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to convert old BASIC program to Visual Basic project?

0
Posted

How to convert old BASIC program to Visual Basic project?

0

Q: I have to convert a Qbasic program into a Visual Basic program. Now I got a problem with the Qbasic Poke command and I want to know if I can solve the problem with you product. A: Yes. MemAccess Library is an ideal replacement of old BASIC PEEK or POKE statement. Please change Peek function to maPeekB function and Poke statement to maPokeB sub procedure. Because Windows and MS-DOS have completely different memory management mechanism, some old Qbasic program can’t be directly converted to Visual Basic. Following are some known issues: • Don’t attempt to direct access the keyboard buffer. The result is unexpected if you use MemAccess Library to access the keyboard buffer. Visual Basic users should use SendKeys statement to simulate the Keystrokes. In other languages, use Windows API keybd_event function instead. Use Windows API SetKeyboardState or GetKeyboardState functions to set or get the keyboard input state of your application. • Don’t attempt to direct access the video memory.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123