How May I connect from Windows NT to Unix

This is a discussion on How May I connect from Windows NT to Unix within the C Programming forums, part of the General Programming Boards category; Hello world ! I am trying to develop a program to connect from a windows nt OS to a SUN-Unix ...

  1. #1
    jose luis
    Guest

    Lightbulb How May I connect from Windows NT to Unix

    Hello world ! I am trying to develop a program to connect from a windows nt OS to a SUN-Unix v 4.0 Server and once connected to run an .exe program obtain/bring the result back to my windows nt computer. Is it possible? To connect to SQL Server I use this the following . How would it be for a unix machine?...
    if ( SQLAllocEnv(&henv) != SQL_SUCCESS ) printf("cant create ODBC enviro.\n");
    if ( SQLAllocConnect(henv, &hdbc) != SQL_SUCCESS ) printf("cant create ODBC connection variable.\n");


    printf("database name: %s, username: %s, password %s.\n", DBNAME, DBUNAME, DBPWD);

    rc = SQLConnect(hdbc, (UCHAR *)DBNAME, SQL_NTS, (UCHAR *)DBUNAME, SQL_NTS, (UCHAR *)DBPWD, SQL_NTS);
    if ( ( rc != SQL_SUCCESS ) && ( rc != SQL_SUCCESS_WITH_INFO ) ) {
    printf("Oops!!!!! No se pudo conectar al base de datos!!!!!\n");
    printf("Error = %s. \n", rc);
    printf("\n\nMarca ENTER para continuar
    }
    printf("Connected to Database xxx %s.\n", DBNAME);

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Some Socket info here.... There are many socket tutorials around, you'll need to look up one for NT as well.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    jose luis
    Guest

    Lightbulb

    Thanks for replaying me. Could you please be more specific, I am not an expert programmer. This is my specific situation:

    There are several C++ APIs compile and installed in an Unix Server. I need to run these APIs on the Unix server from my Windows NT Computer carrying the APIs result to my PC. I read already about RPC application in order to create the STUBs files so both (pc(NT client)<-->Server(Unix) can talk by compiling using MIDL (Microsoft Interface Definition Languaje). MSDN is very specific about this topic but does not give you any complete examples of a short demostration.

    Thanks for any help you can give me !


    from: Gallito

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    I don't have any sample code to give you that google doesn't already have

    With a quick search, this turned up.

    Once you work out how you're going to design your solution, post any problematic code here, and someone will help you.

    Good luck!
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dos differences in Windows NT and Windows XP
    By Ruchikar in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-17-2003, 11:36 PM
  2. C++ Gurus, UNIX vs. Windows ascii problem perhaps?
    By puck in forum C++ Programming
    Replies: 6
    Last Post: 03-28-2003, 09:33 PM
  3. Windows or Unix environment
    By ghe1 in forum Windows Programming
    Replies: 5
    Last Post: 02-19-2002, 10:37 AM
  4. unix, windows
    By stef in forum C Programming
    Replies: 3
    Last Post: 09-14-2001, 03:37 PM

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