Results 1 to 3 of 3
  1. #1
    MSgt. Shooter Person
    Join Date
    May 2010
    Posts
    268

    Default Sending Variables to a WebPage? (DLLBIND and c++ stuff inside)

    Wanted to get some expert opinions about the following code - want to pass a variable to a webpage...


    Code:
    //**************************** UDK STUFF ****************
    
    class DLLPlayerController extends PlayerController DLLBind(MyDLL); 
    
    dllimport final function CallDLL1(out string mystring); 
    
    exec function OpenWebPage(string mystring)
    {
    CallDLL1(mystring);
    }


    Code:
    //**************************** c++ STUFF **************
    
    
    #include <windows.h>
    extern "C" 
    { 
    
     	__declspec(dllexport) void CallDLL1(wchar_t* mystring)
    	 { 
    	
    	ShellExecute(NULL, "open", "http://www.mywebsite.com/mywebpage.php&"+mystring,
    	NULL, NULL, SW_SHOWNORMAL);
    	}
    
    
    }
    Does this look like it might work ok to pass a variable to a php webpage?

    Can anyone see anything that might not be right about this?
    Last edited by billy7777; 11-26-2011 at 10:45 PM.

  2. #2
    Technical Writer - UDN
    Join Date
    Aug 2006
    Posts
    3,820
    Gamer IDs

    Gamertag: ffejnosliw

    Default

    Why not just use TCPLink?

  3. #3
    MSgt. Shooter Person
    Join Date
    May 2010
    Posts
    268

    Default

    Hey... thanks! thats a little more complicated than I wanted... but it's also probably the proper way to do things.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.