Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages
Started by DreamChaser
Sun, 25 Feb 2007 02:17
Linker Error - GradientFill
Author: DreamChaser
Date: Sun, 25 Feb 2007 02:17
Date: Sun, 25 Feb 2007 02:17
54 lines
2411 bytes
2411 bytes
I keep getting the following error
[Linker Error] Unresolved external 'GradientFill' referenced from
C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\...\FRMMAIN.OBJ
But code insight shows the prototype/parameters
it is declared in Windows.hpp
function GradientFill; external msimg32 name 'GradientFill';
& wingdi.h
WINGDIAPI BOOL WINAPI GradientFill( IN HDC, IN PTRIVERTEX, IN ULONG, IN
PVOID, IN ULONG, IN ULONG);
Anybody get this to work? Can think of what I might be doing wrong? Know
the phase of the moon? :)
Any help would be greatly appreciated. Code follows:
DC
BCB5ent
//---------------------------------------------------------------------------
void __fastcall TMainForm::FormPaint(TObject *Sender)
{
int startColor = ColorToRGB(clBlue);
int endColor = ColorToRGB(clBlack);
TRIVERTEX vert[2];
GRADIENT_RECT gRect;
vert[0].x = 0;
vert[0].y = 0;
vert[0].Red = GetRValue(startColor);
vert[0].Green = GetGValue(startColor);
vert[0].Blue = GetBValue(startColor);
vert[0].Alpha = 0x0000;
vert[1].x = 0;
vert[1].y = 0;
vert[1].Red = GetRValue(endColor);
vert[1].Green = GetGValue(endColor);
vert[1].Blue = GetBValue(endColor);
vert[1].Alpha = 0x0000;
gRect.UpperLeft = 0;
gRect.LowerRight = 1;
GradientFill(pnlEventEditor->Handle,
vert, 2,
&gRect, 1,
GRADIENT_FILL_RECT_H
);
} //End FormPaint()
//---------------------------------------------------------------------------
Re: Linker Error - GradientFill
Author: Remy Lebeau (TeamB)
Date: Sun, 25 Feb 2007 03:16
Date: Sun, 25 Feb 2007 03:16
13 lines
1305 bytes
1305 bytes
"DreamChaser" <jkofsky@No-Spam.net> wrote in message news:45e0f193$1@newsgroups.borland.com... > I keep getting the following error Please do not cross-post. It is against Borland's newsgroup guidelines (http://info.borland.com/newsgroups). Only post to the single most appropriate group. Your question has been answered in the .graphics newsgroup (which was not the appropriate group, either). Gambit
Re: Linker Error - GradientFill
Author: DreamChaser
Date: Sun, 25 Feb 2007 04:46
Date: Sun, 25 Feb 2007 04:46
18 lines
1475 bytes
1475 bytes
Remy Lebeau (TeamB) wrote: > "DreamChaser" <jkofsky@No-Spam.net> wrote in message > news:45e0f193$1@newsgroups.borland.com... > >> I keep getting the following error > > Please do not cross-post. It is against Borland's newsgroup > guidelines (http://info.borland.com/newsgroups). Only post to the > single most appropriate group. Your question has been answered in the > ..graphics newsgroup (which was not the appropriate group, either). > > > Gambit > > Please to direct me to the correct group and I will is it for this question. DC
Re: Linker Error - GradientFill
Author: JD
Date: Sun, 25 Feb 2007 13:10
Date: Sun, 25 Feb 2007 13:10
17 lines
1349 bytes
1349 bytes
DreamChaser <jkofsky@No-Spam.net> wrote: > Please trim your posts. > Please to direct me to the correct group and I will is it > for this question. I suspect that Gambit asked you not to cross-post in this thread because by time he saw it, he had already answered your post in the student group. To be clear, this is the best group for that question but the student group is also acceptable. ~ JD
Re: Linker Error - GradientFill
Author: Remy Lebeau (TeamB)
Date: Mon, 26 Feb 2007 18:03
Date: Mon, 26 Feb 2007 18:03
13 lines
1326 bytes
1326 bytes
"JD" <nospam@nospam.com> wrote in message news:45e18ad7$1@newsgroups.borland.com... > To be clear, this is the best group for that question but > the student group is also acceptable. This group is for questions related to use of the Win32 API. His question was in regards to a linker error instead. Linker-related questions belong in the .ide group instead. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads