Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Commands and help
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 22, 2009 6:34 am    Post subject: Commands and help Reply with quote

heey

Do some1 ahs a lis of commands i acn use in c++ windows apllication

like:
MessageBox = appear a box with something in it what i wrote

but if i want to make a calculator and i awnt 2 things to fill how can i do that?

all other commands, a site or something:D
thanks


Last edited by NoMercy on Wed Jul 22, 2009 9:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Jul 22, 2009 6:50 am    Post subject: Reply with quote

http://msdn.microsoft.com/en-us/library/aa139672.aspx
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 22, 2009 7:42 am    Post subject: Reply with quote

thanks for the fast reply,

but i couldt find anything what i need there:O

ill give an example

Quote:
case IDC_BTN_TEST:
MessageBox(hwndDlg, "You clicked \"Test\" button!", "Information", MB_ICONINFORMATION);
return TRUE;


thats what i have, so a box appears and it says you click....etc

But i awnt the box so i can fill anything in

Something like a real aclcutlaor, 2 blank spots, and x, -,+,:

EDIT:

Quote:
DLG_MAIN DIALOGEX 6, 5, 194, 106

CAPTION "Ruben Rekenmachine"

FONT 7, "MS Sans Serif", 0, 0, 1

STYLE 0x10CE0804


i want to change the look of my window, i thought it was style, but i took a look at some example but nowhere there was 0x.......
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Jul 22, 2009 9:29 am    Post subject: Reply with quote

'the box so i can fill anything in' is called an edit control. buttons are controls called.. buttons. these can all be used in resources and dialogs. you are wanting to create a dialog/window. messagebox is just a particular style and system defined format for a dialog. here's a tutorial i wrote for a friend recently on doing a really simple dialog in C :

3tm.zwit.org

a resource editor is a nice and easy way of GUI programming if you intend to use resources instead of createwindow/ex
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 22, 2009 9:39 am    Post subject: Reply with quote

i dont see any tut, at least i see it i think, but cant open/download:P

But if i use dev c++, there is createwindow, but is it better then resources?

Im new to this kind of c++ and i couldt find any tut
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Jul 22, 2009 12:25 pm    Post subject: Reply with quote

um the tutorial itself is in the pdf/docx file. the files created during the tutorial are in that folder..

createwindow can do some more things as noz eloquently told me on irc it can create penis shaped windows, etc. but for the majority there is not that much useful especially for a beginner that you can do with createwindow/ex that you can't do with resources. unless of course you are aiming to make penis shaped windows ( which i have no clue how to do even with createwindow/ex since as far as i knew windows have to be rectangular.. )
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Jul 22, 2009 12:44 pm    Post subject: Reply with quote

http://www.winprog.org/tutorial/
_________________
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Wed Jul 22, 2009 2:29 pm    Post subject: Reply with quote

Coding the GUI just takes to much time, I rather create a resource and call DialogBox.
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 22, 2009 3:15 pm    Post subject: Reply with quote

slugnsachk i used ur tut, and i think i did everything correctly, but visual say this:

Quote:
1>------ Build started: Project: gui example, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(6) : error C2065: 'uMSG' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(6) : error C2050: switch expression not integral
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(9) : error C2065: 'hwndDLg' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(10) : error C2065: 'TREU' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(1Cool : error C2065: 'TREU' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(21) : error C2065: 'szString' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(22) : error C2065: 'szString' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(23) : error C2065: 'TREU' : undeclared identifier
1>Build log was saved at "file://c:\Documents and Settings\RuBen\Mijn documenten\Visual Studio 2008\Projects\gui example\gui example\Debug\BuildLog.htm"
1>gui example - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


why?
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Wed Jul 22, 2009 3:38 pm    Post subject: Reply with quote

NoMercy wrote:
slugnsachk i used ur tut, and i think i did everything correctly, but visual say this:

Quote:
1>------ Build started: Project: gui example, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(6) : error C2065: 'uMSG' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(6) : error C2050: switch expression not integral
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(9) : error C2065: 'hwndDLg' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(10) : error C2065: 'TREU' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(1Cool : error C2065: 'TREU' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(21) : error C2065: 'szString' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(22) : error C2065: 'szString' : undeclared identifier
1>c:\documents and settings\ruben\mijn documenten\visual studio 2008\projects\gui example\gui example\main.cpp(23) : error C2065: 'TREU' : undeclared identifier
1>Build log was saved at "file://c:\Documents and Settings\RuBen\Mijn documenten\Visual Studio 2008\Projects\gui example\gui example\Debug\BuildLog.htm"
1>gui example - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


why?


I lol'd at TREU. LRN2CPP PZ.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Jul 22, 2009 4:36 pm    Post subject: Reply with quote

i lol'ed in real life.

If you're gonna post your error's here, make sure you dont fuck up your spelling in definitions.

foreal though, treu?

Also post source for us to fix your errors.

_________________
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Jul 23, 2009 1:44 am    Post subject: Reply with quote

he's using the source from my tutorial lol. how could you fuck up on something like this.. ? okay download the cpp file from the same folder and compare and come back and tell us how you fucked up
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Thu Jul 23, 2009 3:26 am    Post subject: Reply with quote

hi, this is my sourcce

main.cpp

Quote:
#include <windows.h>
#include "resource.h"

INT_PTR CALLBACK DialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
switch ( uMSG )
{
case WM_CLOSE:
EndDialog( hwndDLg, 0 );
return TREU;

case WM_COMMAND:
switch ( LOWORD(wParam))
{
case IDM_CLOSE2:
case IDCANCEL:
SendMessage ( hwndDlg, WM_CLOSE, NULL, NULL );
return TREU;
case IDM_CLOSE1:
case IDOK:
GetDlgItemText(hwndDlg, IDC_EDIT1, (LPTSTR)&szString, 255);
MessageBox(hwndDlg, (LPTSTR)&szString, TEXT("you wrote : "), MB_OK );
return TREU;
}
default:
return FALSE;
}
}


int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
DialogBoxParam( GetModuleHandle ( NULL ), MAKEINTRESOURCE( IDD_DIALOG1 ), NULL, &DialogProc, NULL );
return 0;
}


Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Jul 23, 2009 3:31 am    Post subject: Reply with quote

now go and download my one and compare. not sure why i am helping you since you clearly have no clue on basic programming.. either that or you made a failed attempt at following my tutorial and made ridiculous typos then did not even try to correct them. either way, i do not tolerate incompetence nor lack of effort

consider my help in the future limited until you prove you have learnt the basics
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Thu Jul 23, 2009 3:53 am    Post subject: Reply with quote

if i use ur cpp, which i can only find 1 difference, the TCHARstring, tahts all, it still gives eroorrs:

Quote:
1>------ Build started: Project: gui example, Configuration: Debug Win32 ------
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>fatal error RC1110: could not open ..\..\..\..\GUI.rc
1>Project : error PRJ0002 : Error result 1 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe'.
1>Build log was saved at "file://c:\Documents and Settings\RuBen\Mijn documenten\Visual Studio 2008\Projects\gui example\gui example\Debug\BuildLog.htm"
1>gui example - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites