stuct (or something) help...

This is a discussion on stuct (or something) help... within the C++ Programming forums, part of the General Programming Boards category; I have ben trying to make dlls for Game Maker (if you havn't noticed yet) and now I want a ...

  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, 07: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, 11:46 AM
  3. help with making a dynamic array sized global stuct
    By Josh Kasten in forum C++ Programming
    Replies: 3
    Last Post: 01-05-2003, 05:23 AM
  4. Advice on Class with Stuct
    By rippascal in forum C++ Programming
    Replies: 3
    Last Post: 04-03-2002, 09:57 AM

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