devxlogo

Tip Bank

C-Style Function Pointers

Question: While trying to port some C code to a C++ implementation, I ran into this problem. The module this came out of was designed to “automate data handling used

Unconsting a Const Reference or Object

Question: I have encountered a problem as follows: void foo(const int& var){ foo2(var);}void foo2(int& var)… So what I did was void foo(const int& var){ foo2((int&)var); ^^^^^^} and it compiled *_*

Securing Images on Your Site

Question: Is it possible to keep someone from downloading an image from my Web site? Answer: It’s certainly possible to secure some of the files on your Web site. The

Dynamic Views Using the System Date

Question: I have a user who wants me to create a dynamic search view where the data retrieved is effective within the last six months using the system date. Is

Removing cc:Mail Connector

Question: I need to remove the cc:Mail connector. How do I do this? Answer: Though it would seem intuitive to select the connector and click Delete but that actually won’t

New Versus Malloc()

Question: Why is it necessary to typecast the return value of malloc() but not for the new operator? This question has been asked of many C++ experts but no one

Outlook Client Locks Up

Question: We have someone using PPTP to connect to our Exchange server. He is able to use the intranet without problems. He can even get into Outlook, but the troubles

Deleting/Expanding a Column

Question: What is the proper method(s) to delete a column from a table or expand the size of a column in a table? Adding is easy. Deleting and changing obviously