Solved

Using XMS with VB dos ver 1.0 pro edition

Posted on 1998-09-27
5
279 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
A macro to Count the number of rows across all worksheets 3 78
Adding to a VBA? 6 60
vb6 connector to SQL Server 2 34
How does CurrentUser work? 10 31
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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

932 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

10 Experts available now in Live!

Get 1:1 Help Now