We help IT Professionals succeed at work.

pass string from c++ to asp page

eddiepardon
eddiepardon asked
on
Medium Priority
300 Views
Last Modified: 2010-08-05
How do I pass a string from c++ to an asp page?
Comment
Watch Question

Commented:
Could you a little more specific about what you are trying to do?

Author

Commented:
Basically I have a string named sUserID. I want to pass this string from the C++ Application to an ASP page that is called by the C++ Appl. After the asp page receives it, it will do some validation.

Commented:
Do you need to get anything in return?

Commented:
Is your asp page using post or get?

Author

Commented:
Nothing needs to be returned. asp is using get (That can change if need be).
Commented:
#include <windows.h>

void main()
{
   ShellExecute(NULL, "open", "http://your_asp_page.asp?value='" + strValue + "'", NULL, NULL, SW_SHOWNORMAL);
}

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
easier would be to save in a temp file.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.