Custom cprog.com interface

This is a discussion on Custom cprog.com interface within the Windows Programming forums, part of the Platform Specific Boards category; I am investigating the possibility of creating my own interface for the cprog.com forums. It would be my own Win32 ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    Arrow Custom cprog.com interface

    I am investigating the possibility of creating my own interface for the cprog.com forums. It would be my own Win32 interface, including an edit control and forum selection box, etc. A user could post new threads and replies, as well as viewing existing threads, all from this application, without using Internet Explorer.

    The part I do not know how to do is submitting the text for a new thread or reply. I think I will be able to receive an HTML file and parse it to show existing posts. There must be an API for downloading files from the net, so I should be alright there.

    Is this possible, and if so, how do I do it?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    There probably is, but you could always use good ol' winsock and just send the right commands to the server. GET, POST etc.

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Don't forget about logging in and all of that stuff.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    WinINet is the api you are after.

    http://www.google.com/search?q=wininet&hl=xx-hacker
    SDK: ms-help://MS.PSDK.1033/wininet/wininet/portal.htm

  5. #5
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Originally posted by -KEN-
    There probably is, but you could always use good ol' winsock and just send the right commands to the server. GET, POST etc.
    Could you elaborate a little? That sounds easier than the way I was thinking. I don't know any WinSock, but I'd love to learn.

    anonytmouse, you're lucky I know 1337 5|>34|<.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  7. #7
    ENF
    ENF is offline
    Registered User
    Join Date
    Oct 2003
    Posts
    12
    Not sure how log ins are handled on this bored but you might end up having to handle cookies.

  8. #8
    Banned maes's Avatar
    Join Date
    Aug 2001
    Posts
    744
    wouldn't you need the passwords for the MySQL server?

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    You wouldnt get the password to the MySQL server.....the webmaster would have to go insane to give them to anyone

  10. #10
    Banned maes's Avatar
    Join Date
    Aug 2001
    Posts
    744
    wouldn't it be cool, we could all be admins

    the first thing I would do is delete GC's account

  11. #11
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by maes
    the first thing I would do is delete GC's account
    When I became mod that's the first thing I tried...but like some sort of evil spectre it just wouldnt go away!

  12. #12
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Okay boys and girls, back to the original topic. I've been successful in using WinInet to download URLs, so I'm clawing my way there. Any tips on posting threads/replies, or logging in? I'll play around with the POST and GET messages and see what happens, hopefully they're the answer.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  13. #13
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    I was looking at the source for the Post New Thread page, and I think this bit is important:
    Code:
    <form enctype="multipart/form-data" action="newthread.php" method="POST" name="vbform" onSubmit="return validate(this)">
    I believe I can use WinInet to send the POST command along with a number of variables, including the contents of the edit controls. Is this the right way to go?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  14. #14
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I think that is correct. You may want to use some utility to see exactly what is sent. If you don't want to install something, you could just listen on port 80(and output the input to screen) and change the action to 'action="127.0.0.1/in.htm"'

    On another note, you may want to look into IXMLHTTPRequest interface as it much easier to use that WinINet.

  15. #15
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Will do, cheers. At the moment, I'm reading RFC 1866, HTML 2.0. I'm finding that it is a good reference. I'm also posting in the PHP forum over at DevShed, and getting good results. Once I solve the problem, I'll post up the solution, and whip up a program for public use.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 06-17-2009, 04:20 PM
  2. How to get RSSI value, send to sensor, sensor receive package, repackage it?
    By techissue2008 in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-04-2009, 09:13 AM
  3. Calling IRichEditOle interface methods
    By Niara in forum C Programming
    Replies: 2
    Last Post: 01-16-2009, 12:23 PM
  4. game user interface
    By DavidP in forum Game Programming
    Replies: 3
    Last Post: 06-19-2004, 12:44 PM
  5. OOP in C
    By lyx in forum C Programming
    Replies: 4
    Last Post: 11-23-2003, 12:12 PM

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