Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant, USER0328), 5,287 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to use "MOUSE_MAP" in lite-c #135525
06/11/07 09:16
06/11/07 09:16
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
Hi!

I want to set the mouse_cursor to a certain BMAP in lite-c.

code:
"
BMAP* IM_MAUSZEIGER ="MAUSZEIGER.BMP";

function MouseSet()
{
mouse_map = IM_MAUSZEIGER;
}
"

error: (E355)
"machine code generator: can not translate EQU:STRUCT@8::POINTER"

Has anybody an idea?

Re: How to use "MOUSE_MAP" in lite-c [Re: dennis] #135526
06/11/07 09:29
06/11/07 09:29
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
There's a second problem:

code:
"
BMAP IM_BUTTon_E4_ON ="BUTTon_E4_ON.PNG";
BMAP IM_BUTTon_engE4_ON ="BUTTon_engE4_ON.PNG";

PANEL* Field_E4c_pan=
{
Bmap = IM_BUTTon_E4_ON;
}

function test()
{
Field_E4c_pan.bmap = IM_BUTTon_engE4_ON;
}
"

error:
"can not convert 'struct BMAP' to 'POINTER'"

Re: How to use "MOUSE_MAP" in lite-c [Re: dennis] #135527
06/11/07 11:09
06/11/07 11:09
Joined: Jul 2000
Posts: 28,075
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,075
Frankfurt
You must not confuse structs with pointers. Pointers have a '*' in lite-C. BMAP and BMAP* are two different things.

See the examples in the manual.

Re: How to use "MOUSE_MAP" in lite-c [Re: jcl] #135528
06/11/07 11:17
06/11/07 11:17
Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
dennis Offline OP
Member
dennis  Offline OP
Member

Joined: Jul 2006
Posts: 150
Deutschland/Germany, nahe Hamb...
Ah, okay. It's working now.

Thanks!

Last edited by dennis; 06/11/07 11:17.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1