Need some help

hi,
I am new with SDL (and with c++) and I have a problem.
When I build a test program that I made to see how SDL
works I get the next link error:
-defaultlib “msvcrt.lib” conflicts with use of other libs
I think that SDl is messing up with msvcrt territory or something.

I know that u r all professional, but still i beg 4 ur patience
and charity to help a newbie like me.

thanks 4 the attencion

PS: sory the bad English, I am Portuguese and I’m a litle rusty… :slight_smile:

hi,
I am new with SDL (and with c++) and I have a problem.
When I build a test program that I made to see how SDL
works I get the next link error:
-defaultlib “msvcrt.lib” conflicts with use of other libs
I think that SDl is messing up with msvcrt territory or something.

I know that u r all professional, but still i beg 4 ur patience
and charity to help a newbie like me.

thanks 4 the attencion

PS: sory the bad English, I am Portuguese and I’m a litle rusty… :slight_smile:

Hey,

You need to set to Multithreaded DLL. I think it’s in Projects->Settings.
I’m pretty sure it’s in the FAQ.

Bye,
Silverleaf

hi
I am a newbie, so sory about the basic questions.

I am using SDL on Visual C++ 6.0, when I run a SDL program,
a prompt also appears… how do I make it desapear?

is there a way to change a color in a SDL_Surface? ex: in a surface I have
some red, and I whant to put it in green, how can I do this?

can I load the format TTF [True Type Fonts] to a SDL_Surface? if not,
is there another way to use TTF?

now, this one is off topic, so if u don’t want to respond, i will understand
how do I create a “global” variable, like tcout or cin?

tankz for any help.
Pedro Santos_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

I am using SDL on Visual C++ 6.0, when I run a SDL program,
a prompt also appears… how do I make it desapear?

There’s a setting in Visual C++ for saying whether you want a "console"
application (a program with a prompt), or a windowed application (one
without). I know you can specify this on the “new project” menu, and I’m
not sure how to change it after that, but I’m sure there’s a way.

is there a way to change a color in a SDL_Surface? ex: in a surface I have
some red, and I whant to put it in green, how can I do this?

Take all the red pixels on the screen and make them green? If you’re using
an 8-bit color surface, you can manipulate the palette.

http://sdldoc.csn.ul.ie/sdlsetcolors.php

can I load the format TTF [True Type Fonts] to a SDL_Surface? if not,
is there another way to use TTF?

http://www.libsdl.org/faq/FAQ-General.html#GENERAL_DRAWINGTEXT

now, this one is off topic, so if u don’t want to respond, i will understand
how do I create a “global” variable, like tcout or cin?

If you haven’t gotten this, you might want to come back to SDL later. :slight_smile:

#include <stdio.h>

int this_is_a_global_variable;
static int this_is_a_variable_that_is_global_to_this_source_file;

void myfunction(void)
{
int this_is_a_variable_that_is_local_to_this_function;
}

(in other source files, or better yet in a header file included in those
other source files, you would want…

extern int this_is_a_global_variable;

…to make that visible to other source files.)

–ryan.

Pedro Santos wrote:

hi
I am a newbie, so sory about the basic questions.

I am using SDL on Visual C++ 6.0, when I run a SDL program,
a prompt also appears… how do I make it desapear?

the exact setting is :
Go to your project settings (right click on your project), go to the tab
"Link". Locate “/subsystem:console” in the textfield "Project options"
at the bottom and change it to “/subsystem:windows”.
Here you are…

hi
I am a newbie, so sory about the basic questions.

I am using SDL on Visual C++ 6.0, when I run a SDL program,
a prompt also appears… how do I make it desapear?

is there a way to change a color in a SDL_Surface? ex: in a surface I have
some red, and I whant to put it in green, how can I do this?

can I load the format TTF [True Type Fonts] to a SDL_Surface? if not,
is there another way to use TTF?

now, this one is off topic, so if u don’t want to respond, i will
understand
how do I create a “global” variable, like tcout or cin?

The other guys have answered the Visual C++ question.

Um, I’m assuimg you just want to put some green into a surface. If that’s
what you want to do you can use the

SDL_FillRect function.

For example:
SDL_FillRect(target, &rect, SDL_MapRGB(target->format, 0, 255, 0));

This will fill a surface called target, with the rectangle within the
surface specified by the rectangle rect with a totally green colour
specified by the SDL_MapRGB function.

I hope this helps.

If you are unsure about using global variables, I think you might want to
spend a few months going through a beginner C/C++ manual. If I just
misunderstood your question, I apologise if that sounds rude._________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

hello,

how can i display videos in dialog box which a child
of the main application, and the latter displays video
at the same time.

thanks in advance________________________________________________________________________
BT Yahoo! Broadband - Save ?80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be. http://uk.rd.yahoo.com/evt=21064/*http://btyahoo.yahoo.co.uk