devxlogo

Tip Bank

Changing a DOS Program to a Win32 App

Question: I’ve writen a program that simulates a heat circulation, and one of its functions performs an optimization processwhich uses a lot of dynamic memory. Myquestion is, can I use

Converting a Hex String to Decimal

Question: I have a database of strings of hex numbers and I want to convert them to decimal. There doesn’t seem to be a function for it, but can you

Concrete Class

Question: What is a concrete class? Answer: A class that is neither derived from another class nor is meant to serve as the base for other classes is a concrete

Recognizing variables

Question: I have two varibles, one containing the name of another varible, and one containing a string. How can can I set the varible that’s name is contained in the

Building SQL in Code

Question: I am building an SQL statement to Insert and Update records. If the user enters a double quote mark in the text box the SQL statement treats this as

Use of void** in QueryInterface (COM)

Question: When using Queryinterface in COM, why is the interface pointer cast to void** andwhy is it passed as a pointer to a pointer (double indirection)? Answer: This is because

Pointer to Structure

Question: I have a struct: struct mystruct{ DWORD dw_Id;}*pMystruct; In the following function I want to pass the address of ‘dw_Id’ which is a member of mystruct. How do I

SQL Stored Procedures and VB

Question: How do I run a SQL stored procedure from within Visual Basic? Answer: The easiest way is to use the Execute method of either the Database object (DAO) or