FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Bug...Fwh1010 + TGif...
Posts: 248
Joined: Wed Jan 11, 2006 11:30 AM
Bug...Fwh1010 + TGif...
Posted: Thu Dec 23, 2010 02:07 PM

¿Cómo resolver esto:

Fwh 1010 + Vc2008 + Harbour

FiveHCm.lib(FWGIF.obj) : error LNK2019: símbolo externo _GetWindowLongPtr sin resolver al que se hace referencia en la función _FW_WndProc@16

Saluds, Ale

aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
Re: Bug...Fwh1010 + TGif...
Posted: Fri Dec 24, 2010 10:05 AM

estou com mesmo problema :(

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug...Fwh1010 + TGif...
Posted: Wed Nov 21, 2012 07:44 AM
Please add this code to your app:

Code (fw): Select all Collapse
#pragma BEGINDUMP

#include <windows.h>

#ifndef _WIN64

LONG_PTR WINAPI GetWindowLongPtr( HWND hWnd, int nIndex )
{
   return GetWindowLong( hWnd, nIndex );
}

#endif

#pragma ENDDUMP


http://msdn.microsoft.com/en-us/library/windows/desktop/ms633585(v=vs.85).aspx

Note To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetWindowLongPtr. When compiling for 32-bit Windows, GetWindowLongPtr is defined as a call to the GetWindowLong function.
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion