User Profile

Collapse

Profile Sidebar

Collapse
ifitzgerald
ifitzgerald
Last Activity: Feb 21 '08, 03:51 AM
Joined: Sep 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ifitzgerald
    started a topic SQL query help

    SQL query help

    I have three tables:
    • P(P#, Pname, Color, Weight) aka Parts
    • S(S#, Sname, Status, City) aka Suppliers
    • SP(S#, P#, Qty)


    I need to find all parts that are supplied by ALL suppliers in London.

    So far, I have this:
    Code:
    select P#, Pname from P where P# in (select x.P# from SP x, sp y where x.S# in (select S# from S where City = 'London') and x.p# = y.p#)
    However, that returns parts that are supplied by at least...
    See more | Go to post

  • Sorry to reply to my own message again, but I found the solution to my problem.

    Checking the "ActiveX Controls" support checkbox does a few things:
    1) Adds #include <afxdisp.h> to StdAfx.h
    2) Adds a call to AfxEnableContro lContainer(); in the application's InitInstance function.

    Once I added those two things to my larger, more complex application it ran fine.

    Ian
    See more | Go to post

    Leave a comment:


  • I just had an epiphany!

    Whenever I created a VC++ MFC application, I always made sure that "ActiveX Controls" support was checked. I just created an application without the ActiveX support included to see what would happen if I tried to include the MSComm control anyway. Sure enough, it compiles with no errors or warnings, but it exits immediately when I try to run it!

    So now I have the question, what does...
    See more | Go to post

    Leave a comment:


  • Surely someone must have some idea what the problem is. Anyone?
    See more | Go to post

    Leave a comment:


  • ifitzgerald
    replied to Business HW problem C++
    in C
    You're already calculating that value here:
    [code=c]base += local_calls * LOCAL_RATE;[/code]
    Either recalculate the value in-line with a cout like this:
    [code=c]cout<< "Total Charges for Local calls: " << local_calls * LOCAL_RATE << endl;[/code]
    or store the result of the first calculation in a variable, e.g.
    [code=c]
    double localCharges = local_calls * LOCAL_RATE;
    base...
    See more | Go to post

    Leave a comment:


  • Hi,

    The solution offered by Raghuram is to schedule a program to execute on a schedule (e.g. run a script every day at 5:00pm) and will not help you accomplish what you are trying to do.

    If you're using Windows, the only way that I know of to call a function repeatedly at a set interval is by using Windows API calls, or a wrapper class to the API calls. You can find such a wrapper class here. I actually just implemented...
    See more | Go to post

    Leave a comment:


  • ifitzgerald
    replied to C2664 and passing member function pointer
    in C
    Banfa, thank you very much for your quick response. Unfortunately my automatic notification settings must be incorrect, and I didn't notice your response until this morning.

    What I ended up doing was creating a non-member function to use as the callback, and calling member functions in the callback using a global pointer to "this".

    [CODE=C]VOID timer1Event()
    {
    dialogObject->memberFunction ();...
    See more | Go to post

    Leave a comment:


  • ifitzgerald
    started a topic Adding MSCOMM control to Visual C++ Application
    in C

    Adding MSCOMM control to Visual C++ Application

    Hi,

    I am modifying a rather large and complex MFC application (written by someone else) written in Visual C++ 6.0 with service pack 6. I need to add serial communication functionality to the program, and since I am very familiar with the Microsoft Comm Control from Visual Basic I decided that I would use that in this application.

    To make things easier on myself, I decided to make several test applications using the...
    See more | Go to post

  • ifitzgerald
    started a topic C2664 and passing member function pointer
    in C

    C2664 and passing member function pointer

    I am attempting to use a wrapper class to the Win32 timer API in a Visual C++ 6.0 MFC application. The callback function needs to have access to the front panel, and as such needs to be a member of the front panel class. I kept getting compile error C2276 when I tried passing the address of a member function. After implementing a few changes suggested by the author of the class, I now get the following error when compiling:

    error C2664:...
    See more | Go to post
No activity results to display
Show More
Working...