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); }
Does this look like it might work ok to pass a variable to a php webpage?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); } }
Can anyone see anything that might not be right about this?



Reply With Quote

Bookmarks