ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compile arxEntryPoint.h?

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
D_D_K
624 Views, 5 Replies

How to compile arxEntryPoint.h?

Hi,

From Mr. Fernando Malard's blog, I'm trying to build this sample file on Arx2022,

however I always get this error when compile acrxEntryPoint.cpp :

int LoadStringA(HINSTANCE,UINT,LPSTR,int)': cannot convert argument 3 from 'ACHAR [133]' to 'LPSTR

I used the marco page but not sure this caused the error (I have attached the file below).

How can I fix this case?

 

Many thanks! 

 

5 REPLIES 5
Message 2 of 6
artc2
in reply to: D_D_K

I haven't looked at the actual sample code, but it looks like that sample is from 2005 which predates Acad/ARX moving to Unicode and 16-bit characters. There have also been other changes in 16 years such as splitting some of what used to be in acad.exe out to an accore.dll with its own corresponding lib that must now be linked in. You'll need to update the sample code before it will build with ARX 2022.
Message 3 of 6
D_D_K
in reply to: artc2

Thanks sir! I will investigate more about this error. 😀

Message 4 of 6
D_D_K
in reply to: artc2

Hi sir!

I found the error. the problem has been resolved. 

Thanks you.

Message 5 of 6
meenakshi.madurai
in reply to: D_D_K

Hi,

I am facing the same error on ObjectARX migration form ObjectARX 2019 to 2022.
LoadStringA(HINSTANCE,UINT,LPSTR,int)

Can you please help me, how did you resolve the error please.

 

Many Thanks,

Meena

Message 6 of 6
D_D_K
in reply to: D_D_K

Hi @meenakshi.madurai ,
I'm not sure I remember this project. may be use LoadString instead. 😴

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators