Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using XMS with VB dos ver 1.0 pro edition

Posted on 1998-09-27
5
Medium Priority
?
301 Views
Last Modified: 2012-06-27
how do i compile/link programs in VB for dos ver 1.0 professional edition to use XMS memory ?
i encountered this problem because when running my compiled application and loading two forms i get an out-of-memmory error in module X.my compiled program is over 530k!
0
Comment
Question by:asaf_koren
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:asaf_koren
ID: 1436837
Edited text of question
0
 

Author Comment

by:asaf_koren
ID: 1436838
Adjusted points to 240
0
 

Author Comment

by:asaf_koren
ID: 1436839
Adjusted points to 250
0
 
LVL 2

Expert Comment

by:kswinney
ID: 1436840
I tried to do what you're trying to do several years ago.  Unfortunately, because of the way VB-DOS handles memory (or rather, doesn't handle it) it won't use XMS or EMS for its own storage.  You can, however, use XMS or EMS for storing your own data, freeing up conventional memory for VB-DOS.

Sorry, but I'm afraid there's not much you can do about it.
0
 
LVL 2

Accepted Solution

by:
kswinney earned 500 total points
ID: 1436841
... however, if you design it to use "Chain" to switch back and forth between different forms, you can effectively reduce the amount of RAM being used at any given time.

You can't design apps in VB for DOS like you can in VB for Windows.  You can't have one big EXE that holds all the forms.

You need to modularize and use "Chain" to move between them.

HTH,

Ken.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question