🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by Colin B Maharaj Sat, 05 Feb 2005 06:20
TRGBTriple : What is this?
#336
Author: Colin B Maharaj
Date: Sat, 05 Feb 2005 06:20
10 lines
1156 bytes
Hi all, I was trying to convert the code here at ....

http://www.swissdelphicenter.ch/torry/showcode.php?id=1812

To C++. I think I converted everything ok (I think) but I cound not get 
an idea of where the TRGBTriple is declared??. I am using BCB 3.0 Pro.



Thanks All.
Re: TRGBTriple : What is this?
#337
Author: Remy Lebeau (TeamB)
Date: Sat, 05 Feb 2005 08:26
20 lines
1496 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message
news:420465b7@newsgroups.borland.com...

> I think I converted everything ok (I think) but I cound not
> get an idea of where the TRGBTriple is declared??

There is no TRGBTriple declared in C++.  It is a Delphi-specifc type that
mimics the RGBTRIPLE structure defined by the Win32 API in wingdi.h:

    #include <pshpack1.h>
    typedef struct tagRGBTRIPLE {
        BYTE    rgbtBlue;
        BYTE    rgbtGreen;
        BYTE    rgbtRed;
    } RGBTRIPLE;
    #include <poppack.h>


Gambit
Re: TRGBTriple : What is this?
#338
Author: Colin B Maharaj
Date: Sat, 05 Feb 2005 17:28
28 lines
1754 bytes
Confusion be gone!
Thanks for clearing this up Remy.


Remy Lebeau (TeamB) wrote:
> "Colin B Maharaj" <noreply@myhost.com> wrote in message
> news:420465b7@newsgroups.borland.com...
> 
> 
>>I think I converted everything ok (I think) but I cound not
>>get an idea of where the TRGBTriple is declared??
> 
> 
> There is no TRGBTriple declared in C++.  It is a Delphi-specifc type that
> mimics the RGBTRIPLE structure defined by the Win32 API in wingdi.h:
> 
>     #include <pshpack1.h>
>     typedef struct tagRGBTRIPLE {
>         BYTE    rgbtBlue;
>         BYTE    rgbtGreen;
>         BYTE    rgbtRed;
>     } RGBTRIPLE;
>     #include <poppack.h>
> 
> 
> 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