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.
Posted on 2002-06-16 15:37:49 by Anonymous
Hi manos

Can't wait to see what you have come up with. :alright:

KetilO
Posted on 2002-06-16 15:49:12 by KetilO
Hello KetilO.

I post the GenericGrid Control.
I wait your answer.

Manos.
Posted on 2002-06-17 15:25:41 by Anonymous
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.


oh i forgot to say I'm running win2k SP2
Posted on 2002-06-17 16:30:21 by MArtial_Code
Hi manos

I added it to my test dialog editor. It worked fine under win98.
Will test it more.

KetilO
Posted on 2002-06-17 16:40:24 by KetilO
Hi all

I am also working on a some what simular project. A spread sheet control. Still in a very early stage.

KetilO
Posted on 2002-06-17 16:49:18 by 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
Posted on 2002-06-18 01:12:35 by _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
Posted on 2002-06-18 03:23:49 by KetilO

[...]vmos, my multiuser OS).




_Shawn,
seems like your forgot to mention his OS :grin:
Posted on 2002-06-18 03:47:16 by bazik
Hi manos

As MArtial_Code mentioned generic grid does not work on xp.
Are you preserving ebx,esi,edi?

KetilO
Posted on 2002-06-18 06:09:00 by 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.
Posted on 2002-06-18 06:19:02 by bazik
Hi bAZiK

Well true, but it is the LoadLibrary that fails, so there is still a bug.

KetilO
Posted on 2002-06-18 06:38:30 by KetilO
KetilO,
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...
Posted on 2002-06-18 06:47:09 by bazik
Hi bAZiK

It works on win98, so my guess is that he does not preserve registers.

KetilO
Posted on 2002-06-18 07:28:32 by 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.
Posted on 2002-06-18 08:12:28 by Anonymous
You should also add a simple example program to the package :)
Posted on 2002-06-18 08:17:56 by bazik
Hi bAZiK.

Yes,you are right.In a few hours i post an examble.

Manos.
Posted on 2002-06-18 08:35:34 by Anonymous
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
Posted on 2002-06-18 08:53:38 by 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.
Posted on 2002-06-18 09:23:48 by MArtial_Code
Hi All.

I post an examble.

Manos.
Posted on 2002-06-18 16:08:22 by Anonymous