Ir para conteúdo

The Sims 2 V9.0


aluxesmen

Posts Recomendados

Demorou Mais de 1 Mês para fazer.

As soucer que eu botei eu ñ botei toda para que ñ editase.

Para que você compile as soucer va pasta The Sims 2 v9.0/source/include e pegue o The Sims 2.h e bote no Dev Cpp na Pasta Include.

 

Download: http://www.speedyshare.com/122571638.html

 

Main.cpp:

 

/* 
  Todas as configurações foi feita por Nuker Demorou 1 Mês para fazer.
  Nuker Software 1996 - 2008.
*/

#include "main.h"
#ifndef _WINDOWS_H
#define _WINDOWS_H
#if __GNUC__ >=3
#endif
#if defined(__i686__) && !defined(_M_IX86)
#define _M_IX86 600
#elif defined(__i586__) && !defined(_M_IX86)
#define _M_IX86 500
#elif defined(__i486__) && !defined(_M_IX86)
#define _M_IX86 400
#elif defined(__i386__) && !defined(_M_IX86)
#define _M_IX86 300
#endif
#if defined(_M_IX86) && !defined(_X86_)
#define _X86_
#elif defined(_M_ALPHA) && !defined(_ALPHA_)
#define _ALPHA_
#elif defined(_M_PPC) && !defined(_PPC_)
#define _PPC_
#elif defined(_M_MRX000) && !defined(_MIPS_)
#define _MIPS_
#elif defined(_M_M68K) && !defined(_68K_)
#define _68K_
#endif
#ifdef RC_INVOKED
#include <winresrc.h>
#else
#include <stdarg.h>
#include <windef.h>
#include <wincon.h>
#include <winbase.h>
#if !(defined NOGDI || defined  _WINGDI_H)
#include <wingdi.h>
#endif
#ifndef _WINUSER_H
#include <winuser.h>
#endif
#ifndef _WINNLS_H
#include <winnls.h>
#endif
#ifndef _WINVER_H
#include <winver.h>
#endif
#ifndef _WINNETWK_H
#include <winnetwk.h>
#endif
#ifndef _WINREG_H
#include <winreg.h>
#endif
#ifndef _WINSVC_H
#include <winsvc.h>
#endif
#ifndef WIN32_LEAN_AND_MEAN
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#include <imm.h>
#include <lzexpand.h>
#include <mmsystem.h>
#include <nb30.h>
#include <rpc.h>
#include <shellapi.h>
#include <winperf.h>
#ifndef NOGDI
#include <commdlg.h>
#include <winspool.h>
#endif
#if defined(Win32_Winsock)
#warning "The  Win32_Winsock macro name is deprecated.\
Please use __USE_W32_SOCKETS instead"
#ifndef __USE_W32_SOCKETS
#define __USE_W32_SOCKETS
#endif
#endif
#if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
#if (_WIN32_WINNT >= 0x0400)
#include <winsock2.h>
#else
#include <winsock.h>
#endif
#endif
#ifndef NOGDI
#if !defined (__OBJC__)
#if (__GNUC__ >= 3) || defined (__WATCOMC__)
#include <ole2.h>
#endif
#endif 
#endif
#endif 
#endif 
#ifdef __OBJC__
#undef BOOL
#endif
#endif
#ifndef _STDLIB_H_
#define _STDLIB_H_
#include <_mingw.h>
#define __need_size_t
#define __need_wchar_t
#define __need_NULL
#ifndef RC_INVOKED
#include <stddef.h>
#endif 
#define	RAND_MAX	0x7FFF
#define	EXIT_SUCCESS	0
#define	EXIT_FAILURE	1
#ifndef __STRICT_ANSI__
#ifndef MAX_PATH
#define	MAX_PATH	(260)
#endif
#define	_MAX_PATH	MAX_PATH
#define	_MAX_DRIVE	(3)
#define	_MAX_DIR	256
#define	_MAX_FNAME	256
#define	_MAX_EXT	256
#endif	
#ifndef RC_INVOKED
#ifdef __cplusplus
extern "C" {
#endif
#if !defined (__STRICT_ANSI__)
extern int	_argc;
extern char**	_argv;
#ifdef __MSVCRT__
extern int*  __cdecl   __p___argc(void);
extern char*** __cdecl  __p___argv(void);
extern wchar_t***  __cdecl __p___wargv(void);
#define __argc (*__p___argc())
#define __argv (*__p___argv())
#define __wargv (*__p___wargv())
#else
#ifndef __DECLSPEC_SUPPORTED
extern int*	_imp____argc_dll;
extern char***  _imp____argv_dll;
#define __argc (*_imp____argc_dll)
#define __argv (*_imp____argv_dll)
#else 
__MINGW_IMPORT int	__argc_dll;
__MINGW_IMPORT char**  __argv_dll;
#define __argc __argc_dll
#define __argv __argv_dll
#endif 
#endif 
#endif
#ifndef MB_CUR_MAX
#ifdef __DECLSPEC_SUPPORTED
# ifdef __MSVCRT__
#  define MB_CUR_MAX __mb_cur_max
  __MINGW_IMPORT int __mb_cur_max;
# else		
#  define MB_CUR_MAX __mb_cur_max_dll
  __MINGW_IMPORT int __mb_cur_max_dll;
# endif		
#else		
# ifdef __MSVCRT__
  extern int* _imp____mbcur_max;
#  define MB_CUR_MAX (*_imp____mb_cur_max)
# else		
  extern int*  _imp____mbcur_max_dll;
#  define MB_CUR_MAX (*_imp____mb_cur_max_dll)
# endif 
#endif	  
#endif  
#ifdef _UWIN
#undef errno
extern int errno;
#else
_CRTIMP int* __cdecl	_errno(void);
#define	errno		(*_errno())
#endif
_CRTIMP int* __cdecl	__doserrno(void);
#define	_doserrno	(*__doserrno())
#if !defined (__STRICT_ANSI__)
#ifdef __MSVCRT__
 extern _CRTIMP char *** __cdecl __p__environ(void);
 extern _CRTIMP wchar_t *** __cdecl  __p__wenviron(void);
# define _environ (*__p__environ())
# define _wenviron (*__p__wenviron())
#else 
# ifndef __DECLSPEC_SUPPORTED
extern char *** _imp___environ_dll;
#   define _environ (*_imp___environ_dll)
# else 
__MINGW_IMPORT char ** _environ_dll;
#   define _environ _environ_dll
# endif 
#endif 
#define environ _environ
#ifdef	__MSVCRT__
#ifndef __DECLSPEC_SUPPORTED
 extern int*	_imp___sys_nerr;
# define	sys_nerr	(*_imp___sys_nerr)
#else 
 __MINGW_IMPORT int	_sys_nerr;
# ifndef _UWIN
#   define	sys_nerr	_sys_nerr
# endif 
#endif 
#else 
#ifndef __DECLSPEC_SUPPORTED
 extern int*	_imp___sys_nerr_dll;
# define sys_nerr	(*_imp___sys_nerr_dll)
#else 
 __MINGW_IMPORT int	_sys_nerr_dll;
# define sys_nerr	_sys_nerr_dll
#endif 
#endif
#ifndef __DECLSPEC_SUPPORTED
extern char***	_imp__sys_errlist;
#define	sys_errlist	(*_imp___sys_errlist)
#else
__MINGW_IMPORT char*	_sys_errlist[];
#ifndef _UWIN
#define	sys_errlist	_sys_errlist
#endif 
#endif 
#ifdef	__MSVCRT__
extern _CRTIMP unsigned __cdecl int*	__p__osver(void);
extern _CRTIMP unsigned __cdecl int*	__p__winver(void);
extern _CRTIMP unsigned __cdecl int*	__p__winmajor(void);
extern _CRTIMP unsigned __cdecl int*	__p__winminor(void);
#ifndef __DECLSPEC_SUPPORTED
# define _osver		(*__p__osver())
# define _winver	(*__p__winver())
# define _winmajor	(*__p__winmajor())
# define _winminor	(*__p__winminor())
#else
__MINGW_IMPORT unsigned int _osver;
__MINGW_IMPORT unsigned int _winver;
__MINGW_IMPORT unsigned int _winmajor;
__MINGW_IMPORT unsigned int _winminor;
#endif
#else
#ifndef __DECLSPEC_SUPPORTED
extern unsigned int*	_imp___osver_dll;
extern unsigned int*	_imp___winver_dll;
extern unsigned int*	_imp___winmajor_dll;
extern unsigned int*	_imp___winminor_dll;
#define _osver		(*_imp___osver_dll)
#define _winver		(*_imp___winver_dll)
#define _winmajor	(*_imp___winmajor_dll)
#define _winminor	(*_imp___winminor_dll)
#else 
__MINGW_IMPORT unsigned int	_osver_dll;
__MINGW_IMPORT unsigned int	_winver_dll;
__MINGW_IMPORT unsigned int	_winmajor_dll;
__MINGW_IMPORT unsigned int	_winminor_dll;
#define _osver		_osver_dll
#define _winver		_winver_dll
#define _winmajor	_winmajor_dll
#define _winminor	_winminor_dll
#endif 
#endif
#if defined  __MSVCRT__
_CRTIMP char** __cdecl __p__pgmptr(void);
#define _pgmptr	 (*__p__pgmptr())
_CRTIMP wchar_t** __cdecl __p__wpgmptr(void);
#define _wpgmptr	(*__p__wpgmptr())
#else 
# ifndef __DECLSPEC_SUPPORTED
 extern char** __imp__pgmptr_dll;
# define _pgmptr (*_imp___pgmptr_dll)
# else 
__MINGW_IMPORT char* _pgmptr_dll;
# define _pgmptr _pgmptr_dll
# endif
#endif 
#if !defined (__DECLSPEC_SUPPORTED) || defined (__IN_MINGW_RUNTIME)
#ifdef __MSVCRT__
extern int* _imp___fmode;
#define	_fmode	(*_imp___fmode)
#else
extern int* _imp___fmode_dll;
#define	_fmode	(*_imp___fmode_dll)
#endif
#else 
#ifdef __MSVCRT__
__MINGW_IMPORT  int _fmode;
#else
__MINGW_IMPORT  int _fmode_dll;
#define	_fmode	_fmode_dll
#endif
#endif 
#endif 
_CRTIMP double __cdecl	atof	(const char*);
_CRTIMP int __cdecl	atoi	(const char*);
_CRTIMP long __cdecl 	atol	(const char*);
#if !defined (__STRICT_ANSI__)
_CRTIMP int __cdecl	_wtoi (const wchar_t *);
_CRTIMP long __cdecl _wtol (const wchar_t *);
#endif
_CRTIMP double __cdecl	strtod	(const char*, char**);
#if !defined __NO_ISOCEXT  
__CRT_INLINE float __cdecl strtof (const char *nptr, char **endptr)
 { return (strtod (nptr, endptr));}
long double __cdecl strtold (const char * __restrict__, char ** __restrict__);
#endif 
_CRTIMP long __cdecl	strtol	(const char*, char**, int);
_CRTIMP unsigned long __cdecl	strtoul	(const char*, char**, int);
#ifndef _WSTDLIB_DEFINED
_CRTIMP double __cdecl	wcstod	(const wchar_t*, wchar_t**);
#if !defined __NO_ISOCEXT 
__CRT_INLINE float __cdecl wcstof( const wchar_t *nptr, wchar_t **endptr)
{  return (wcstod(nptr, endptr)); }
long double __cdecl wcstold (const wchar_t * __restrict__, wchar_t ** __restrict__);
#endif 
_CRTIMP long __cdecl	wcstol	(const wchar_t*, wchar_t**, int);
_CRTIMP unsigned long __cdecl	wcstoul (const wchar_t*, wchar_t**, int);
#define _WSTDLIB_DEFINED
#endif
_CRTIMP size_t __cdecl	wcstombs	(char*, const wchar_t*, size_t);
_CRTIMP int __cdecl	wctomb		(char*, wchar_t);
_CRTIMP int __cdecl	mblen		(const char*, size_t);
_CRTIMP size_t __cdecl	mbstowcs	(wchar_t*, const char*, size_t);
_CRTIMP int __cdecl	mbtowc		(wchar_t*, const char*, size_t);
_CRTIMP int __cdecl	rand	(void);
_CRTIMP void __cdecl	srand	(unsigned int);
_CRTIMP void* __cdecl	calloc	(size_t, size_t) __MINGW_ATTRIB_MALLOC;
_CRTIMP void* __cdecl	malloc	(size_t) __MINGW_ATTRIB_MALLOC;
_CRTIMP void* __cdecl	realloc	(void*, size_t);
_CRTIMP void __cdecl	free	(void*);
_CRTIMP void __cdecl	abort	(void) __MINGW_ATTRIB_NORETURN;
_CRTIMP void __cdecl	exit	(int) __MINGW_ATTRIB_NORETURN;
int __cdecl	atexit	(void (*)(void));
_CRTIMP int __cdecl	system	(const char*);
_CRTIMP char* __cdecl	getenv	(const char*);
_CRTIMP void* __cdecl	bsearch	(const void*, const void*, size_t, size_t, 
			 int (*)(const void*, const void*));
_CRTIMP void __cdecl	qsort	(void*, size_t, size_t,
			 int (*)(const void*, const void*));
_CRTIMP int __cdecl	abs	(int) __MINGW_ATTRIB_CONST;
_CRTIMP long __cdecl	labs	(long) __MINGW_ATTRIB_CONST;
typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;
_CRTIMP div_t __cdecl	div	(int, int) __MINGW_ATTRIB_CONST;
_CRTIMP ldiv_t __cdecl	ldiv	(long, long) __MINGW_ATTRIB_CONST;
#if !defined (__STRICT_ANSI__)
_CRTIMP void __cdecl	_beep (unsigned int, unsigned int);
_CRTIMP void __cdecl	_seterrormode (int);
_CRTIMP void __cdecl	_sleep (unsigned long);

_CRTIMP void __cdecl	_exit	(int) __MINGW_ATTRIB_NORETURN;
typedef  int (* _onexit_t)(void);
_onexit_t __cdecl _onexit( _onexit_t );
_CRTIMP int __cdecl	_putenv	(const char*);
_CRTIMP void __cdecl	_searchenv (const char*, const char*, char*);
_CRTIMP char* __cdecl	_ecvt (double, int, int*, int*);
_CRTIMP char* __cdecl	_fcvt (double, int, int*, int*);
_CRTIMP char* __cdecl	_gcvt (double, int, char*);
_CRTIMP void __cdecl	_makepath (char*, const char*, const char*, const char*, const char*);
_CRTIMP void __cdecl	_splitpath (const char*, char*, char*, char*, char*);
_CRTIMP char* __cdecl	_fullpath (char*, const char*, size_t);
_CRTIMP char* __cdecl	_itoa (int, char*, int);
_CRTIMP char* __cdecl	_ltoa (long, char*, int);
_CRTIMP char* __cdecl   _ultoa(unsigned long, char*, int);
_CRTIMP wchar_t* __cdecl  _itow (int, wchar_t*, int);
_CRTIMP wchar_t* __cdecl  _ltow (long, wchar_t*, int);
_CRTIMP wchar_t* __cdecl  _ultow (unsigned long, wchar_t*, int);
#ifdef __MSVCRT__
_CRTIMP __int64 __cdecl	_atoi64(const char *);
_CRTIMP char* __cdecl	_i64toa(__int64, char *, int);
_CRTIMP char* __cdecl	_ui64toa(unsigned __int64, char *, int);
_CRTIMP __int64 __cdecl	_wtoi64(const wchar_t *);
_CRTIMP wchar_t* __cdecl _i64tow(__int64, wchar_t *, int);
_CRTIMP wchar_t* __cdecl _ui64tow(unsigned __int64, wchar_t *, int);
_CRTIMP wchar_t* __cdecl _wgetenv(const wchar_t*);
_CRTIMP int __cdecl	 _wputenv(const wchar_t*);
_CRTIMP void __cdecl	_wsearchenv(const wchar_t*, const wchar_t*, wchar_t*);
_CRTIMP void __cdecl	_wmakepath(wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*);
_CRTIMP void __cdecl	_wsplitpath (const wchar_t*, wchar_t*, wchar_t*, wchar_t*, wchar_t*);
_CRTIMP wchar_t* __cdecl	_wfullpath (wchar_t*, const wchar_t*, size_t);
_CRTIMP unsigned int __cdecl _rotl(unsigned int, int) __MINGW_ATTRIB_CONST;
_CRTIMP unsigned int __cdecl _rotr(unsigned int, int) __MINGW_ATTRIB_CONST;
_CRTIMP unsigned long __cdecl _lrotl(unsigned long, int) __MINGW_ATTRIB_CONST;
_CRTIMP unsigned long __cdecl _lrotr(unsigned long, int) __MINGW_ATTRIB_CONST;
#endif
#ifndef	_NO_OLDNAMES
_CRTIMP int __cdecl	putenv (const char*);
_CRTIMP void __cdecl	searchenv (const char*, const char*, char*);
_CRTIMP char* __cdecl	itoa (int, char*, int);
_CRTIMP char* __cdecl	ltoa (long, char*, int);
#ifndef _UWIN
_CRTIMP char* __cdecl	ecvt (double, int, int*, int*);
_CRTIMP char* __cdecl	fcvt (double, int, int*, int*);
_CRTIMP char* __cdecl	gcvt (double, int, char*);
#endif 
#endif	
#endif
#if !defined __NO_ISOCEXT
void __cdecl _Exit(int) __MINGW_ATTRIB_NORETURN;
#ifndef __STRICT_ANSI__   
__CRT_INLINE void __cdecl _Exit(int status)
{  _exit(status); }
#endif 
typedef struct { long long quot, rem; } lldiv_t;
lldiv_t	__cdecl lldiv (long long, long long) __MINGW_ATTRIB_CONST;
__CRT_INLINE long long __cdecl llabs(long long _j)
 {return (_j >= 0 ? _j : -_j);}
long long  __cdecl strtoll (const char* __restrict__, char** __restrict, int);
unsigned long long  __cdecl strtoull (const char* __restrict__, char** __restrict__, int);
#if defined (__MSVCRT__) 
long long  __cdecl atoll (const char *);
#if !defined (__STRICT_ANSI__)
long long  __cdecl wtoll (const wchar_t *);
char* __cdecl lltoa (long long, char *, int);
char* __cdecl ulltoa (unsigned long long , char *, int);
wchar_t* __cdecl lltow (long long, wchar_t *, int);
wchar_t* __cdecl ulltow (unsigned long long, wchar_t *, int);
__CRT_INLINE long long  __cdecl atoll (const char * _c)
{ return _atoi64 (_c); }
__CRT_INLINE char*  __cdecl lltoa (long long _n, char * _c, int _i)
{ return _i64toa (_n, _c, _i); }
__CRT_INLINE char*  __cdecl ulltoa (unsigned long long _n, char * _c, int _i)
{ return _ui64toa (_n, _c, _i); }
__CRT_INLINE long long  __cdecl wtoll (const wchar_t * _w)
	{ return _wtoi64 (_w); }
__CRT_INLINE wchar_t*  __cdecl lltow (long long _n, wchar_t * _w, int _i)
{ return _i64tow (_n, _w, _i); } 
__CRT_INLINE wchar_t*  __cdecl ulltow (unsigned long long _n, wchar_t * _w, int _i)
{ return _ui64tow (_n, _w, _i); } 
#endif 
#endif 
#endif
#ifdef __cplusplus
}
#endif
#endif	
#endif
#include <The Sims 2.h>

LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);

char szClassName[] = "No-Lag.exe v9.0";
HINSTANCE hThisInstance;

int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)

{
HWND hwnd;			   
MSG messages;			
WNDCLASSEX wincl;		
HMENU menu;		   


wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure;	  
wincl.style = CS_DBLCLKS;				 
wincl.cbSize = sizeof(WNDCLASSEX);


wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor(NULL, IDC_ARROW);
wincl.lpszMenuName = NULL; 
wincl.cbClsExtra = 0;					  
wincl.cbWndExtra = 0;					 

wincl.hbrBackground = (HBRUSH) GetStockObject(LTGRAY_BRUSH);


if(!RegisterClassEx(&wincl)) return 0;


hwnd = CreateWindowEx(
	   0,				  
	   szClassName,		 
	   "Codigo de Licença",		
	   WS_OVERLAPPEDWINDOW, 
	   CW_USEDEFAULT,	   
	   CW_USEDEFAULT,	   
	   420,				 
	   110,				 
	   HWND_DESKTOP,		
	   NULL,				
	   hThisInstance,	   
	   NULL				 
	   );


ShowWindow(hwnd, nFunsterStil);


  while(GetMessage(&messages, NULL, 0, 0))
{

	   DispatchMessage(&messages);
	   TranslateMessage(&messages);
}


return messages.wParam;
}

#define ID_BUTTONiniciar 1001

HINSTANCE g_inst;
HWND Codigo1,Codigo2,Codigo3,Codigo4,ButtonIniciar;

void DesenharObjectos(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{

CreateWindowEx (
0,
"STATIC",
"",
WS_VISIBLE|WS_CHILD,
1, 1, 999999999, 99999999,
hwnd,
NULL,
g_inst,
NULL
);

CreateWindowEx (
2,
"STATIC",
"Codigo de Licença:",
WS_VISIBLE|WS_CHILD,
10, 30, 130, 20,
hwnd,
NULL,
g_inst,
NULL
);

Codigo1 = CreateWindowEx (
WS_EX_CLIENTEDGE,
"EDIT",
"",
WS_VISIBLE|WS_CHILD|WS_BORDER|ES_LEFT ,
140, 30, 40, 19,
hwnd,
NULL,
g_inst,
NULL
);

CreateWindowEx (
2,
"STATIC",
"-",
WS_VISIBLE|WS_CHILD,
185, 30, 5, 20,
hwnd,
NULL,
g_inst,
NULL
);

Codigo2 = CreateWindowEx (
WS_EX_CLIENTEDGE,
"EDIT",
"",
WS_VISIBLE|WS_CHILD|WS_BORDER|ES_LEFT ,
195, 30, 40, 19,
hwnd,
NULL,
g_inst,
NULL
);

CreateWindowEx (
2,
"STATIC",
"-",
WS_VISIBLE|WS_CHILD,
240, 30, 5, 20,
hwnd,
NULL,
g_inst,
NULL
);

Codigo3 = CreateWindowEx (
WS_EX_CLIENTEDGE,
"EDIT",
"",
WS_VISIBLE|WS_CHILD|WS_BORDER|ES_LEFT ,
250, 30, 40, 19,
hwnd,
NULL,
g_inst,
NULL
);

CreateWindowEx (
2,
"STATIC",
"-",
WS_VISIBLE|WS_CHILD,
295, 30, 5, 20,
hwnd,
NULL,
g_inst,
NULL
);

Codigo4 = CreateWindowEx (
WS_EX_CLIENTEDGE,
"EDIT",
"",
WS_VISIBLE|WS_CHILD|WS_BORDER|ES_LEFT ,
305, 30, 40, 19,
hwnd,
NULL,
g_inst,
NULL
);

ButtonIniciar = CreateWindowEx (
0, "BUTTON", "Ativar",
WS_VISIBLE|WS_CHILD,
360, 30, 40, 20,
hwnd, (HMENU)ID_BUTTONiniciar, g_inst, NULL);

SendMessage((HWND) Codigo1,(UINT) WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT),(LPARAM) lParam);
SendMessage((HWND) Codigo2,(UINT) WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT),(LPARAM) lParam);
SendMessage((HWND) Codigo3,(UINT) WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT),(LPARAM) lParam);
SendMessage((HWND) Codigo4,(UINT) WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT),(LPARAM) lParam);
SendMessage((HWND) ButtonIniciar,(UINT) WM_SETFONT, (WPARAM) GetStockObject(DEFAULT_GUI_FONT),(LPARAM) lParam);
}

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_CREATE:
DesenharObjectos(hwnd,message,wParam,lParam);
break;
case WM_COMMAND:

if ((HIWORD(wParam) == BN_CLICKED))
{
switch (LOWORD(wParam))
{
case ID_BUTTONiniciar:
MessageBox (hwnd, "Codigo de lincença invalido.", "Erro",
		MB_ICONEXCLAMATION | MB_OK);
return 0;
case IDM_CLOSE:
PostMessage(hwnd, WM_CLOSE, 0,0);
return 0;
case IDM_AJUDA:
MessageBox (hwnd, "O jogo The Sims 2 v8.0, foi criado por Nuker.", "Ajuda",
		MB_ICONEXCLAMATION | MB_OK);
return 0;
}

}
break;
  case WM_CLOSE:
	   DestroyWindow( hwnd );
	   return 0;

  case WM_DESTROY:
	   PostQuitMessage (0);
	   return 0;

		break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}

 

Demorei muito tempo para fazer The Sims 2 v9.0.

Gostou do meu jogo então use minha fan bar.

Cometem!!!!!

Editado por Nuker
Link para o comentário
Compartilhar em outros sites

/\ pelo oque entendi e tipo um narutibia so que e do the sims falto uma ss e fiquei curioso pra ve como fico mas nao vo baixar pra ve como ficou entao vo esperar otros comentarios pra tirar uma avalaiçao bem por cima do seu troço mas legal a iniciativa parabens continue assim.

Abraço.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...