Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 14th, 2006, 11:49 PM   #1
bmad6
Newbie
 
Join Date: Nov 2005
Posts: 13
Rep Power: 0 bmad6 is on a distinguished road
Question File Mapping in Visual Basic?

I have Visual Basic .NET 2003, and have also been working with another programming languages which has file mapping capabilities - aka, it can create named blocks of data which can be accessed by multiple programs. Does anyone know whether Visual Basic supports file mapping, or, if it doesn't, where I might be able to find a library with this capability?

Thanks in advance...
bmad6 is offline   Reply With Quote
Old May 16th, 2006, 12:05 AM   #2
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
Quote:
Originally Posted by bmad6
I have Visual Basic .NET 2003, and have also been working with another programming languages which has file mapping capabilities - aka, it can create named blocks of data which can be accessed by multiple programs. Does anyone know whether Visual Basic supports file mapping, or, if it doesn't, where I might be able to find a library with this capability?

Thanks in advance...

how about xml?

if you know nothing about xml, read the first link on this page.
http://www.vbdotnetheaven.com/Sections/XML.NET.asp

if you know something about xml, here's an example of how you write it to a file in VB .net
http://www.vbdotnetheaven.com/Code/Jul2003/2121.asp

here's an example how you insert into an xml document that exists already.
http://www.vbdotnetheaven.com/Code/Jul2003/2117.asp

there are lots more on reading, parsing, etc on that page. go to it.


can't go wrong there, in .NET you can write out xml easily to a file and read it back into C# or pretty much any programming langauge you want. not sure if this is what you meant, but its the way to go for flat files.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt

Last edited by melbolt; May 16th, 2006 at 12:21 AM.
melbolt is offline   Reply With Quote
Old May 16th, 2006, 6:06 PM   #3
bmad6
Newbie
 
Join Date: Nov 2005
Posts: 13
Rep Power: 0 bmad6 is on a distinguished road
No, this isn't what I meant. I know some XML, and I agree - it's a great way to create files that can be read by most programming languages.

However, the "file mapping" I'm referring to is a method of storing a block of data in some form of higher memory, I think - not on the hard drive - where other applications can access it. Here is the explanation in the help file of the softwarel:

Quote:
The file mapping commands offer a way of sharing memory between applications. This opens up the possibility of communication between multiple applications on the same computer as data can be shared in memory.

When creating a file map a global, shared amount of memory will be set up in the Operating System. This can then be read and written to by a Dark Basic Professional application. Then either other Dark Basic Professional applications can access the shared memory or applications written in other programming languages that natively support file mapping.
The programming language is Dark Basic Professional - it's a very powerful software, with lots of built-in commands that are simpler than using more traditional programming languages, but its GUI capabilities are greatly lacking, so I was hoping I could integrate it with Visual Basic...
bmad6 is offline   Reply With Quote
Old May 16th, 2006, 7:57 PM   #4
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
oh ok, here's a few links

http://forums.devx.com/showthread.php?t=42616

http://www.experts-exchange.com/Prog..._21797793.html

http://www.wwwcoder.com/main/parenti...6/default.aspx

http://weblogs.asp.net/rosherove/arc...5/01/6295.aspx

http://www.morantex.com/PersistoreOverview.aspx
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Old May 16th, 2006, 10:37 PM   #5
bmad6
Newbie
 
Join Date: Nov 2005
Posts: 13
Rep Power: 0 bmad6 is on a distinguished road
Wow! Thanks!

http://weblogs.asp.net/rosherove/arc...5/01/6295.aspx

This link has a wrapper somebody wrote for accessing shared memory - assuming it's in VB, I may have just found the solution!

Thanks again for all your help...

EDIT: Oh crap! I just upgraded to VB .NET Express Version, the new one, and I don't think the wrapper will work now... dam...
bmad6 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC