August 12, 1999

Functions Returning Arrays

Question: Is it possible for a function to return an array instead of a single value? Answer: No but, then again, you don’t really pass arrays as parameters, either. What C/C++ can do is pass the address of an array (a pointer) and you can return a pointer, too. Just

Creating a Callback Function Pointer

Question: I am using Microsoft Visual C++ 6.0 and am trying to create a callback function pointer to the public member of a class, but I keep getting the following error: error C2664: ‘callback’ : cannot convert parameter 1 from ‘void’ to ‘void (__cdecl *)(void)’ Here is the code I

Linked Lists and Recursion

Question: I am using several large data structures as linked lists to process some data. Many of my helper functions use recursion. Because of the size/amount of data that I’m handling, the recursion has become bulky and uses up all of the memory on my system. How can I rewrite

Determine Last Modified Date of Word File From ASP

Question: Is it possible to find out the last modified date of a Microsoft Word file on a server, through an ASP page? Answer: Yes it is. Use the ‘DateLastModified’ property of the ‘File’ Object in ASP. Dim fs, f, s, filespec filespec = “Your Word File Name here” Set

C Equivalent in C++

Question: What is the C++ equivalent of the fflush(stdin) statement in C? Answer: Fortunately, although C++ offers many new ways of doing thing, it still includes everything that was in C. This also includes everything in the C Runtime Library. fflush(stdin) should work just as it did in C.

Handling Extremely Large Integers

Question: I’m trying to write an app that handles some complex mathematical functions, but am hitting a wall in regards to the int data type. I need to store and manipulate a few extremely large (2,048 bit) numbers. Is there any way to define my own data type and allocate

Determine Date Format on the Server

Question: Is there any way I can use ASP to get the date format on the server? I don’t want to return a date and then print it. I want to know the format so that I can instruct the user to enter a date in the correct format, such

Using MS Office Objects From ASP Pages

Question: Is it possible to create a server-side object so that an ASP page can gain access to Microsoft Office information? I am trying to find a way to edit information in the calendar/scheduler tool in Outlook from an ASP page. Answer: Yes, it is possible. You can use Server.CreateObject(“class

No more posts to show