Nov 22, 2009
Pages: 1, 2, 3

Flash With C In Unix

free web hosting

Read Latest Entries..: (Post #24) by HannahI on Nov 5 2009, 08:09 PM.
Okay, I have OpenGL, How do I use it?
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Programming > Programming General > C, C++ & Visual C++

Flash With C In Unix

HannahI
How do I do it?

Comment/Reply (w/o sign-up)

yordan
Are you asking how to download Adobe Flashplayer for Linux ?
Or are you asking if Flash Player exists for Unix versions other than Linux ?
Or are you saying that you want to write down a C program using flash instructions for people having not installed Flash on their Windows PC ?

Comment/Reply (w/o sign-up)

HannahI
I mean making a flash in C to work on Unix.

Comment/Reply (w/o sign-up)

Spencer
For me those three things put together... oh thats almost not possible as my knowledge says.

You mean you want to embed flash elements in C language? I haven't seen anyone doing that, may be it requires lots of expertise if possible.

May be if you could tell what you are trying to achieve, I would try guessing some alternatives.

Comment/Reply (w/o sign-up)

HannahI
What I'm tring to say is that, I want to make a flash on the screen in C; I know it would be possible directly in Unix by having a for loop that clears the screen the prints something.

Comment/Reply (w/o sign-up)

yordan
QUOTE (HannahI @ Nov 1 2009, 07:21 PM) *
What I'm tring to say is that, I want to make a flash on the screen in C; I know it would be possible directly in Unix by having a for loop that clears the screen the prints something.

Ha! Now we start understanding.
You don't want an embedded Adobe Flashplayer.
You want to have a flashing light on the user's screen from a C program.
something like
CODE
system ("tput rev");
printf("                                              ");
printf("                                              ");
printf("                                              ");
printf("                                              ");
system ("tput sgr0");

Of course, I hope this is to be used on a Unix system. On a Crosoft Winbows I would be curious to see the result of "tput rev" ! biggrin.gif

 

 

 


Comment/Reply (w/o sign-up)

HannahI
Sorry about the grammar. Also, what file is it in?

Comment/Reply (w/o sign-up)

yordan
QUOTE (HannahI @ Nov 1 2009, 07:49 PM) *
Sorry about the grammar. Also, what file is it in?

Huh? In what file is what ?

Comment/Reply (w/o sign-up)

HannahI
What file is the system command in?

Comment/Reply (w/o sign-up)

yordan
QUOTE (HannahI @ Nov 1 2009, 08:30 PM) *
What file is the system command in?

Have a look at a C language manual, for instance here : http://techpubs.sgi.com/library/dynaweb_do...html/index.html
And look for the "system" function :
QUOTE
system Function
The contents and mode of execution of the string passed to the system function (4.10.4.5).

The contents of the string should be a command string, as if typed to a normal IRIX shell, such as sh(1). A shell ( sh) is forked, and the string is passed to it. The current process waits until the shell has completed and returns the exit status of the shell as the return value.

Comment/Reply (w/o sign-up)

Latest Entries

HannahI
Okay, I have OpenGL, How do I use it?

Comment/Reply (w/o sign-up)

HannahI
Yeah, Do you know what is wrong with my program?

Comment/Reply (w/o sign-up)

starscream
If we have to do this in C++ then i don't think there is any official library from C++ committee. So SDL & OpenGL are two good choices. OpenGL can be used to flash the screen the clear it and flash it again. It's like a loop program. I don't have gcc installed on windows pc, let me check it after trying it on codeblocks.

Comment/Reply (w/o sign-up)

yordan
QUOTE (starscream @ Nov 4 2009, 11:33 AM) *
Ok i got the graphics part of C and C++. But my point is that, hannah asking for flash like animation using C or asking to link C file to flash ? I didn't get the requirements behind this correctly. What's the thing we are trying to achieve here ?

He just wants his C program to make a big amount of light coming from his display (for instance a screen refresh), so it's litterally a "flash" like in "flash-lamp", a flashing light.
On a Unix system you can do this by "tput blink" followed by "tput sgr0", but how could you do it in pure C, making a whole screen full of white and then back to normal?

Comment/Reply (w/o sign-up)

starscream
Ok i got the graphics part of C and C++. But my point is that, hannah asking for flash like animation using C or asking to link C file to flash ? I didn't get the requirements behind this correctly. What's the thing we are trying to achieve here ?

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3

See Also,

*SIMILAR VIDEOS*
Searching Video's for Flash, With, C, In, Unix
advertisement



Flash With C In Unix

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com