Thread: stuct (or something) help...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    stuct (or something) help...

    I have ben trying to make dlls for Game Maker (if you havn't noticed yet) and now I want a ftp functions.

    So far I have this...

    Code:
    HANDLE hinternet;
        LPCTSTR servername;
        LPCTSTR serverport;
        LPCTSTR username;
        LPCTSTR password;
        char test[] = "INTERNET_SERVICE_FTP";
        
        InternetConnect(
        hinternet, 
        servername, 
        serverport, 
        username, 
        password, 
        test, 
        0, 
        hinternet);
    It says InternetConnect undecleared. But I have windows.h decleared. I think it is the way I set it up. Please help me

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Try including Wininet.h.

    Kuphryn

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    ok now I get this error...

    152 C:\Documents and Settings\Rune Hunter\Desktop\dllmain.cpp invalid conversion from `const TCHAR*' to `short unsigned int'

    152 C:\Documents and Settings\Rune Hunter\Desktop\dllmain.cpp invalid conversion from `char*' to `long unsigned int'

    It highlights the last line of code.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I have gotten to has far as this error now...

    [Linker error] undefined reference to `InternetConnectA@32'


    and my code...

    Code:
    HANDLE hinternet;
        LPCTSTR servername;
        int serverport;
        LPCTSTR username;
        LPCTSTR password;
    
        
        InternetConnect(
        hinternet, 
        servername, 
        serverport, 
        username, 
        password, 
        INTERNET_SERVICE_FTP, 
        0, 
        0);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Search a stuct
    By mrsirpoopsalot in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2009, 08:13 PM
  2. how can I load a file into a stuct
    By timgao in forum C Programming
    Replies: 20
    Last Post: 01-21-2007, 12:46 PM
  3. help with making a dynamic array sized global stuct
    By Josh Kasten in forum C++ Programming
    Replies: 3
    Last Post: 01-05-2003, 06:23 AM
  4. Advice on Class with Stuct
    By rippascal in forum C++ Programming
    Replies: 3
    Last Post: 04-03-2002, 10:57 AM