March 20th, 2009, 10:12 PM
Here is an example of a type conversion function:
template <typename Lo, typename Hi> Lo down_cast (const Hi& value)
{
Lo result = Lo (a);
if (Hi (result) != value)
throw...
March 20th, 2009, 09:24 PM
Yea! I finally got it to work. Thanks guys. The problem now is that I am knee deep in using the .NET Report Controls and so I will probably go that way. But here is the code that works for...
March 12th, 2009, 01:31 PM
I tried this
private void SetDBLogonForReport (ConnectionInfo connectionInfo)
{
string databaseName = comboBoxDBName.Text;
foreach (Table table in...
March 11th, 2009, 07:42 AM
I'm using VS2005 and SQL Server 2005 on a Vista machine attempting to create a Crystal Reports report.
I have two databases, Development_DB and Production_DB, with the same schema but populated...
March 10th, 2009, 10:20 PM
If I create a report using one database, can I use it with a different database that has the same tables with the same columns?
This seems like it should be elementary but I haven't figured out...
March 10th, 2009, 01:03 PM
cin does its own validation for int input. But you just want to pass over non-int chars until you find one that is, right? The following will do that. It is based on section 10.7 of Stroustrup,...
March 10th, 2009, 10:48 AM
I created a Prime class once. My approach was to use a vector to store the values in increasing order. I primed, little pun there, the vector with the first two primes, 2 & 3. Implemented a...
March 9th, 2009, 10:39 AM
I have a development database and a production database that have the identical schema but the two contain different data. I created a report using the develpment DB (in one C#, ReportDocument...