CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: cswager

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    15,595

    Re: Template Cast Operator. Possible?

    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...
  2. Re: Can a report file (.rpt) be used on multiple databases?

    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...
  3. Re: Can a report file (.rpt) be used on multiple databases?

    I tried this


    private void SetDBLogonForReport (ConnectionInfo connectionInfo)
    {
    string databaseName = comboBoxDBName.Text;

    foreach (Table table in...
  4. Re: Can a report file (.rpt) be used on multiple databases?

    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...
  5. Can a report file (.rpt) be used on multiple databases?

    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...
  6. Replies
    4
    Views
    6,071

    Re: Integer Validation C++

    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,...
  7. Thread: Prime numbers

    by cswager
    Replies
    8
    Views
    1,235

    Re: Prime numbers

    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...
  8. Report displays development DB data even though Production DB is specified

    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...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured