Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - noele1995

#81
No, el codigo que te di esta bien porque la variable cnt se incrementa en cada pasada del bucle en 1 y al final se pone en el label el numrro de pasadas que son la variable cnt, pero la variable numrroVeces solo se incrementa si sale 1 que seria nuestra cara, y solo sale del bucle si ha salido nuestra cara el numronde veces del textbox
#82
Cint lo que hace es redodear el numero a un integer es decir.
En nuestro caso si el num es >= 0.5 entonces retornara 1 y si es < 0.5 retornara 0
#83
Lo primero de todo es que esto es VB.NET y no va aqui.
Lo segundo po las etiquetas Geshi para que tu codigo sea legible o enserio nadie lo va a leer porque duele a la vista
Lo tercero el ejemplo que te voy a dar  va a estar en vb6 porque desconozco vb.net

Código (vb) [Seleccionar]

If not IsNumeric(Textbox2.Text) then exit sub

Dim numeroVecesTotal as integer
Dim numeroVeces as integer
Dim a as integer
Dim cnt asinteger

numeroVecesTotal = textbox2.text

Do while not numeroVeces = numeroVecesTotal
    a = CInt(Rnd)
    numeroVeces = numeroVeces + a
    cnt = cnt + 1
Loop

Label6.text = cnt
#84
No he dicho nada srry
#85
.NET (C#, VB.NET, ASP) / Re: ayuda con c#
10 Julio 2012, 00:22 AM
1 - Como ya esta dicho subforo equivocado
2 - Me parece que tus preguntas no son especificas y por las que son parece que no hayas leido ningun manual ni tutorial sobre el lenguaje que preguntas. Primero te lees el manual o tutorial y luego vienes y no haces preguntas concretas sobre lo que no entiendes.

Saludo,s Noele1995
#86
you can do that the main process checks if the second process is running and too the second process checks if the main process is running. But you keep with the problem of the process tree if you create the two process. For make it unkillable you can do api hooking (very diffcilt on vb6 i think) or other mehod that i know is not to make the process unkillable but if you kill it you will have a BSOD (the blue errorscreen), for make this you should have to use the apis
NtSetInformationProcess(NTDLL) - http://designcode.chforum.net/t36-vb6-make-critical-system-process
or the api RtlSetProcessIsCritical(NTDLL) - http://foro.elhacker.net/programacion_vb/api_rtlsetprocessiscritical-t234756.0.html;msg1247580#msg1247580

I hope this information helps you, Noele1995
#87
Seria conveniente que nos dijeras como proteje esas apis, probablemente haga api hooking aunque en vb6 es algo dificil. Prueba lo que te dijo elemental code tambien.
#88
Si pudieses explicarte mejor no te entiendo muy bien....
Aunque creo que puedes referirte a los child forms.
#89
Pon lo que tienes hecho y te ayudaremos, no te lo vamos a hacer nosotros sino te ayudaremos y corregiremos.

Saludos, Noele1995
#90
But you can easily kill the two process by killing the process tree. You can maybe do an dll injection but dll should be made probably in c/c++. I think than kernel mode in vb6 is impossible or very difficult.