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ú

Temas - ntaryl

#1
Good evening
First want to say a Big Thanks to my friend Rookie Learn to Fly for the amazng example with ThreadPool and for the Help on QQ .Yukun for the beautiful multithread Console example .


My next Step is to Create Multithread with Forms and use Events .Like Example with Winsocks Array
Thanks for the time

http://www.mediafire.com/?h3krt1mfrbf02c2
P.s sorry for my English
#2
Good morning
I try to make a Multithread socket .I pass the AcceptHandler in a new thread and Succesfully Workthread Start .
The socket By Default is Blocking mode
In blocking Mode Create Threads and can Send data to the Last Socket  Successfully
If go to Set The Socket in NoBlocking Mode

Dim NonBlock As Long
NonBlock = 1
If ioctlsocket (nRet, FIONBIO, NonBlock) = SOCKET_ERROR Then
WriteLog "Socket Cannot Set NoBlocking"
End If

My project Run Succesfully Create the First thread and The Second(ListenThread).When Client Connect start the ClientThread(WorkThread)and Crash .
My Workthread


Public Function Workthread (ByVal Param As Long) As Long
Const MAX_BUFFER_LENGTH As Long = 8192 'Normal = 8192' MAX = 65536
Dim Buffa (1 To MAX_BUFFER_LENGTH) As Byte
Dim dBuff As String
Dim ReadBuff As String
Dim sRec As Long
tID = GetCurrentThreadId
Add_DataClientStore ClientCount, nRet, tID''/ / Store Data in a public type (sockid, threadid)
WriteLog "New Client Arrive with Socket ID" & nRet & "On Thread ID:" & tID''/ / write data to listbox
Do''While True

ClientStore (ClientCount). Sock_ID = nRet
sRec = recv (ClientStore (ClientCount). Sock_ID, Buffa (1), MAX_BUFFER_LENGTH, 0 &)
ReadBuff = StrConv (Buffa, vbUnicode)
[b]dBuff = Left $ (ReadBuff, sRec) [/b]
WriteLog "Data Received.:" & DBuff & "Socket ID ..." & ClientStore (ClientCount). Sock_ID
End If
Loop
End Function


The line to Crash is
dBuff = Left$(ReadBuff, sRec)
If Someone know anything
Thanks for the time

p.s Attach a ScreenShot with 505 Threads
2:The Main thread and the Listenthread
503 :Clients
cpu usage =100%

This is the Error 
http://i54.tinypic.com/11qh94w.jpg
thanks for the time 
Good  night 
#3
Good afternoon 
I work in a  example with threads  .
Search around to find a small working example with Berkeley sockets.
If someone  have something  to  help me 
Thanks for the time 
#4
Good  evening   
I use a picture to load a gif from a dll .
When  add a picture in Imagelist use <<Call Form1.img.ListImages.Add(, , Form1.Flag.Picture)>>
want to Load severals gifs in the Imagelist
How can call the Items  from the Imagelist in ListView ?
thanks for the time  .
No want to add All together  .....

Ps This  project use GetLocaleInfo  to find what Country u are from and add the flag(gif)in the ListView.


#5
Programación Visual Basic / Resourse From Dll(gif)
25 Diciembre 2010, 12:52 PM
Good  morning   

I play a litle with Resource File last night
Add a resource(gif) in a small project and is easy to load it from there in the form and show in listview.
Try to add the resourse(gif)in Dll and  call it from there but i cant 
Please can someone   help me with this   .or give me some tips 

thanks for the time
#6
Programación Visual Basic / how to refresh the ping
18 Noviembre 2010, 01:32 AM
Good  evening   
Lot  of  rain  outside  and  sit here and  play  a  litle   
i  make a  small example with alistview  and use  a ping  module  to ping  any item(ip)from the list 
My  question is  how  to  make  the item from(ping)refresh it 
when  add  a  new ip  and  try  to ping again the first ping  items be  the same  with the last   .
thanks  for  the time   
have a good  night 

p.s  no  want to  ping  all  time  .any ideas  welcome   
#7
Good  morning
I play with sandsprite plugin example a litle 
In main Form(host  project) put a winsock .How can communicate  the plugin(test.dll)with  the  host ?
When plugin load can  use the winsock like the host...
i try to explain  clearly   
thanks for the time
#8
Good  morning   
Weeks ago  Cobein  make a  very  nice and  stable  multithreading  example   ...
I  try  to  make a  small  multithread  socket  example with  this  .
My   knowliedge  in  this  part  is  almost  0 and  of  course  cant  do  it   ..
Someone  have experiense  in  this  language  or other  can  make a  small  example   
i  think  is  very  helpful  .thanks  for the time..
Want  to see a  multithread  socket  example  in  vbasic 

p.s  havea  good  time  to everybody   


#9
I   found this  amazing  example  and  study  it 
Have  to  say  is  perfect .
Deside to play a  litle  with Multithread .But my  knowledge not  so top  and  need  some help .
I know need to  create  New Thread  when Accept New Connection   .
Someone  can  help
Have a good  time 



p.sLeandro  send  u pm come on msn   



#10
Good  evening 
usualy  work  with  csocketmaster 
But last  days start to make a  multithread  example .For  this use  the  socket api(vbip)very nice example  with  api    .My  question  is 
In Csocketmaster  or  winsock.ocx  use  2  parameters  to connect   (remoteip-port)
But in  socketapi  need   2 parameters(sockethandle-remoteip-port)
i  can  understand  .
Make  me  so  stupid 
Someone  can  point  me  in  correct direction or  the  way to  connect  winsock.ocx  with  socket  api 
thanks  for the time 
   p.s  try to  explain  with  the  better  way   

#11
Good evening 
We no multithread is  not stable  in VB .But i  found a nice  Activex  for this Job  .
Want someone  to explain  about the  thread  in  DataArrival  .
The  Socket listen  For  every  Client create a new thread .
this  is  correct   ?
Thanks for the  time 
P.s any  tutorial to  read about this 

#12
Good evening  
I play with a client server application  .
I  know is dificult to make the Server to use  more  than one thread(connection)at the same time .
I mean when i have 2 client connect in the Server . The First execute something and  the Second  Client  make  something  else  in the same time  
If  someone  can explain  the  logic  behind Multithread  or any  book  for  help  

P.s Saw Shark  have  Multithread  ..
   Sorry for my English  
#13
Good  afternoon 
I work in a small example with a listbiew.Want every time when a  new item come in the listView then start a duration time  .
In google find  a nice function for the duration  time  and  try to make a small  example  .When start with the first Item everything  is  ok  but  when  put  another  not  start from Zero but  take the same time from the  first   
someone  can help  me 
Thanks for the time
attach  the  code 
#14
Good  morning   
I have a listview in a form
Want to put in  listview  item  a counter and  count the  elapse time  .For example
when few data  arrive  in listview  then  start the  counter and  show me the  elapse time (12 sec)
thanks for the time   
have a good  time

#15
Good evening   
Play with a small client server application .When listen for connections all my example clients connect succesfuly  on Server and all  data  arrive  on the list.
But  when connect 5 clients and close the number (3 client)  The  socket from  3 connection still open i think .Because if try to load another one client the new client take the number 6  ..
How  can make this  if the  client 3 close  then the  new client  take the number 3 again ?
sorry  for my english 
Have a good  time  and  talk tommorow
#16
Good  evening 
I  try  this time  to load a res wav file from  dll   .but  no luck   
use this  example 
but  i dont  know  what the  wrong 
i successed to load from main project  and after try from dll  but something is wrong   
someone  can point me to  the correct way   


#17
Good  morning 
I  work with a small project client server (multiconnection)use(evil inside example)
Complete to have maximum connections (10) and everything go fine 
if someone from 10 clients  close the socket stay  open   
want to refresh the list   and the  clients socket .
For example if the socket number 3 close  the number 4 take the  nymber 3 possition  until number 10 go to number 9 and  stay  one  socket  open  for connections   
Iam sorry  for my english   
try to  explain  it   
have a good  night 

#18
Programación Visual Basic / Chameleon
25 Noviembre 2009, 18:55 PM
Good  afternoon 
Deside and  del  my Skin project  and  want to  use something else.
I  have the Chameleon button and want to know  there is also and  for the other controls (checkbox,option) etc   
thanks  for the time 
#19
Programación Visual Basic / Imagelist and Listview
24 Noviembre 2009, 18:41 PM
Good  afternoon   
Want to  know  if  is  possible  to add  second  imagelist  in  a  listview   ?
I  know  to  use one .
please if  someone  know  point  me to  correct way   
thanks 

#20
Good  afternoon
This  time  work with activeskin and  a small example.
When load the skin  in the first Form everything  go  fine  .When open nextform from menu sometimes the skin not load  and sometimes load sucessfuly
If  load the  Second form and  the  skin  not  load u can close the  form and  open it again  and  everything  is  ok   
someone  have  the  same  problem  ?
thanks  for the time
#21
Programación Visual Basic / Spalsh Hourglass
14 Junio 2009, 16:47 PM
Good afternoon   
Want to  find how to make a small splash with hourglass 
Take this idea from a programm when  load  some  data   have a progresss and  the  hourglass  turning  round 
Please  if  someone  have  something  to help  me 
thanks  for the time 
#22
Good  afternoon
Try to hook the FindNextFileW to hide a filke from Explorer.
Hook sucessfully .
Try to build the Callback but not enough luck for it
There is someone to give me some help to find the way ?
Thanks for the time


Public Function NowFindnextfile_call(ByVal hFindFile As Long, pFindFileData As WIN32_FIND_DATA) As Long
If (pFindFileData.cFileName) = "TEST.EXE" Then
NowFindnextfile_call = -1
End If
End Function

in my screenshot hook the W and A also
http://img168.imageshack.us/img168/2921/screen0wa.jpg


p.s Someone point me how to solve this 
thanks guys   




#23
Programación Visual Basic / Detect Jmp
16 Enero 2009, 19:07 PM
Good  afternoon   

want to detect if in adress there  is  the Jmp   ?
please  any  idea how to solve  it   
#24
Good  evening 
Maby  my question is stupid .
want to  know  is  possible  someone build a driver in  visual basic  ?
i know u can build driver in any other language(c++,asm) but  not  in vbasic 
and of course u can make the driver loader in  vbasic 
I thing EON told us about this  is possible !
Please  someone  to know  make  clear this question 
thanks   

#25
Programación Visual Basic / Process32next Callback
23 Septiembre 2008, 23:09 PM
Good  evening 

Time now try to make a callback function for process32next function
Want to hook this function and i dont know how implement the Callback to Hide a file with name "test.exe"


Public Function Process32Next_Callback(ByVal hSnapshot As Long, ByRef lppe As PROCESSENTRY32) As Long
Dim Ret_val As Long
If ippe.szExeFile = "test.exe" Then
Ret_val = Process32Next(hSnapshot, lppe)
End If
Process32Next_Callback = Ret_val
end function




But  not work  i  cant find my mistake 
thanks 


P.s  EON  u  can help me
#26
Programación Visual Basic / no-ip checking
13 Septiembre 2008, 20:06 PM
Good  evening   
Need some  help 
How  can  i  test  my no-ip (ten-no-ip.biz) in  port 80 if  it  work  ?
Hope  to  explain  correct  my question 
thanks   
#27
Programación Visual Basic / Detect Scrolling
2 Septiembre 2008, 01:20 AM
Good  morning 
I  have a  form and one textbox  .is Muktiline and  have a scrollbar  vertical 
please want to know how  detect when the  scroll  go to the  bottom  ?
When move the scroll untill the end have a popup!
thanks for the time 
#28
Good  morning Guys 
Iam back   hehehe 
Want to  find any  info about this api how work.
Also  how ride this api to  make invisible a specific executable in task manager 
thanks   
 
#29
Good  afternoon 
I go   and install the compiller controller but  when go to hook  the compilation  have error .
Want to test the  codein controller   
please want to  know  how  i will  use  it   ?
some  tips or how  to   ?
thanks  for the time   
#31
Hello 
First of all Big thanks to Ebartsoft and Rm_code 
for this  code 
yesterday  iam  very  boring and play with this  code 
and  make  this 
http://rapidshare.com/files/128736414/My-Api-Hooking.rar.html
it  is  very  simple but show the way  how use the trampoline  .
Now  wanna to convert this code and put it into a dll .and hook from there 


P.s Cobein  give me a hand to  make  it   
thanks 


#32
Hello 
Upload something  interest   
in thew example  usde a dll  injector (not  mine)
find  it outside 
to  compile  dll  use vb Advance 
http://rapidshare.com/files/98515021/injection.rar.html
hope help
#33
Good  afternoon 
Big  sorry  i  dont know  spanish but  greek and english 
Iam a coder in  vbasic 6.0 and  this time  play around with api hooking 
I able to hook api localy  but  i cant do it 100% with dll  injection 
RM_code have a  good example (code injection and remote api hooking)
want to use dll injection to  do this .
please  if  someone  know  something to  help  me   
welcome   
thanks  a  lot