Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global External Function : GetCursorPos()

Status
Not open for further replies.

juggyjuggy

Programmer
Mar 24, 2002
7
BE
I tried the example at this page :

I have PB7 + WinNT.
I entered the code like in the example, but when I type GetCursorPos(lstr_point),
PB compiler prompts me with the error of that last command GetCursorPos(lstr_point)
(0005) : Error C0174: Type of actual parameter cannot be ancestor of formal reference parameter type

I already posted this on the newsgroup of sybase, but with no response ...

Thanks in advance,
J.
 
OK i figured it out ...

For whom it interests ;)

My mistake was that I declared the function GLOBAL and not LOCAL.
Structures are only visible LOCALLY in the object where it is declared.

It works now !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top