Search:

Type: Posts; User: CodeBlock

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    YUP, It does now ... lol :p
  2. Replies
    29
    Views
    39,447

    Re: VB function to round to the nearest integer

    :eek2: Oops, I should not have played with an Administrator :p
  3. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Also, did u take a look at my DLL?? My DLL has the following WndProc Code:

    Public Function SetWndProcHook(hWndVB As Long, dwThreadId As Long) As Boolean
    If IsHooked Then
    ...
  4. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    LOL, You got to be kidding me... I minimized, maximized, Type some message, Selected them through mouse, and did so many stuff but Notepad was stubborn that it wont crash, and the VB DLL was stubborn...
  5. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Ok, SetWndProcHook Works fine, and notepad stils stays on and removes hook correctly, BUT WndProc inside the DLL was never called :(

    What might be the reason?

    This is my DLL code
  6. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Hey, moeur!! I am not a n00b.. lol.. have n't u still understood? I was just pointing out how Visual Basic is reacting differently... When u have a missing reference ( i know that u forgot to remove...
  7. Replies
    29
    Views
    39,447

    Re: VB function to round to the nearest integer

    And the VB equivalent to CEIL is just to divide the number or variable by 1 with the Backslash operator "\" The difference between backslash and forwardslash is that the backslash divides the number...
  8. Replies
    29
    Views
    39,447

    Re: VB function to round to the nearest integer

    hehe, VB itself has its native Round function why re-invent the same wheel?


    Call Round(Number, NumDigitsAfterDecimal)
  9. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Ahh, Your EXE doesnot even compile.. :(

    Says, Cannot find project or library at that line of code.. and opens up the Reference dialog pointing to a MISSING reference: 'MISSING: Debug Object for...
  10. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Ahh, Man! Everyone knows that if u need to extract the pointer u need to change your declaration as .. , ByVal lpvReserved As Long)

    But the point is we just need the hInstDLL which can be declared...
  11. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    1. Did you use my Linker Code? Coz i rewrote the whole code!

    2. Whats your DLLMain Syntax? Did it look like this?


    Public Function DLLMain(hInst As Long, ByVal fdwReason As Long, lpvReserved...
  12. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    About questions on this line:

    CmdLine = Replace(CmdLine, "/BASE:0x400000", "/BASE:0x10000000")


    I have told you that the base address specification of an EXE is 0x400000 which means...
  13. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Sorry, for the delay, we got to adjust with our Global Zone Timings

    And before that.. please gimme a source in VC++ for me to test my VB DLL ... As in an equivalent code in VC++ for this:
    ...
  14. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    Public hInstance As Long ' One of the useful infos we get from DllEntry point

    Public ret As Long

    Public Const DLL_PROCESS_DETACH = 0
    Public Const DLL_PROCESS_ATTACH = 1
    Public Const...
  15. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    OK, LOL,

    Even i am confused now..



    The above point is right... But what if a predefined routine Microsoft made in the name of "DLLMain" hehe.. sounds kinky :p

    I will be back with more...
  16. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    EXEs have a Base Address specification of 0x400000
    and DLLs 0x10000000

    I learned this by comparing two linking: one an EXE and the other a DLL ... so it is basically implementing the 3rd point.....
  17. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    A basic Win32DLL code with just one EXPORT method GethInstance



    Public hInstance As Long ' One of the useful infos we get from DllEntry point

    Public Const DLL_PROCESS_DETACH = 0
    Public...
  18. Replies
    97
    Views
    17,448

    Re: Check if Application is Running Without Timer

    You were almost there moeur, but u gave up at the last moment.. Whereas i continued researching and found the click!

    Did u ever doubted to change this param just to see what could happen?

    ...
  19. Replies
    43
    Views
    2,376

    Re: app working with another app

    Excellent! :)

    After studying the LINKer documentation from microsoft, i tried something, which really CLICKED!

    This is the one:...
  20. Replies
    43
    Views
    2,376

    Re: app working with another app

    Wonder how u knew that :eek2:

    I used to make all my Win32DLLs (not ActiveX Dlls buddy.. :) ) with that linker trick. It has never failed for me.. hmm... anyway.. let me try!
  21. Replies
    43
    Views
    2,376

    Re: app working with another app

    LOLz, You CAN actually create a Win32DLL in Visual Basic 6! Why Not?
  22. Replies
    38
    Views
    2,230

    Re: UserControl and Hooks

    What do u mean by "no" ?? And whats the reason u changed that line to Nothing??? :eek2: - do u like to get errors? :p
  23. Replies
    43
    Views
    2,376

    Re: app working with another app

    Code by benmartin101

    <MarshalAs(UnmanagedType.FunctionPtr)> _
    Private addrProc As pMyWindowProcDel


    lol, because, the above code confirms it as VB.Net
  24. Replies
    38
    Views
    2,230

    Re: UserControl and Hooks

    Wow, thats quite interesting.. but a known fact... I never thought he is going to link up his psuedo code with his subclassing :eek2: (Andersson, a personal question - Is there anyway to SubClass a...
  25. Replies
    38
    Views
    2,230

    Re: UserControl and Hooks

    Ok, I have some kinda solution to ur psuedo code in your format itself :p



    '******************--Module1--***********************
    Dim UC1 AS UserControl1

    Public Sub Set_TheUserControl(SetUC...
  26. Replies
    38
    Views
    2,230

    Re: UserControl and Hooks

    For a VB *ONLY* Programmer, a C++ program can be a psuedo code :bigyello:
    But how did all you experts out there => mouer and Andersson miss this quote :p

    Ok g_y, :p

    Coming to your point!...
  27. Replies
    43
    Views
    2,376

    Re: app working with another app

    But, his code is in VB.Net not VB.

    Instead of

    FindWindow("Notepad", "Untitled - Notepad")


    try this
  28. Re: Make a hyperlink open in a default browser?

    Y do u need a dir??


    Call ShellExecute(0, "open", "http://www.vbforums.com/", vbNullString, vbNullString, vbMaximizedFocus)


    It works even on Win9x! Try it, Good Luck! :thumb:

    Regards...
  29. Thread: Screensaver

    by CodeBlock
    Replies
    3
    Views
    610

    Re: Screensaver

    Put this code in the General Declarations:

    Const WM_SYSCOMMAND = &H112&
    Const SC_SCREENSAVE = &HF140&

    Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
    (ByVal hWnd As Long,...
  30. Replies
    61
    Views
    60,898

    Re: [Guide] Winsock - Chat Application

    A Good Muliti Connection Chat App should have some strict rules:

    Server Rules:
    1. Must Run only *ONCE* and listen at a specific port
    2. Must Accept connections from clients by transfering the...
  31. Thread: Parsing

    by CodeBlock
    Replies
    10
    Views
    852

    Re: Parsing

    Sure,

    The basic idea is to get one by one and put in a collection or an array (a collection is better)

    As u can see:

    GetInnerText("<table border=0><tr><td>Cell Contents</td></tr></table>")...
  32. Thread: Parsing

    by CodeBlock
    Replies
    10
    Views
    852

    Re: Parsing

    Ok, After spending some 10 minutes of coding i came up with the following. Pleas e go through it carefully. If i have time i may come back with a class that fulfills all your needs :wave:

    Module...
  33. Re: Making my 2 person chat program to multi person chat?

    Yes there is.

    To send a message to everone:

    [Highlight=VB]
    Winsock.SendData "MSGALL UserName " & Message
    [Highlight=VB]

    Please research on my code, you will know.. ;)
  34. Re: Making my 2 person chat program to multi person chat?

    Please understand that "winsock" - your listen socket will *NEVER* receive any incoming data because it never accepts the Clients connections on its OWN. Rather, the client connections are accected...
  35. Re: Making my 2 person chat program to multi person chat?

    That means u are supposed to create a Winsock Array. To create a Winsock array, change the Index Property of the wskClients Control to 0.

    Thats it!

    HTH
    Neo
  36. Replies
    8
    Views
    1,079

    Re: ActiveX component can't create Object?

    Yes. You cannot use as:

    CreateObject("Excel.Worksheet")

    Only CreateObject("Excel.Application") is allowed.

    But:
  37. Re: Making my 2 person chat program to multi person chat?

    UDP is not a Transmission Protocol, rather a Protocol that has no connection created at either side. (UDP - Connectionless Protocol for DataGrams)

    If you scroll down more in this post you can see...
  38. Replies
    36
    Views
    2,131

    Re: Dividing without dividing

    Hi there.

    You have not understood how "/" and "\" differ in VB.

    Here is the differenciation:


    a = 11 / 2
    ' a = 5.5
  39. Replies
    68
    Views
    2,986

    Re: Old subject, new problem

    Kinda Interesting!

    When u have Winsock Messages, why are you breaking your head for APIs and Subclassing. (You got your solution already).

    One thing i can guess is that you have downloaded some...
  40. Replies
    3
    Views
    647

    Re: How to get the user's IP address

    Yes, even i did.. hehe

    This is the one:

    http://www.vbforums.com/showthread.php?t=338329


    HTH
    Neo
Results 1 to 40 of 87
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width