| closed account (LAfSLyTq) | |
| is there any possible way i could get my console application to change stuff on a windows form i have added? | |
|
|
|
| closed account (LAfSLyTq) | |
| basicly what im asking is, how do i make my windows form application do what my console does? | |
|
|
|
| iseeplusplus (363) | |
| What does your console program do? | |
|
|
|
| closed account (LAfSLyTq) | |
|
it changes the value of ammo in HALO im trying to convert it to a windows from app but i cant seem to get the hack to work... also, this doesnt work either Form1::label1::text = sGameStatus; for some reason | |
|
|
|
| iseeplusplus (363) | |||
|
I found this example of getting user input. I wish I could help explain it, but I'm not experienced in windows forms. It looks kind of complicated to me for what it does. So take my advice with a grain of salt. Hopefully this is of some help. Good luck. http://www.daniweb.com/software-development/cpp/threads/258636/c-win32-input-help It seams like this is the part of that example where you might convert the input from TCHAR to integer and then launch your change ammo function.
Someone correct me if I'm wrong. | |||
|
Last edited on
|
|||
| naraku9333 (1038) | |
|
@Invader2010 You should probably set it like this->label1->Text = sGameStatus; somewhere appropriate in Form1.h
| |
|
Last edited on
|
|
| modoran (1245) | |
| That example is in C/C++, which is NOT the programming language you are currently using. | |
|
|
|
| closed account (LAfSLyTq) | |
@naraku ive already tried that, gives me thiese errorsError 2 error C2227: left of '->label1' must point to class/struct/union/generic type C:\Users\Jeremy\Documents\Visual Studio 2010\Projects\Windows form1\Windows form1\Windows form1.cpp 92 1 Windows form1Error 3 error C2227: left of '->Text' must point to class/struct/union/generic type C:\Users\Jeremy\Documents\Visual Studio 2010\Projects\Windows form1\Windows form1\Windows form1.cpp 92 1 Windows form1Error 1 error C2355: 'this' : can only be referenced inside non-static member functions C:\Users\Jeremy\Documents\Visual Studio 2010\Projects\Windows form1\Windows form1\Windows form1.cpp 92 1 Windows form1
| |
|
Last edited on
|
|
| naraku9333 (1038) | |
| Are you adding your code to Form1.h? | |
|
Last edited on
|
|
| closed account (LAfSLyTq) | |
| yep, gives me too many errors. | |
|
|
|
| naraku9333 (1038) | |
| Can you post the code? | |
|
|
|
| closed account (LAfSLyTq) | |||
windows form1.cpp
| |||
|
Last edited on
|
|||
| naraku9333 (1038) | |
Everything after Application::Run(gcnew Form1()); wont run until after the form is closed. Your also mixing Win32 and CLI, which probably isn't a good idea but I'm honestly not sure. As I said before you should add your code to Form1.hEdit: Specifically, you probably should add your code to a button click or form load event handler. | |
|
Last edited on
|
|
| blackcoder41 (1416) | |||
http://msdn.microsoft.com/en-us/library/ee663266%28v=vs.85%29 http://msdn.microsoft.com/en-us/library/ms229601%28v=vs.90%29 Good luck!! | |||
|
Last edited on
|
|||
| webJose (2948) | |
| My honest advice: Ask in the appropriate forums. You may be attached to this one and such, but most of us don't know C++/CLI, which is what you are currently using. Just ask in the MSDN Forums until the day comes when this forum has enough CLI experts. Maybe you can be one of those experts in time! In the meantime, you'll just get half-baked guesses here. | |
|
Last edited on
|
|