Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 21:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C++ Code ConsoleApp -> WinForms

Discussion on C++ Code ConsoleApp -> WinForms within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 11
Received Thanks: 0
C++ Code ConsoleApp -> WinForms

Hey,

i want to implement some code from my console app to my win form.

dont know how to write that for loop in win forms though...

pls help, thanks.

in console app:

Code:
        string pw;
	char key;

	cout << "Pw: ";
	cin  >> pw;

	cout << "\nKey: ";
	cin  >> key;

	for (int i = 0; i < pw.size(); i++)
	{
		pw[i] ^= key;	
	}
xyfz is offline  
Old 01/08/2013, 03:11   #2
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Assuming this you want to transfer it to a Visual C++ WinForms app, you can put it anywhere inside a function, and then call it from anywhere in your WinForms app, assuming it doesn't run to long or you will have to defer it to another thread.

A bit more code would be nice.

-jD
»jD« is offline  
Reply


Similar Threads Similar Threads
C++ (WinForms) Play .wav file from resource
12/05/2012 - C/C++ - 2 Replies
Hey, im trying to play a .wav sound from my resources in c++. works with PlaySound() in console app. but i cant figure out how to play the sound in winformsapp. tryed a few things out but it wont work. google didnt help me that much...
[GAMESCOM-SHOP] Vindictus Code, FireFall BETA Code, McGame.com Code, Victory Ukash
10/18/2012 - elite*gold Trading - 8 Replies
Hallo Leute hab ein paar Sachen auf der Gamescom gesammelt und übrig, diese möchte ich hier verkaufen. Ich akzeptiere nur Paypal, E*gold und Paysafecards! Hier ist eine Liste mit Bildern (natürlich sind die Codes zensiert :D): 1. Firefall Beta KEY Ihr macht den Preis! Bild 2. Vindictus Code 50 e*gold Bild
C# WinForms edit controls from another class.
10/18/2012 - .NET Languages - 5 Replies
Please help me i can't use txtBox from the other classes.



All times are GMT +1. The time now is 21:57.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.