Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old May 21st, 2003, 07:46 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
Cool My First Case of VB

Frankly, I think that trying to get information about VB6 is like trying to pull teeth from a Polar Bear...

At any rate, I sat down for the first time ever with VB6 today and decided to do an actual project to learn the stupid thing. The result? A clunky little calculator that's mouse-only, doesn't do decimals, and has a few bugs in its implementation. Oh well. It was a learning experience, and if I'm going to spend 3 hours making a stupid calculator, somebody better look at it dammit!

LOL

(attachment is a 7K zip)

[edit]
New calculator - ooooo... now it supports decimals and exponents, plus I fixed a runtime error with the C function. Marvel at the technical advances I bring mankind....
[/edit]
Attached Files
File Type: zip sc.zip (6.9 KB, 326 views)

Last edited by Ctb : May 21st, 2003 at 08:19 PM.

Reply With Quote
  #2  
Old May 22nd, 2003, 09:54 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,827 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 22 h 57 m 29 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Not too bad
It does as expected. I wouldn't get too involved in VB if I could help it. I kind of makes me pull my hair out at times.

Reply With Quote
  #3  
Old May 22nd, 2003, 09:19 PM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
LOL - that's not what you want to hear from the forum mod - "Stay away".

Ugh, I don't blame you. I did all that crap just typing stuff up as it came to me and using the Object Browser. The documentation didn't install properly, and MSDN is nearly worthless (though I did find the C*() casting functions on MSDN which helped a great deal). 90% of the bloody thing was done through guesswork based on the tiny bit of QBASIC I can remember and the few things I knew from Perl that were evolved from the old BASIC syntax. I spent almost 2 hours fighting with try .. catch .. thow only to find out that that isn't in VB6 - it's in .NET. Then I had to fight with the stupid on error goto crap until I figured out how to use it. Hell, it took me 20 minutes just to find out how you add a menubar to a form (hah hah - funny me to think that the menubar is a regular object like a toolbar or statusbar...)

Oh well, the current version has some updates (including special error handling for overflow conditions and generic handling for most other erros), but the decimal place behavior is still a little funny sometimes (fortunately, you can no longer add more than one decimal place to a number).

The most annoying thing by far, however, is the fact that Visual Studio NEVER closes - it crashes... every time I try to close it
Attached Files
File Type: zip wz28.zip (13.9 KB, 329 views)

Reply With Quote
  #4  
Old May 27th, 2003, 07:54 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,827 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 22 h 57 m 29 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
I don't want to discourage anyone from using vb, it does have its uses. Just in my experience, those who know other languages well (Perl, C, etc) will end up getting pissed at the language for wanting to do something in it that could easily be done in another language by just a few lines but is not the case with vb.

I have to use it on a regular basis and it performs well as long as you use it to it's limitations. I don't know why your version will not shut down correctly, what service pack are you running?
I also know what you mean about the msdn library. On one machine it installed properly, but on the current one I'm using, it installed everything except the vb info correctly. No commands show up in the index search, I just have to know the command and use F1 to get to it.

If you run into any problems and need some help, don't hesitate to ask.

[edit]Just took a look at your updated app. I get an Error: 20 for a minus, plus and exponent raise calls.[/edit]

Last edited by Onslaught : May 27th, 2003 at 07:58 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > My First Case of VB


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway