Hello KetilO.
I am building the Grid Control with name GenericGrid,as i have told you.
For now,the Control appear in its parent window and simply we can change the number of rows,the number of cols and the color of grid,by sending messages to it.
To create the control,you use CreateWindowEx with class name "GENERIC_GRID".
Tomorrow,i 'll send the Dll.
I would like from you to test the Control in Radasm to see if it works as Common controls in ToolBox of Radasm.
Regards,
Manos.
I am building the Grid Control with name GenericGrid,as i have told you.
For now,the Control appear in its parent window and simply we can change the number of rows,the number of cols and the color of grid,by sending messages to it.
To create the control,you use CreateWindowEx with class name "GENERIC_GRID".
Tomorrow,i 'll send the Dll.
I would like from you to test the Control in Radasm to see if it works as Common controls in ToolBox of Radasm.
Regards,
Manos.
Hi manos
Can't wait to see what you have come up with. :alright:
KetilO
Can't wait to see what you have come up with. :alright:
KetilO
Hello KetilO.
I post the GenericGrid Control.
I wait your answer.
Manos.
I post the GenericGrid Control.
I wait your answer.
Manos.
Hi manos I've tried your grd control but got no joy...
here's the bit of code i used..
the error returned is 998 :Invalid access to memory location.
oh i forgot to say I'm running win2k SP2
here's the bit of code i used..
invoke LoadLibrary,offset szGengrid
.if eax!=NULL
invoke CreateWindowEx,WS_EX_CLIENTEDGE,offset szGengrid,NULL, \
WS_CHILD or WS_VISIBLE, 0,0,300,300,hWnd, NULL, hInstance,NULL
.else
invoke GetLastError
PD eax
.endif
the error returned is 998 :Invalid access to memory location.
oh i forgot to say I'm running win2k SP2
Hi manos
I added it to my test dialog editor. It worked fine under win98.
Will test it more.
KetilO
I added it to my test dialog editor. It worked fine under win98.
Will test it more.
KetilO
Hi all
I am also working on a some what simular project. A spread sheet control. Still in a very early stage.
KetilO
I am also working on a some what simular project. A spread sheet control. Still in a very early stage.
KetilO
OffTopic:
Me wonders how KetiIO has the time to create a full-featured RAD IDE, + Some projects, + some games, + a spreadsheet control, + a web site for RadASM (http://radasm.visualassembler.com -- courtesy of moi), + actively participate in win32asmcommunity, plus be married)...
I've found a new role-model...
Thanks,
_Shawn
Me wonders how KetiIO has the time to create a full-featured RAD IDE, + Some projects, + some games, + a spreadsheet control, + a web site for RadASM (http://radasm.visualassembler.com -- courtesy of moi), + actively participate in win32asmcommunity, plus be married)...
I've found a new role-model...
Thanks,
_Shawn
Hi _Shawn
You forgot to mention 8h workday.
Well, you will have to learn how to caress your wife wit one hand, tap the keyboard with the other while eating dinner with your feet. :grin:
No really. I just plan my day a little and has effective ways to charge my batteries. Besides it is summertime with 24 hours daylite and little need to sleep.
With the spread sheet control I am cheating a little since I created one a looong time ago (running under dos / vmos, my multiuser OS).
KetilO
You forgot to mention 8h workday.
Well, you will have to learn how to caress your wife wit one hand, tap the keyboard with the other while eating dinner with your feet. :grin:
No really. I just plan my day a little and has effective ways to charge my batteries. Besides it is summertime with 24 hours daylite and little need to sleep.
With the spread sheet control I am cheating a little since I created one a looong time ago (running under dos / vmos, my multiuser OS).
KetilO
[...]vmos, my multiuser OS).
_Shawn,
seems like your forgot to mention his OS :grin:
Hi manos
As MArtial_Code mentioned generic grid does not work on xp.
Are you preserving ebx,esi,edi?
KetilO
As MArtial_Code mentioned generic grid does not work on xp.
Are you preserving ebx,esi,edi?
KetilO
Hi manos I've tried your grd control but got no joy...
here's the bit of code i used..
invoke LoadLibrary,offset szGengrid
.if eax!=NULL
invoke CreateWindowEx,WS_EX_CLIENTEDGE,offset szGengrid,NULL, \
WS_CHILD or WS_VISIBLE, 0,0,300,300,hWnd, NULL, hInstance,NULL
.else
invoke GetLastError
PD eax
.endif
the error returned is 998 :Invalid access to memory location.
This can't work, because you pass the Library name to the LoadLibrary AND CreateWindowEx API.
Try this:
[...]
.data
[...]
szLib db "GenericGrid.dll", 0
szGrid db "GENERIC_GRID", 0
[...]
.code
[...]
invoke LoadLibrary, addr szLib
invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr szGrid, \
0, WS_CHILD or WS_VISIBLE, 0, 0, \
300, 300, hWnd, 0, hInstance,0
[...]
Sorry, have no compiler here to test it.
Hi bAZiK
Well true, but it is the LoadLibrary that fails, so there is still a bug.
KetilO
Well true, but it is the LoadLibrary that fails, so there is still a bug.
KetilO
KetilO,
he didn't post what "szGengrid" stands for in his .data section.
I bet it looks like:
:)
That would explain why it fails...
he didn't post what "szGengrid" stands for in his .data section.
I bet it looks like:
szGengrid db "GENERIC_GRID", 0
:)
That would explain why it fails...
Hi bAZiK
It works on win98, so my guess is that he does not preserve registers.
KetilO
It works on win98, so my guess is that he does not preserve registers.
KetilO
Hello MArtial_Code.
I have just come back from my Work and i see your message.
bAZiK have give the correct answer.
What is szGengrid ? If it is the name of Class,the Dll does not loaded.
The correct is:
.data
szLibName db "GenericGrid.dll", 0
szClassName db "GENERIC_GRID", 0
Hi KetilO.
I have preserved esi,edi.
Also,i have Windows Me and it works OK.
Because this days i am much busy with my Work,late on I "ll post you the GenericGrid Dll with more properties.
Thanks,Alls
Manos.
I have just come back from my Work and i see your message.
bAZiK have give the correct answer.
What is szGengrid ? If it is the name of Class,the Dll does not loaded.
The correct is:
.data
szLibName db "GenericGrid.dll", 0
szClassName db "GENERIC_GRID", 0
Hi KetilO.
I have preserved esi,edi.
Also,i have Windows Me and it works OK.
Because this days i am much busy with my Work,late on I "ll post you the GenericGrid Dll with more properties.
Thanks,Alls
Manos.
You should also add a simple example program to the package :)
Hi bAZiK.
Yes,you are right.In a few hours i post an examble.
Manos.
Yes,you are right.In a few hours i post an examble.
Manos.
Hi manos
The dll still does not load on xp. Here is the project I am testing on. Don't tink I have missed anything.
KetilO
The dll still does not load on xp. Here is the project I am testing on. Don't tink I have missed anything.
KetilO
Indeed I was not using the correct classname I've corrected that...The problem however is with LoadLibrary...it finds the dll but just can't load it...I get the same error as I reported before.
Hi All.
I post an examble.
Manos.
I post an examble.
Manos.