Solved

Using XMS with VB dos ver 1.0 pro edition

Posted on 1998-09-27
5
277 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
  • 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 250 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now