devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Locking a Form in Position

Question: How do you lock down a form so that when the program is run, you can not move it. What I want to do is have one main form,

VB4 – VB5 Compatibility Issues

Question: I’ve wanted to upgrade my VB4 pro to VB5 ent. for a month or so now, but after monitoring various VB newsgroups for a few weeks I’m glad I

Visual Basic 5.0 VBW Files

Question: I have noticed that each for project I create there is a file with a vbw extension. I found this type file mentioned in VB Help as a Visual

Printing Single Lines to a Printer in VB5

Question: Is there a way in VB5 to immediately print single lines of text to a printer for logging events? I had some success in VB4 by directly opening LPT1

Using Predefined Access Queries

Question: How do you run Access queries in VB? Answer: Queries that you have defined in Access can be opened just like tables,using the OpenRecordset method of the database. If

What do I need?

Question: A new user, no experience, but a self motivator, I need to know if I need a data base program, or is there one included in VB 5. How

Learning VB 5.0

Question: I’m very interested in learning VB for windows. im thinking about getting the professional editionupgrade, but $150 is pretty expensive for me right now. is the learning edition going

Creating Win 3.1 Applications

Question: Should I upgrade to VB5.0. I currently am using VB4.0 to make a simple program to run on win3.1 and win95. I want to distribute this program on diskette

VB5.0 – Compiling

Question: I have recently created a program in VB5.0 on a WIN 95 system… on that system the program works great. Now I want to make my program accessable on

Licensing of DAO in VB

Question: I intended to use DAO in my application, but I wonder whether is there anylicense issue if I written an application in VB and distributed it orresell it? Answer:

Global Arrays

Question: I have a simple 2 form program with an array spanning both forms (i.e.MyArray(0),..MyArray(3) are on form 1 and MyArray(4),..MyArray(6) are on form 2). How can I declare MyArray

Creating EXE Files with CCE

Question: How do you create EXE files in VB 5.0 CCE? I know that the copy at Microsoft.com does not support the creation of EXE files, but I’m hoping that

Migration from VB 4.0 to VB 5.0

Question: I am currently using VB 4.0 Entreprise and will migrate to VB 5.0 Pro at home (I am still using this version at work).I would like to be able

Learning Version 4.0 vs. Version 5.0

Question: I had just started learning VB 4 when VB 5 was released. Is it worthwhile to master VB 4 and then try to understand the differences, or doesVB 5

New Data-Handling Features

Question: What are the improvements of VB5 to VB4, especially as to how to handle the data, data files, database? Answer: Data Files, using features such as Open/Write/Read, are unchanged

OO Programming with Databases

Question: I am getting into the object oriented features of VB4 and I am wondering where the back-end database (such as Access) comes in for small single user applications. You

Documenting the contents of a .PBL file

Question: Is there a third-party tool (or a functionalitynative to PB) with which I can print the *entire*contents of a .PBL file, preferablyin a way that’s meaningful? I have in

Parse string to float or double

Question: Is there a command Float.parseNumbers(s) that returns a float? Answer: Sure, parseInt(s) is simply: Integer temp = Integer.valueOf(s); int x = temp.intValue();which has an equivalent for floats Float temp

Type casting

Question: I’ve read the following example about type casting: int i; float f; f=float(i);Can you explain what happens to variables f and i on line 3, and could you give

How does one overload operator->*()?

Question: How does one overload operator->*()? Answer: Here is an example:struct bar { void doSomething();}struct foo { bar *operator ->* () { return bar_; }}void Foo (){ void (bar::*barFn)() =

I/O stream and opening to a file

Question: I have a completed program coded as a bubble sort. I must now read and write to a file. I am using fstream.h and coding an input for the

Exception specifications

Question: I recently learned that the C++ draft standard requires that an implementation not perform any static checking on a function’s exception specification (aside from inherited virtual functions and function

Gaining control after form is minimized

Question: I have a Delphi app that displays a bitmap, and I control drawing on the canvas object as one might on a paper roadmap. This works fine. When I

Template functions in classes

Question: Can I overload the >> operator in a class for all integral types using a template? If so, how? Answer: The short answer is no.The long answer?Templates are mechanisms

Meaning of const as prefix and suffix of function

Question: What is the purpose of placing a const at the beginning and end of a function declaration with a de-reference to the function? Are there memory leak implications?For example:

Truncating and converting floats

Question: I am trying to truncate and then convert a float to a string. Something like atoi().Is this possible? Any suggestions? Answer: float f = 1.234;int i = f;strstream s;s