begin process at 2010 02 10 01:38:01
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive C/C++

 > 

Archives

 > 

Au secours

 > 

Fch. Header :: CONIO.H


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

Fch. Header :: CONIO.H

mardi 18 février 2003 à 11:51:39 | Fch. Header :: CONIO.H

TontOnDuWeb

Pour ce que ca interesse (avec vc++ les fonctions suivantes e sont pas incluse (du moins je crois...))>>


#if !defined(__CONIO_H)
#define __CONIO_H

#if !defined(___DEFS_H)
#include <_defs.h>
#endif

#if !defined(_Windows)

#define _NOCURSOR 0
#define _SOLIDCURSOR 1
#define _NORMALCURSOR 2

struct text_info {
unsigned char winleft;
unsigned char wintop;
unsigned char winright;
unsigned char winbottom;
unsigned char attribute;
unsigned char normattr;
unsigned char currmode;
unsigned char screenheight;
unsigned char screenwidth;
unsigned char curx;
unsigned char cury;
};

enum text_modes { LASTMODE=-1, BW40=0, C40, BW80, C80, MONO=7, C4350=64 };

#if !defined(__COLORS)
#define __COLORS

enum COLORS {
BLACK, /* dark colors */
BLUE,
GREEN,
CYAN,
RED,
MAGENTA,
BROWN,
LIGHTGRAY,
DARKGRAY, /* light colors */
LIGHTBLUE,
LIGHTGREEN,
LIGHTCYAN,
LIGHTRED,
LIGHTMAGENTA,
YELLOW,
WHITE
};
#endif

#define BLINK 128 /* blink bit */

extern int _Cdecl directvideo;
extern int _Cdecl _wscroll;

#endif /* !_Windows */

#ifdef __cplusplus
extern "C" {
#endif

void _Cdecl clreol( void );
void _Cdecl clrscr( void );
void _Cdecl gotoxy( int __x, int __y );
int _Cdecl wherex( void );
int _Cdecl wherey( void );
int _Cdecl getch( void );
int _Cdecl getche( void );
int _Cdecl kbhit( void );
int _Cdecl putch( int __c );

#ifndef _PORT_DEFS
unsigned char _Cdecl inportb( unsigned __portid );
unsigned _Cdecl inport ( unsigned __portid );
int _Cdecl inp( unsigned __portid );
unsigned _Cdecl inpw( unsigned __portid );
void _Cdecl outportb( unsigned __portid, unsigned char __value );
void _Cdecl outport ( unsigned __portid, unsigned __value );
int _Cdecl outp( unsigned __portid, int __value );
unsigned _Cdecl outpw( unsigned __portid, unsigned __value );
#endif /* !_PORT_DEFS */

#if !defined(_Windows)

void _Cdecl delline( void );
int _Cdecl gettext( int __left, int __top,
int __right, int __bottom,
void *__destin);
void _Cdecl gettextinfo (struct text_info *__r );
void _Cdecl highvideo( void );
void _Cdecl insline( void );
void _Cdecl lowvideo( void );
int _Cdecl movetext( int __left, int __top,
int __right, int __bottom,
int __destleft, int __desttop );
void _Cdecl normvideo( void );
int _Cdecl puttext( int __left, int __top,
int __right, int __bottom,
void *__source );
void _Cdecl textattr( int __newattr );
void _Cdecl textbackground( int __newcolor );
void _Cdecl textcolor( int __newcolor );
void _Cdecl textmode( int __newmode );
void _Cdecl window( int __left, int __top, int __right, int __bottom);

void _Cdecl _setcursortype( int __cur_t );
char * _Cdecl cgets( char *__str );
int _Cdecl cprintf( const char *__format, ... );
int _Cdecl cputs( const char *__str );
int _Cdecl cscanf( const char *__format, ... );
char * _Cdecl getpass( const char *__prompt );
int _Cdecl ungetch( int __ch );

#endif /* !_Windows */

#ifndef _PORT_DEFS
#define _PORT_DEFS

/* These are in-line functions. These prototypes just clean up
some syntax checks and code generation.
*/
unsigned char _Cdecl __inportb__ (unsigned __portid);
unsigned _Cdecl __inportw__ (unsigned __portid);
unsigned char _Cdecl __outportb__(unsigned __portid, unsigned char __value);
unsigned _Cdecl __outportw__(unsigned __portid, unsigned __value);

#define inportb(__portid) __inportb__(__portid)
#define outportb(__portid, __value) ((void) __outportb__(__portid, __value))
#define inport(__portid) __inportw__(__portid)
#define outport(__portid, __value) ((void) __outportw__(__portid, __value))

/* MSC-compatible macros for port I/O */
#define inp(__portid) __inportb__ (__portid)
#define outp(__portid, __value) __outportb__(__portid, (unsigned char)__value)
#define inpw(__portid) __inportw__ (__portid)
#define outpw(__portid, __value) __outportw__(__portid, __value)

#endif /* _PORT_DEFS */

#ifdef __cplusplus
}
#endif


#endif /* __CONIO_H */
jeudi 7 août 2003 à 11:02:41 | Re : Fch. Header :: CONIO.H

loic81

c'est compatible W32?
J'ai un pb pour convertir les commandes inport et outport de DOS.h en commandes supportables par W32 ?
tu peux m'aider?
merci


-------------------------------
Réponse au message :
-------------------------------

> Pour ce que ca interesse (avec vc++ les fonctions suivantes e sont pas incluse (du moins je crois...))>>
>
>
> #if !defined(__CONIO_H)
> #define __CONIO_H
>
> #if !defined(___DEFS_H)
> #include <_defs.h>
> #endif
>
> #if !defined(_Windows)
>
> #define _NOCURSOR 0
> #define _SOLIDCURSOR 1
> #define _NORMALCURSOR 2
>
> struct text_info {
> unsigned char winleft;
> unsigned char wintop;
> unsigned char winright;
> unsigned char winbottom;
> unsigned char attribute;
> unsigned char normattr;
> unsigned char currmode;
> unsigned char screenheight;
> unsigned char screenwidth;
> unsigned char curx;
> unsigned char cury;
> };
>
> enum text_modes { LASTMODE=-1, BW40=0, C40, BW80, C80, MONO=7, C4350=64 };
>
> #if !defined(__COLORS)
> #define __COLORS
>
> enum COLORS {
> BLACK, /* dark colors */
> BLUE,
> GREEN,
> CYAN,
> RED,
> MAGENTA,
> BROWN,
> LIGHTGRAY,
> DARKGRAY, /* light colors */
> LIGHTBLUE,
> LIGHTGREEN,
> LIGHTCYAN,
> LIGHTRED,
> LIGHTMAGENTA,
> YELLOW,
> WHITE
> };
> #endif
>
> #define BLINK 128 /* blink bit */
>
> extern int _Cdecl directvideo;
> extern int _Cdecl _wscroll;
>
> #endif /* !_Windows */
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> void _Cdecl clreol( void );
> void _Cdecl clrscr( void );
> void _Cdecl gotoxy( int __x, int __y );
> int _Cdecl wherex( void );
> int _Cdecl wherey( void );
> int _Cdecl getch( void );
> int _Cdecl getche( void );
> int _Cdecl kbhit( void );
> int _Cdecl putch( int __c );
>
> #ifndef _PORT_DEFS
> unsigned char _Cdecl inportb( unsigned __portid );
> unsigned _Cdecl inport ( unsigned __portid );
> int _Cdecl inp( unsigned __portid );
> unsigned _Cdecl inpw( unsigned __portid );
> void _Cdecl outportb( unsigned __portid, unsigned char __value );
> void _Cdecl outport ( unsigned __portid, unsigned __value );
> int _Cdecl outp( unsigned __portid, int __value );
> unsigned _Cdecl outpw( unsigned __portid, unsigned __value );
> #endif /* !_PORT_DEFS */
>
> #if !defined(_Windows)
>
> void _Cdecl delline( void );
> int _Cdecl gettext( int __left, int __top,
> int __right, int __bottom,
> void *__destin);
> void _Cdecl gettextinfo (struct text_info *__r );
> void _Cdecl highvideo( void );
> void _Cdecl insline( void );
> void _Cdecl lowvideo( void );
> int _Cdecl movetext( int __left, int __top,
> int __right, int __bottom,
> int __destleft, int __desttop );
> void _Cdecl normvideo( void );
> int _Cdecl puttext( int __left, int __top,
> int __right, int __bottom,
> void *__source );
> void _Cdecl textattr( int __newattr );
> void _Cdecl textbackground( int __newcolor );
> void _Cdecl textcolor( int __newcolor );
> void _Cdecl textmode( int __newmode );
> void _Cdecl window( int __left, int __top, int __right, int __bottom);
>
> void _Cdecl _setcursortype( int __cur_t );
> char * _Cdecl cgets( char *__str );
> int _Cdecl cprintf( const char *__format, ... );
> int _Cdecl cputs( const char *__str );
> int _Cdecl cscanf( const char *__format, ... );
> char * _Cdecl getpass( const char *__prompt );
> int _Cdecl ungetch( int __ch );
>
> #endif /* !_Windows */
>
> #ifndef _PORT_DEFS
> #define _PORT_DEFS
>
> /* These are in-line functions. These prototypes just clean up
> some syntax checks and code generation.
> */
> unsigned char _Cdecl __inportb__ (unsigned __portid);
> unsigned _Cdecl __inportw__ (unsigned __portid);
> unsigned char _Cdecl __outportb__(unsigned __portid, unsigned char __value);
> unsigned _Cdecl __outportw__(unsigned __portid, unsigned __value);
>
> #define inportb(__portid) __inportb__(__portid)
> #define outportb(__portid, __value) ((void) __outportb__(__portid, __value))
> #define inport(__portid) __inportw__(__portid)
> #define outport(__portid, __value) ((void) __outportw__(__portid, __value))
>
> /* MSC-compatible macros for port I/O */
> #define inp(__portid) __inportb__ (__portid)
> #define outp(__portid, __value) __outportb__(__portid, (unsigned char)__value)
> #define inpw(__portid) __inportw__ (__portid)
> #define outpw(__portid, __value) __outportw__(__portid, __value)
>
> #endif /* _PORT_DEFS */
>
> #ifdef __cplusplus
> }
> #endif
>
>
> #endif /* __CONIO_H */
>
jeudi 24 mars 2005 à 22:17:02 | Re : Fch. Header :: CONIO.H

Tank01

Bonjour,

Ce code m'intéresse, mais que doit on en faire, un copié collé et l'enregsiter en tant ke bibliothèque?? .h? je suis un peut perdus !! merci

----( | TanK | )---- 


Cette discussion est classée dans : int, void, unsigned, cdecl, portid


Répondre à ce message

Sujets en rapport avec ce message

peek : probleme a la compilation. [ par Khahazad ] Bonjour, Lorsque je veux compiler ce code (que j'ai recupéré) avec dev-cpp Il genere des erreur que je n'arrive pas a corriger : [liker error] undef OpenGl bloqué par une Thread !? [ par spinzero ] Bonjour  J'ai une animation (win32) OpenGL à laquelle j'essaie d'intégrer de la synthese sonore avec la lib STK.(...a Affichage 0 et 1... [ par extremOne ] Bonjour à tous, voilà je débute un peu en langage C..Je me casse un peu la tete pour réaliser le jeu de la vie de Conway! J'ai fait des tas de recherc aide svp c++ [ par zied9992000 ] bonjour les amis, il ya une faute au niveau de l'operateur #include class basepile{public:int *p,taille;basepile(int);basepile(basepile&); Aide, résolution d'un taquin [ par Micha1177 ] Bonjour, Dans le cadre d'un projet, je doit élaborer une grille de taquin résoluble, et pouvoir effectuer le déplacement des cases, et ensuite concev un pti prob ... :s help [ par meksoft002 ] Bonjour, c'est ma première participation en vue que vous pourrez resoudre mon problème ..voila...je vouderais mettre en oeuvre un tableau d'objets "pe c++ [ par zizota ] bonsoir,je suis débutante en c++ et j'ai trouvé  un code sur netmais j'ai rien compriunsigned int index;      unsigned long int count[2];   index = (u qu'en pensez vous?? besoin d'aide!! lol [ par nelly77 ] bonjour je voudrai créer un tableau avec une liste de produits ayant des attributs comme  leur nom, leur etat dans un stock, la duree de fabrication e Problème de tabeau dans un code orienté objet [ par Guiiil ] Bonsoir, je débute actuellement en C++ orienté objet et je suis bloqué avec ce programme qui doit réaliser un tableau d'élèves, prendre leur moyenne e conjugaison en c++ [ par abdelali62 ] Bonsoir tt le monde c'est mon premier programme en c++ j'ai trouve une difficulter a implante le code de la fonction main mais je vais pas besser les


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,671 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales