elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Únete al Grupo Steam elhacker.NET


  Mostrar Mensajes
Páginas: 1 ... 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 [337] 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 ... 381
3361  Programación / ASM / Re: Funcion GetPrivatePorfileString en: 29 Diciembre 2009, 22:46 pm
Primero y principal: ¿Consultaste la MSDN? ¿Depuraste el programa? Y si ... realmente es una busqueda corta para hacer ...
3362  Programación / ASM / Re: Que Software uso para programar en ASM? en: 29 Diciembre 2009, 00:43 am
De nadas  ::)
3363  Programación / ASM / Re: Que Software uso para programar en ASM? en: 29 Diciembre 2009, 00:31 am
¿Alguien me puede explicar eso?  :o

¿Qué sentido tiene que prohiban escribir software para otros sistemas operativos distintos de los de Microsoft si en principio es un software diseñado para funciona unicamente en Windows...? o al menos eso es lo que entendí...

Es por si queres escribir tu propio S.O., ejemplo el clon ReactOS, y hacer programra para el mismo con MASM.

Y lo último... ¿no se puede utilizar para crear software de código abierto en Windows?  :o

Se refiere al codigo del propio paquete, directamente del autor del mismo: What you write is actually your own so any source code you write is yours to publish as you choose but the content of the MASM32 project is protected by copyright so it cannot be stolen by other licencing systems.

"If you want to write freeware and supply your source code with it, thats fine, MASM32 protects your right to do this at no cost, no royalties and no forced code publication and you can sell your apps that use it, give them away or even eat them if you can find out how to do it but it cannot be stolen by competitive parasitic licencing systems."


http://www.masm32.com/board/index.php?topic=10663.0
3364  Programación / ASM / Re: Que Software uso para programar en ASM? en: 29 Diciembre 2009, 00:05 am
Por cierto para fabricar GUI en windows es muy bueno el RADASM :P

Aclarar que RadASM es un: "Win32 assembly IDE for masm/tasm/fasm/nasm/goasm/hla".
3365  Programación / ASM / Re: Que Software uso para programar en ASM? en: 28 Diciembre 2009, 23:37 pm
MASM: la plataforma que me interesa es Windows (x86 y x64) y en la misma es el ensamblador con mas usuarios, mas soporte, mas literatura (tutoriales, libros, etc.), mas codigo fuente, mas ejemplos y mejor integracion con las demas herramientas de Microsoft. Ademas tiene años de desarrollo bajo sus espaldas y cientos de programadores que lo dominan.
No me quiero olvidar del paquete MASM32 que, tambien de larga data, junto con los tutoriales de Iczelion son la mejor manera de aprender a manejarse dentro de Windows.
En definitiva MASM como su nombre lo indica es un MACRO ensamblador muy potente, por eso lo recomiendo, con el cual se puede desarrollar multitud de proyectos que van desde aplicaciones de consola o GUI de modo Usuario pasando por servicios de Windows hasta llegar a modulos de modo Kernel.
3366  Programación / ASM / Re: Creacion de controles Personalizados? (ASM 32 Bits) en: 27 Diciembre 2009, 21:57 pm
eso es asm? parece C++ xD
O quizas parece mi in-experiencia.

Es C ... ya podrias haber puesto algun ejemplo del tema en assembly  :rolleyes:
3367  Programación / ASM / Re: Modificar Controles de otras ventanas (ASM) en: 27 Diciembre 2009, 18:26 pm
GetParent.

Cita de: MSDN
The GetParent function retrieves a handle to the specified window's parent or owner.
3368  Programación / ASM / Re: Modificar Controles de otras ventanas (ASM) en: 27 Diciembre 2009, 18:01 pm
EnumWindows/EnumChildWindows, GetParent,  GetWindowInfo (para la clase), GetWindowText y SendMessage para casi todo  ;D
3369  Programación / ASM / Re: Que Software uso para programar en ASM? en: 26 Diciembre 2009, 15:05 pm
este foro esta lleno de respuestas sobre ASM pero no hay un enlace que diga que y donde descargar el mejor soft para empezar con esto.

 :silbar:

Entry point: MASM32.
3370  Programación / ASM / Re: Creacion de controles Personalizados? (ASM 32 Bits) en: 25 Diciembre 2009, 20:15 pm
Si, owner drawn, de la MSDN (no lo encuentre on-line  :():

Using Owner Drawn Buttons
The parent window of an owner-drawn button typically responds to at least three messages for the button:

WM_INITDIALOG
WM_COMMAND
WM_DRAWITEM
When you must paint an owner-drawn button, the system sends the parent window a WM_DRAWITEM message whose lParam parameter is a pointer to a DRAWITEMSTRUCT structure. Use this structure with all owner-drawn controls to provide the application with the information it requires to paint the control. The itemAction and itemState members of the DRAWITEMSTRUCT structure define how to paint an owner-drawn button.

The following example shows how to process WM_INITDIALOG, WM_DRAWITEM, and WM_COMMAND messages for owner-drawn buttons. This example demonstrates how to draw one of two bitmaps for a control, depending on whether the control is selected. You would typically use the wParam parameter of the WM_DRAWITEM message to identify the control; in this example, only one control is assumed.

Código
  1. BOOL CALLBACK OwnDrawProc(HWND hDlg, UINT message, WPARAM wParam,
  2.                          LPARAM lParam)
  3. {
  4.    HDC hdcMem;
  5.    LPDRAWITEMSTRUCT lpdis;
  6.  
  7.    switch (message)
  8.    {
  9.        case WM_INITDIALOG:
  10.  
  11.            // hinst, hbm1 and hbm2 are defined globally.
  12.            hbm1 = LoadBitmap((HANDLE) hinst, "OwnBit1");
  13.            hbm2 = LoadBitmap((HANDLE) hinst, "OwnBit2");
  14.            return TRUE;
  15.  
  16.        case WM_DRAWITEM:
  17.            lpdis = (LPDRAWITEMSTRUCT) lParam;
  18.            hdcMem = CreateCompatibleDC(lpdis->hDC);
  19.  
  20.            if (lpdis->itemState & ODS_SELECTED)  // if selected
  21.                SelectObject(hdcMem, hbm2);
  22.            else
  23.                SelectObject(hdcMem, hbm1);
  24.  
  25.            // Destination
  26.            StretchBlt(
  27.                lpdis->hDC,         // destination DC
  28.                lpdis->rcItem.left, // x upper left
  29.                lpdis->rcItem.top,  // y upper left
  30.  
  31.                // The next two lines specify the width and
  32.                // height.
  33.                lpdis->rcItem.right - lpdis->rcItem.left,
  34.                lpdis->rcItem.bottom - lpdis->rcItem.top,
  35.                hdcMem,    // source device context
  36.                0, 0,      // x and y upper left
  37.                32,        // source bitmap width
  38.                32,        // source bitmap height
  39.                SRCCOPY);  // raster operation
  40.  
  41.            DeleteDC(hdcMem);
  42.            return TRUE;
  43.  
  44.        case WM_COMMAND:
  45.            if (wParam == IDOK
  46.                || wParam == IDCANCEL)
  47.            {
  48.                EndDialog(hDlg, TRUE);
  49.                return TRUE;
  50.            }
  51.            if (HIWORD(wParam) == BN_CLICKED)
  52.            {
  53.                switch (LOWORD(wParam))
  54.                {
  55.                    case IDC_OWNERDRAW:
  56.  
  57.                        // application-defined processing
  58.  
  59.                        break;
  60.                }
  61.            }
  62.            break;
  63.  
  64.        case WM_DESTROY:
  65.            DeleteObject(hbm1);  // delete bitmaps
  66.            DeleteObject(hbm2);
  67.  
  68.            break;
  69.  
  70.    }
  71.    return FALSE;
  72.        UNREFERENCED_PARAMETER(lParam);
  73. }
Páginas: 1 ... 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 [337] 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 ... 381
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines