Actually i found something that should be working but i'm getting a error "Dll call failed to execute"
I am using GetWindowLong and Specifying the handle to the db window and then using GWL_HINSTANCE parameter to return the instnance but it is coming up with that error.
heres the code
Sync on
Sync rate 0
set window on
User32 = 1
Load dll "User32.dll",User32
hWnd = Call dll(1,"GetActiveWindow")
hInstance = Call dll(1,"GetWindowLong", hWnd, -6)
Icon = Call dll(1,"LoadImage",hInstance, "Icon.ico", 1, NULL, NULL, 64|16 )
Call dll 1,"SetClassLong",hWnd, -14, Icon
Do
sync
loop
I will try your ideas though.
Latch:
When you say "String pointer" do you mean in ascii form in a memblock? i'm geussing since thats the only way to get a pointer to anything in db lol.
Edit
What dll is GetModuleFileName and GetModuleHandle in? i tried it in user32 and it's saying it doesn't exist?
New Site! Check it out \/