954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Scktcomp not work!!

Hello Guys,

i have problem in my project, i'm using WIN API when i make the CreatewindowEx like this:

Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,0,0,80,80,0,0,Instancia,nil);

the socket dont work [IMG]http://www.devarchive.com/forum/images/smiles/icon_exclaim.gif[/IMG]

and if make it like this:
Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,1,1,80,80,1,1,Instancia,nil);

the socket work and everything ok! so whats the problem with it?? i understood the socket work if the handle return null if it's not the socket dont work!! can i have help pls ... and sorry for my bad language [IMG]http://www.devarchive.com/forum/images/smiles/icon_sad.gif[/IMG]

HellGuard
Newbie Poster
1 post since May 2006
Reputation Points: 10
Solved Threads: 0
 

Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,0,0,80,80,0,0,Instancia,nil); the socket dont work [IMG]http://www.devarchive.com/forum/images/smiles/icon_exclaim.gif[/IMG]

and if make it like this: Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,1,1,80,80,1,1,Instancia,nil);

the socket work and everything ok! so whats the problem with it??

Take a look on the help for details. But, the problem is probably thehWndParent value. In the first you passed 0 and at second 1. I think that You must pass the main window handle to this param. hMenu could be null (0). (See below)
Handle:= CreateWindowEx(WS_EX_TOOLWINDOW,'Classname','Title',WS_SYSMENU or WS_VISIBLE,0,0,80,80,hWndParent,hMenu,Instancia,nil);

p.s. sorry for my bad english.

Micheus
Junior Poster in Training
72 posts since Jun 2006
Reputation Points: 10
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You