Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / do I 'cout' or print to a d3d device/layer from a dll in dbpro

Author
Message
Impreza
21
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 9th Nov 2002 23:15
I remember rich saying so in some topic in here, but would to do something like printing text to the screen, how would I pass it to the correct place/buffer?

for ex. in C++ would I write:

cout
set mipmap mode 1: set matrix texture 1,1,1: set spot light 1,0,90: set normalization on: sync rate 0: statistic(1): flush video memory
autocam off: always active on: hide mouse: set window on
Impreza
21
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 9th Nov 2002 23:18
wow!! that didn't come out at all like I just wrote it lol; I don't know what happened. oh well, the question was can I use write in C++:

#include <conio.h>
...
cout << "Press Enter to continue " << '\n';
getch();
...

or would I have to use direct-x?

set mipmap mode 1: set matrix texture 1,1,1: set spot light 1,0,90: set normalization on: sync rate 0: statistic(1): flush video memory
autocam off: always active on: hide mouse: set window on
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 10th Nov 2002 00:48
Are you asking how would you translate that code into DB, or how would you use a dll to run that c++ code?
The One Ring
21
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 10th Nov 2002 06:58
If you are wanting to write text while DirectX is initialized, COUT won't work. The GDI functions can write to a DirectX window when you pass that window handle.

AMD Athlon 900 768MB DDR
ATI Radeon 64MB DDR All-In-Wonder 7500, ATI XPert 128 16MB
Sound Blaster Audigy Gamer w/FireWire Support

Login to post a reply

Server time is: 2024-04-23 08:22:07
Your offset time is: 2024-04-23 08:22:07