devxlogo

Tip Bank

ASCII Value Conversions

Question: How can I convert an integer ascii representationof a number to its character equivalent in astring form. For example A= 72 What procedure will take in int 72 and

Byte to string conversion

Question: A variable retrieves its contents in the byte form, since I require to convert into the string format . Which is the method used in java or rather how

Submitting a form with extra fields

Question: I have a form that has three popup menus on it (among other things), and a hidden text box. A value is placed in the hidden text field based

Avoid Exit Sub and Exit Function

It is bad programming practice to exit a subroutine or function at any point other than its end. If you want to bail out of a routine, and do not

Remote access server

Question: We have installed a Windows NT 4.0 server with remote access server service installed. I am able to connect to the NT server from home using a dial-up connection

String formatting

Question: Is there a function that will format a string for number or, say, $$ display? For example: format 1000000 to 1,000,000? Answer: No, the C standard has no such

C++ equivilant of Basic MID$

Question: I need to test for a certain char in a char array.For example, in BASIC I would have: if mid$(string,1,1) = “`” then blah blah blah…. How would I

Pointers to member functions

Question: I am having lots of trouble calling a class member function pointer that is declared within the same class. So far the following compiles: class testClass {public: void (testClass::*ptr)();