recompiled with c files

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

recompiled with c files

Post by Silvio »

I must compiled on a program this function
but when I recompiled the program the exe not run ...why ?

I think there is an error but where ?

Code: Select all

#define HB_API_MACROS

#include <Windows.h>
//#include <dos.h>
#include <hbApi.h>


typedef struct
{
   FARPROC farProc;
//   BYTE bType;
//   BYTE bReturn;
//   BYTE bParams;
//   BYTE bParam[ 15 ];
} STRFUNC;

//----------------------------------------------------------------------------//
HARBOUR HB_FUN_CLSETROP2() //(hDll,Ctex)
{
hb_retni(  SetROP2( (HDC) hb_parnl(1), hb_parni(2)) );
}
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

You may try hb_parnl(2)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: recompiled with c files

Post by Enrico Maria Giordano »

Hard to say without more details on the error you got and a reduced and self-contained sample showing the problem.

EMG
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

I trying to recompiled tdwg cad class of Arthuro. Now run ok thank EMG and Linares
Best Regards, Saludos

Falconi Silvio
User avatar
Taiwan
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan
Contact:

Post by Taiwan »

Hello Silvio

Could you share how to dispaly CAD file(Only)?

Regards,

Richard
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

Could you share how to dispaly CAD file(Only)?
Dear taiwan,
YOU must use tdgw class of Arthuro Tamaya Daza and then you must go to www.opendwg.com to download the lib and others file .h

I cannot send you these files...

Regards
Best Regards, Saludos

Falconi Silvio
User avatar
Taiwan
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan
Contact:

Post by Taiwan »

Hello Silvio,

I try link OpenDesign 3rd LIB and get error below:

T:\DWGCAD>t:\drlib32x\bc5\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_od_atof' referenced from T:\DWGCAD\ADB5ND3.LIB|adrent

Any idea or suggestion?

Thank you

Richard
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

I recompiled all
all ok
I compiled the class and my sample ok

I not understand What happened to you ...perhaps U wrong...
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

Perhaps I use.....Xmate to compile all ( lib,Dll. and prg) with success !!!!!!!
Best Regards, Saludos

Falconi Silvio
Post Reply