C problem, harbour compile 32 bit

C problem, harbour compile 32 bit

Postby richard-service » Fri Sep 16, 2016 6:01 pm

Hi
I try to convert xHarbour to Harbour. when I recompile some C file that appear error.
How to compatible Harbour?

Code: Select all  Expand view

cText = hb_parc( 6, n ) ; =>Line 229
cText = hb_parc( 3, n ) ; =>Line 513
nX    = hb_parnl(5, n ) ;  =>Line 514
cText = hb_parc( 3, n ) ; =>Line 553
nX    = hb_parnl(5, n ) ; =>Line 554
nX = hb_parnl( 5, 1 ) ; =>Line 591
 

Harbour 3.2.0dev (r1603082110)
...
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Obj\TextTool.C:
Warning W8075 Obj\TextTool.C 13: Suspicious pointer conversion in function HB_FUN_KWTEXT
Warning W8075 Obj\TextTool.C 38: Suspicious pointer conversion in function HB_FUN_DRTEXT
Warning W8075 Obj\TextTool.C 64: Suspicious pointer conversion in function HB_FUN_DR3DTEXT
Error E2227 Obj\TextTool.C 229: Extra parameter in call to hb_parc in function HB_FUN_DR3DMULTI
Warning W8075 Obj\TextTool.C 229: Suspicious pointer conversion in function HB_FUN_DR3DMULTI
Warning W8075 Obj\TextTool.C 351: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 355: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 375: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 376: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 377: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 378: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 380: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 381: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 383: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 385: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 387: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 393: Suspicious pointer conversion in function GradeText
Warning W8075 Obj\TextTool.C 429: Suspicious pointer conversion in function HB_FUN_DRGRDTXT
Error E2227 Obj\TextTool.C 513: Extra parameter in call to hb_parc in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 513: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Error E2227 Obj\TextTool.C 514: Extra parameter in call to hb_parnl in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 530: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 534: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Error E2227 Obj\TextTool.C 553: Extra parameter in call to hb_parc in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 553: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Error E2227 Obj\TextTool.C 554: Extra parameter in call to hb_parnl in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 569: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 570: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 571: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 572: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 574: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 575: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 577: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 579: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 581: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Warning W8075 Obj\TextTool.C 585: Suspicious pointer conversion in function HB_FUN_MULGRDTXT
Error E2227 Obj\TextTool.C 591: Extra parameter in call to hb_parnl in function HB_FUN_MULGRDTXT
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: C problem, harbour compile 32 bit

Postby Antonio Linares » Fri Sep 16, 2016 8:00 pm

cText = ( char * ) hb_parc( 6, n )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: C problem, harbour compile 32 bit

Postby richard-service » Mon Sep 19, 2016 4:17 am

Hi
I use these code work fine for xHarbour , but not work Harbour.
It's appear error message Error E0030 Syntax error "syntax error at 'L'"

Code: Select all  Expand view

#define MF_BYPOSITION 0x0400L
#define MF_BYCOMMAND  0x0000L
#define MF_GRAYED     0x0001L
#define SC_CLOSE      0xF060L

FUNCTION NoCloseButton( oWnd )

   // puedes usar cualquiera de estas 2 opciones
   EnableMenuItem( GetSystemMenu( oWnd:hWnd, .F. ), SC_CLOSE, nOr( MF_BYCOMMAND, MF_GRAYED ) ) //=> This Line ERROR
   //ModifyMenu( GetSystemMenu( oWnd:hWnd, .F. ), SC_CLOSE, nOr( MF_BYCOMMAND, MF_GRAYED), -10, "Close")
   DrawMenuBar( oWnd:hWnd ) // actualiza el menu

RETURN Nil
 
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: C problem, harbour compile 32 bit

Postby cnavarro » Mon Sep 19, 2016 10:22 am

Yes, Try with

Code: Select all  Expand view

#define MF_BYPOSITION 0x0400
#define MF_BYCOMMAND  0x0000
#define MF_GRAYED     0x0001
#define SC_CLOSE      0xF060
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: C problem, harbour compile 32 bit

Postby richard-service » Tue Sep 27, 2016 6:32 pm

cnavarro wrote:Yes, Try with

Code: Select all  Expand view

#define MF_BYPOSITION 0x0400
#define MF_BYCOMMAND  0x0000
#define MF_GRAYED     0x0001
#define SC_CLOSE      0xF060
 

Thanks a lot. working fine.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 44 guests