Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Dec 10th, 2006, 1:25 AM   #1
FlytotheSky
Newbie
 
Join Date: Dec 2006
Posts: 4
Rep Power: 0 FlytotheSky is on a distinguished road
Send a message via Yahoo to FlytotheSky
Question Help me! How can I get an Integer in memory

Good afternoon everybody, I'm a new member. Please help me!
How can I get an Integer value in memory? I want to access memory. Thank so much and have a good day
FlytotheSky is offline   Reply With Quote
Old Dec 10th, 2006, 1:36 AM   #2
alphonso
Programmer
 
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3 alphonso is on a distinguished road
If you mean storing a number to the hard drive, then there's two ways I can think of:
1) Create a database to store your integer to memory, and the second one is a bit hard...
2) Create a Registry Key to store your integer.

I'd recomment number 1 because it's safer to do (flooding the Registry is a computer crime ). To do this, build a connection with a Database, be it Jet4.0 or SQL.

If you mean getting a number from memory, then you either have to do one of the above (just reverse the codes to retrieve it, rather than save it), but another option is available:

Create a text file (using Notepad if you want), an put in a number there. Afterwhich, you can call the ReadLine() and WriteLine() functions built in VB2005 (browse the Object Browser by pressing F2 for more info about these functions).
By the way, there's really no reason at all to post two posts...We all see your first one
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein

Last edited by alphonso; Dec 10th, 2006 at 1:47 AM.
alphonso is offline   Reply With Quote
Old Dec 10th, 2006, 3:34 AM   #3
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
ok sorry to do this because DaWei would normally do this but DO NOT DOUBLE POST!!
__________________
Quote:
Originally Posted by DaWei View Post
Well, it's better than Pen Islands url....;)

crawforddavid2006 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heap vs. Stack memory Eric the Red C++ 11 Oct 24th, 2006 7:18 PM
help with timers for final class project Rath72 Visual Basic 8 Jun 14th, 2006 7:55 AM
Pointers in C (Part I) Stack Overflow C 4 Apr 28th, 2005 8:03 PM
Linking dll failure (file not found) amrfathy_egy Visual Basic 8 Feb 3rd, 2005 4:13 AM




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

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