BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DirectDraw: <ddraw.h> and Linking Error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
server
Guest





PostPosted: Mon Mar 20, 2006 10:03 pm    Post subject: DirectDraw: <ddraw.h> and Linking Error Reply with quote



message unavailable
Back to top
Darren Dwyer
Guest





PostPosted: Mon Mar 20, 2006 10:03 pm    Post subject: Re: DirectDraw: <ddraw.h> and Linking Error Reply with quote



Hi James,

don't bother wasting your time, try our components instead...

http://bcb-tools.com
"RAD DirectX for Borland C++ Builder"

- darren

"James O'Brien" <obrien (AT) nsicnet (DOT) com> wrote in message
news:43e289ea$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hello,

I've typed in a simple DirectDraw example program found in the book
"Borland
C++ Builder 4 Unleashed". The source code compliles without a problem,
but
I receive the following linking error:

Unresolved external 'DirectDrawCreate' referenced from
D:\PROJECTS\DIRECTDRAW\SAMPLE01\SDMAIN.OBJ

In the course of looking for why this might be happening, I came across
basically the same program example in the following directory:

"$(BCB)\Examples\DDraw\DDraw1a"

When I loaded/compiled this project it I didn't receive the linking error
and the program ran. I've looked at the source code(C++ and Header
files)
of both projects and haven't found any differences(except for comment
lines). I've also looked at the Options dialog for both projects and
haven't found any differences.

Anyway, why does the project I've entered in manually generate the linking
error while the project found in Examples directory build without a
hitch?

Thanks,
James OBrien


Back to top
JD
Guest





PostPosted: Fri Jun 09, 2006 7:50 pm    Post subject: Re: How to avoid flicker Reply with quote



Azrin Aris <azrin_aris (AT) yahoo (DOT) com> wrote:
Quote:

[...] when I resize the component the Image flickers. [...]

void __fastcall TGeoImage::Paint(void)
{
if(FImage)
{
Canvas->Draw(0,0,FImage);
}
}

Use CopyRect instead of Draw.

~ JD
Back to top
Michel Leunen
Guest





PostPosted: Sat Jun 10, 2006 1:08 pm    Post subject: Re: How to avoid flicker Reply with quote

Azrin Aris wrote:

Quote:
I'm writing a component from TGraphicControl to show part of a big JPG
image file. My first problem is when I resize the component the Image
flickers.

Did you try setting the form property DoubleBuffered to true and/or
setting your TImage Stretch property to true?

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Back to top
Azrin Aris
Guest





PostPosted: Sat Jun 10, 2006 5:06 pm    Post subject: Re: How to avoid flicker Reply with quote

Michel Leunen wrote:
Quote:
Azrin Aris wrote:

I'm writing a component from TGraphicControl to show part of a big JPG
image file. My first problem is when I resize the component the Image
flickers.

Did you try setting the form property DoubleBuffered to true and/or
setting your TImage Stretch property to true?

Michel

Hi Michel,

After I set the Main Form DoubleBuffered to true, the flicker gone. But
I'm writing a component and is there a way to avoid flicker
programatically from the component itself?

Azrin
Back to top
Michel Leunen
Guest





PostPosted: Sat Jun 10, 2006 8:38 pm    Post subject: Re: How to avoid flicker Reply with quote

Azrin Aris wrote:

Quote:
After I set the Main Form DoubleBuffered to true, the flicker gone. But
I'm writing a component and is there a way to avoid flicker
programatically from the component itself?

Descendants from TGraphicControl have a Parent property which you could
use to test if it's a TForm descendant. But IMO, it'd be far better if
you could provide a component flicker free by its own and implement
double-buffering yourself. Just draw on the canvas of a in-memory bitmap
and when you are done, copy your bitmap to your canvas using BitBlt().
Do a search on google, there were many posts related to double-buffering
or flickering.

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Back to top
Azrin Aris
Guest





PostPosted: Sun Jun 11, 2006 12:33 am    Post subject: Re: How to avoid flicker Reply with quote

Michel Leunen wrote:
Quote:
Azrin Aris wrote:

After I set the Main Form DoubleBuffered to true, the flicker gone.
But I'm writing a component and is there a way to avoid flicker
programatically from the component itself?

Descendants from TGraphicControl have a Parent property which you could
use to test if it's a TForm descendant. But IMO, it'd be far better if
you could provide a component flicker free by its own and implement
double-buffering yourself. Just draw on the canvas of a in-memory bitmap
and when you are done, copy your bitmap to your canvas using BitBlt().
Do a search on google, there were many posts related to double-buffering
or flickering.

Michel

Thanks Michel, I'll try the BitBlt method.

Azrin
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Aug 17, 2006 9:32 pm    Post subject: Re: Bitmap pixel access Reply with quote

"Michael" <sbi (AT) telkomsa (DOT) net> wrote in message
news:44e4470b (AT) newsgroups (DOT) borland.com...

Quote:
Can any one help me with the most optimal way to
access bitmap pixels for image manipulation.

Use the TBitmap::ScanLine property. That provides direct access to each row
of pixel data, where the Height specifies the number of rows, and the Width
specifies the number of items in each row. The format of the data depends
on which PixelFormat is being used. For example, if the PixelFormat is
pf8bit, then each ScanLine item will contain an array of bytes, 1 per pixel,
which are indexes into the bitmaps' color palette. On the other hand, if
the PixelFormat is pf24bit, then each ScanLine item will contain an array of
RGBTRIPLE values, 1 per pixel, which are the actual color values, so no
color palette is used.


Gambit

P.S. check your computer clock settings. You are 7 years behind.
Back to top
Michael
Guest





PostPosted: Mon Aug 21, 2006 9:34 pm    Post subject: Re: Bitmap pixel access Reply with quote

Is that going to work as I need to set up a 2d array of pixels so I can
access them as rows and columns.

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:44e49a60$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Michael" <sbi (AT) telkomsa (DOT) net> wrote in message
news:44e4470b (AT) newsgroups (DOT) borland.com...

Can any one help me with the most optimal way to
access bitmap pixels for image manipulation.

Use the TBitmap::ScanLine property. That provides direct access to each
row
of pixel data, where the Height specifies the number of rows, and the
Width
specifies the number of items in each row. The format of the data depends
on which PixelFormat is being used. For example, if the PixelFormat is
pf8bit, then each ScanLine item will contain an array of bytes, 1 per
pixel,
which are indexes into the bitmaps' color palette. On the other hand, if
the PixelFormat is pf24bit, then each ScanLine item will contain an array
of
RGBTRIPLE values, 1 per pixel, which are the actual color values, so no
color palette is used.


Gambit

P.S. check your computer clock settings. You are 7 years behind.

Back to top
Urbano's
Guest





PostPosted: Thu Dec 28, 2006 12:46 am    Post subject: Re: ci sono Reply with quote

"Nutella" <yourstar_70 (AT) hotmail (DOT) com> ha scritto nel messaggio
news:emuel0$otp$2@nnrp-beta.newsland.it
Quote:
29334238102938194 gruppi diversi e non uno che vada bene per chiedere
info sul diritto di recesso.
Sitcazzi.

prova qui!!

--

*eh* ? (cit)
Back to top
Colin B Maharaj
Guest





PostPosted: Tue Jun 24, 2008 5:51 am    Post subject: Re: TextOut - how to format a double? Reply with quote

Quote:
How can I format TextOut()?

I would use the Help feature in my old BCB 6, but so far the
engineers can't seem to get it properly registered.

Thanks,
Nick



Your thinking is incorrect!!
Do not format TextOut

Instead, first format the number into a text variable, then text out
that variable.
Back to top
Pentti Nyström
Guest





PostPosted: Tue Nov 18, 2008 7:19 am    Post subject: Ryhmän sfnet.viestinta.www virallinen kuvaus Reply with quote

M.T.09.05-08.Tanskan insinööriliitossa uskotaan uusiutuvaan energiaan
"Energiasuunnitelma 2030"- nimisen raportin (ES). Sen tekoon osallistui 1
600 insinööriä ja muita energia-asiantuntijoita. ES:stä sijoitukset
uudisenergiaan ovat ekologisesti ja taloudellisesti hyvin perusteltuja.
Samoin varteenotettavia vientimahdollisuuksia. Uudisenergia tulee rajusti
lisääntymään. Tanska pääsee v.2030 pitkälle kokonaan uudisenergiaan.
Arvellaan 50% osuutta jo silloin.

Kasvihuonepäästöistä poistuu 60% ja näin säästyy 15 miljardia kruunua/v.
Investointitulojen kasvuksi 30 miljardista 160 miljardiin v-30. Säästöä 845
petajoulesta 580 petajouleen. Suomessa 1 400 petajoulea. Teollisuus voi
vähentää 30%! Säästöä tästä 6 miljardia kruunua. Takaisinmaksuaika
investoinneista 6-7 vuodessa. Tähän budjetti 107 milj. euroa. Rakennusten
energiankulutuksen puolitus 2030. 15% tulisi aurinkoenergiasta. Sähköstä
pois 40%. Jo 2020 jälkeen rakennettavien talojen arvioidaan olevan JO
energianeutraalin. Energiasäästösäätiöön pannaan miljardi kruunua.

Liikenne Tanskassa vielä kasvaa 2%/v. Siitä tullaan poistamaan 20%
nykytasosta korvaamalla siitä biopolttoaineella. Viidennes sähköautoihin.
Rautateille lisäystä. Verotus suosimaan ympäristöystävällisiä autoja.
Kuljetuksiin 200 miljardia kruunua l. 27miljardia. Vähentäen
terveydenhuoltoa, ruuhkien ja ympäristönsuojelun menot. Huomattavasti
nykyistä suurempi osuus uusiutuvista lähteistä. Tuulipuolella Tanska suuntaa
merien offshoretuulivoimaan. ES:n tavoite on kaksinkertaistaa tuulivoimaansa
sähköstä huikeaan 60 prosenttiin!!!

Aurinkosoluille 2030 ennakoidaan 2% ja aaltovoiman 5% sähköntuotannosta.
Aaltovoimaa pidetään erittäin merkittävänä. Biomassasta ennakoidaan 30%
v.2030. Mukana biopolttoaineiden 20%. Biokaasuun luotetaan, samoin uuden
sukupolven biopolttoaineisiin. Näihin Tanska sijoittaa paljon.
Biopolttoainesektorikasvaa 20 miljardiin kruunuun 2,7miljardiin euroon.
Kolmannes 2030 voimaloista käyttää jo tehokkaita polttokennoja ja
lämpöpumput ovat arkilaitteita. Tutkimuksiin nostetaan 350 miljoonasta
miljardiin kruunuun. Valtio kevittää uudisenergiainvestointiriskittömämpiä
syöttötariffeja. "Saastuttaja maksaa periaatteella!"(Suomessa ydinalalle
moinen olisi ennenkokematonta!)

Suositellaan luopumista verotuksesta joka estää siirtymistä fossiileista
uudisenergiaan. Lentopetrolille veroa. Tanskassa on oleellisesti helpompaa
toteuttaa uutta energiapolitiikkaa. Valitettavasti meillä ei edelleenkään
olla valmiita sellaisiin toimiin, joilla kokonaisenergian kulutus saadaan
selvään laskuun ja uusiutuvan energian ja sitä tukevan teknologian käyttö
vahvaan nousuun.

U.B. Linström kehitys- ja ympäristökysymyksiin erikoistunen professorin
yleisöosastokirjoituslyhemnelmä.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.