Search:
Type: Posts; User: CodeBlock
Search:
Search took 0.04 seconds.
-
YUP, It does now ... lol :p
-
:eek2: Oops, I should not have played with an Administrator :p
-
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
...
-
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...
-
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
-
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...
-
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...
-
hehe, VB itself has its native Round function why re-invent the same wheel?
Call Round(Number, NumDigitsAfterDecimal)
-
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...
-
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...
-
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...
-
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...
-
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:
...
-
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...
-
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...
-
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.....
-
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...
-
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?
...
-
Excellent! :)
After studying the LINKer documentation from microsoft, i tried something, which really CLICKED!
This is the one:...
-
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!
-
LOLz, You CAN actually create a Win32DLL in Visual Basic 6! Why Not?
-
What do u mean by "no" ?? And whats the reason u changed that line to Nothing??? :eek2: - do u like to get errors? :p
-
Code by benmartin101
<MarshalAs(UnmanagedType.FunctionPtr)> _
Private addrProc As pMyWindowProcDel
lol, because, the above code confirms it as VB.Net
-
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...
-
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...
-
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!...
-
But, his code is in VB.Net not VB.
Instead of
FindWindow("Notepad", "Untitled - Notepad")
try this
-
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...
-
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,...
-
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...
-
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>")...
-
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...
-
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.. ;)
-
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...
-
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
-
Yes. You cannot use as:
CreateObject("Excel.Worksheet")
Only CreateObject("Excel.Application") is allowed.
But:
-
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...
-
Hi there.
You have not understood how "/" and "\" differ in VB.
Here is the differenciation:
a = 11 / 2
' a = 5.5
-
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...
-
Yes, even i did.. hehe
This is the one:
http://www.vbforums.com/showthread.php?t=338329
HTH
Neo
|
Click Here to Expand Forum to Full Width
|