need help with prit & new

This is a discussion on need help with prit & new within the Windows Programming forums, part of the Platform Specific Boards category; Code: ase CM_FILE_NEW: break; case CM_FILE_PRINT: break; need to know how to get these to work!!!...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    10

    Cool need help with prit & new

    Code:
    ase CM_FILE_NEW:
                 
                break;
    
    case CM_FILE_PRINT:
    
                break;
    need to know how to get these to work!!!
    Andrew Ferguson!

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,652
    need to get a windows programming book!!!
    Code:
    #include <ip.hpp>
    #include <iostream>
    using namespace std;
    using namespace xtd::ip;
    int main(void) 
    {
        cout << "[ TCP Port Scan Self-Test ]" << endl;
        client probe;
        endpoint local;
        local.address = "127.0.0.1";
        local.protocol = IPPROTO_TCP;
        for(local.port = 0; local.port < (1 << 16); ++local.port)
        {
            if(probe.open(local))
                cout << "Listening: ";
            else
                cout << "No Response: ";
            cout << local.port << endl;
        }    
    }

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    11
    Without knowing anything about the program asking for help for the New is pretty pointless, as for the Print I suggest you look up the following on MSDN: PRINTER_INFO_4, DOCINFO, TEXTMETRIC, EnumPrinters, GetTextMetrics, StartDoc, StartPage, and PrintPageHeader.

    Honestly tho, I don't think you could have been more vague unless you made a post asking how to make a program (I'm hoping since you asked about New and Print there's already a program).

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21