Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Scurgere catre hazna

De la 24V la 5V DC?

Deducere TVA

Intalnire cu un tip de pe tinder ...
 Open WRT nu sincronizeaza ceasul ...

salariu plafonat

sistem actionare electrica pentru...

Sfaturi achizitie auto ~10k€
 ICC/ICM soft monitorizare si cont...

Recomandare ipad

Ce fel de disc pentru acest circu...

Windows 11 24H2 pe release?
 Intrebare motor auto

Opel Astra K

Romania - tara formelor fara fond?

Probleme sistem audio mașina
 

Imi arata erori!

* - - - - 1 votes
  • Please log in to reply
17 replies to this topic

#1
MihaiGamerXD

MihaiGamerXD

    New Member

  • Grup: Junior Members
  • Posts: 6
  • Înscris: 04.03.2019
Salutare tuturor! Am o problema cu C++! Imi arata mii de erori cand incerc sa creez un joc care foloseste directdraw!
Asa imi arata:
Severity Code Description Project File Line Suppression State
Error (active) E0153 expression must have class type DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 236
Error (active) E0153 expression must have class type DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 235
Error (active) E0153 expression must have class type DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 236
Error (active) E0018 expected a ')' DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 236
Error (active) E0127 expected a statement DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 238
Error (active) E0169 expected a declaration DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 240
Error (active) E0169 expected a declaration DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 251
Error (active) E0077 this declaration has no storage class or type specifier DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 262
Error (active) E0065 expected a ';' DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 262
Error (active) E0077 this declaration has no storage class or type specifier DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 263
Error (active) E0065 expected a ';' DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 263
Error (active) E0077 this declaration has no storage class or type specifier DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 268
Error (active) E0065 expected a ';' DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 268
Error (active) E0020 identifier "lpDDSOne" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 287
Error (active) E0020 identifier "lpDDSMySprite" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 298
Error (active) E0020 identifier "lpDDSOne" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 322
Error (active) E0020 identifier "lpDDPal" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 328
Error (active) E0020 identifier "lpClipper" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 380
Error (active) E0020 identifier "ddWnd" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 439
Error (active) E0077 this declaration has no storage class or type specifier DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 452
Error (active) E0020 identifier "rcRectDest" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 452
Error (active) E0020 identifier "rcRectSrc" is undefined DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 452
Error (active) E0169 expected a declaration DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 453
Error (active) E0169 expected a declaration DDraw c:\Users\dell\source\repos\DDraw\DDraw\ddraw.cpp 460
Error C3861 'CreateOffScreenSurface': identifier not found DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 129
Error C3861 'DDCopyBitmap': identifier not found DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 131
Error C2228 left of '.peRed' must have class/struct/union DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 235
Error C2228 left of '.peRed' must have class/struct/union DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 236
Error C2228 left of '.peBlue' must have class/struct/union DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 236
Error C2146 syntax error: missing ')' before identifier 'ape' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 237
Error C2059 syntax error: ';' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 237
Error C2228 left of '.peBlue' must have class/struct/union DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 237
Error C2065 'r': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 237
Error C2059 syntax error: 'if' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 240
Error C2143 syntax error: missing ';' before '{' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 241
Error C2447 '{': missing function header (old-style formal list?) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 241
Error C2059 syntax error: 'else' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 244
Error C2143 syntax error: missing ';' before '{' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 244
Error C2447 '{': missing function header (old-style formal list?) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 244
Error C2059 syntax error: '}' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 247
Error C2143 syntax error: missing ';' before '}' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 247
Error C2059 syntax error: 'if' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 251
Error C3927 '->': trailing return type is not allowed after a non-function declarator DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 262
Error C3484 syntax error: expected '->' before the return type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 262
Error C3613 missing return type after '->' ('int' assumed) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 262
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 262
Error C2371 'ddck': redefinition; different basic types DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 262
Error C2146 syntax error: missing ';' before identifier 'dwColorSpaceLowValue' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 262
Error C3927 '->': trailing return type is not allowed after a non-function declarator DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 263
Error C3484 syntax error: expected '->' before the return type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 263
Error C3613 missing return type after '->' ('int' assumed) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 263
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 263
Error C2371 'ddck': redefinition; different basic types DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 263
Error C2146 syntax error: missing ';' before identifier 'dwColorSpaceHighValue' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 263
Error C3927 '->': trailing return type is not allowed after a non-function declarator DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 268
Error C3613 missing return type after '->' ('int' assumed) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 268
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 268
Error C2146 syntax error: missing ';' before identifier 'SetColorKey' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 268
Error C2065 'lpDDSOne': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 287
Error C2065 'lpDDSMySprite': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 298
Error C2065 'lpDDSOne': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 322
Error C2065 'lpDDSOne': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 324
Error C2227 left of '->Release' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 324
Error C2065 'lpDDSOne': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 325
Error C2065 'lpDDPal': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 328
Error C2065 'lpDDPal': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 330
Error C2227 left of '->Release' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 330
Error C2065 'lpDDPal': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 331
Error C2065 'lpClipper': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 380
Error C2065 'lpClipper': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 389
Error C2227 left of '->SetHWnd' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 389
Error C2065 'lpClipper': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 392
Error C2227 left of '->Release' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 392
Error C2065 'lpClipper': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 399
Error C2065 'lpClipper': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 402
Error C2227 left of '->Release' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 402
Error C2065 'lpClipper': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 419
Error C2227 left of '->Release' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 419
Error C2065 'ddWnd': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 439
Error C2065 'ddWnd': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 440
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 452
Error C2065 'rcRectDest': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 452
Error C2065 'rcRectSrc': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 452
Error C2059 syntax error: 'if' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 453
Error C2143 syntax error: missing ';' before '{' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 454
Error C2447 '{': missing function header (old-style formal list?) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 454
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 458
Error C2374 'ddrval': redefinition; multiple initialization DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 458
Error C2059 syntax error: 'if' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 460
Error C2143 syntax error: missing ';' before '{' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 461
Error C2447 '{': missing function header (old-style formal list?) DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 461
Error C2059 syntax error: ':' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 464
Error C2059 syntax error: ':' DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 465
Error C2065 'lpMyDDSurface': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 470
Error C2227 left of '->Restore' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 470
Error C2065 'lpTempDDS': undeclared identifier DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 473
Error C2227 left of '->DDReLoadBitmap' must point to class/struct/union/generic type DDraw c:\users\dell\source\repos\ddraw\ddraw\ddraw.cpp 473

Si nu stiu ce sa fac! Va rog frumos, puteti sa ma ajutati si pe mine cum sa repar aceasta problema? Multumesc!
Eu folosesc Visual Studio 2017!

Attached Files

  • Attached File  DDraw.7z   11.25MB   9 downloads

Edited by MihaiGamerXD, 04 March 2019 - 17:54.


#2
buyonevideo

buyonevideo

    STATI ACASA !! :)

  • Grup: Senior Members
  • Posts: 7,442
  • Înscris: 06.02.2016
Cum adica ce sa faci.
iei fiecare eroare pe rind si o corectezi.
Crezi ca noi stam sa corectam mii de erori ?!

#3
MihaiGamerXD

MihaiGamerXD

    New Member

  • Grup: Junior Members
  • Posts: 6
  • Înscris: 04.03.2019
Dar eu doar am copiat ce zicea de pe net!

#4
buyonevideo

buyonevideo

    STATI ACASA !! :)

  • Grup: Senior Members
  • Posts: 7,442
  • Înscris: 06.02.2016
Inseamna ca ai inceput prost, alege si tu un program mai mic, nu direct joc Posted Image
Si ce treaba are copiat cu corectat ?!
Ah, nu stii sa corectezi ?1
Pai, invata limbajul si apoi te arunci la jocuri.

Edited by buyonevideo, 04 March 2019 - 18:23.


#5
MihaiGamerXD

MihaiGamerXD

    New Member

  • Grup: Junior Members
  • Posts: 6
  • Înscris: 04.03.2019
...Asta ce vrea sa insemne?!

#6
buyonevideo

buyonevideo

    STATI ACASA !! :)

  • Grup: Senior Members
  • Posts: 7,442
  • Înscris: 06.02.2016
Cum adica ce vrea sa insemne ?!
Vrea sa insemne ca, si daca iti corectam noi miile de erori, tot nu o sa intelegi nimic din codul sursa corectat.
Si inseamna si exact ce am zis deja anterior....

#7
MihaiGamerXD

MihaiGamerXD

    New Member

  • Grup: Junior Members
  • Posts: 6
  • Înscris: 04.03.2019
Aha! Deci sa zicem ca nu vrei sa ma ajuti! Este?! Daca da, atunci bine ma! Ma duc sa vad singur ce e gresit, daca tot asa asa nu merge, inseamna ca e de la program!

#8
ianos777

ianos777

    Active Member

  • Grup: Members
  • Posts: 1,738
  • Înscris: 07.02.2019

View PostMihaiGamerXD, on 04 martie 2019 - 18:24, said:

...Asta ce vrea sa insemne?!

...ca e un joc care se joaca cu noi si nu noi ne jucam cu el...adica jocul a preluat conducerea...

#9
OriginalCopy

OriginalCopy

    I'm harmful, fear me please! :))

  • Grup: Senior Members
  • Posts: 27,268
  • Înscris: 10.08.2006

View PostMihaiGamerXD, on 04 martie 2019 - 18:34, said:

Aha! Deci sa zicem ca nu vrei sa ma ajuti! Este?! Daca da, atunci bine ma! Ma duc sa vad singur ce e gresit, daca tot asa asa nu merge, inseamna ca e de la program!
Nu putem sa te ajutam sa zbori, daca tu nu stii nici macar sa privesti in zare.

Nu pentru ca suntem noi capcauni rai.

Ci pentru ca tu nu esti ajutabil.

Incerci sa faci prea multe, peste nivelul tau de competente.

#10
MihaiGamerXD

MihaiGamerXD

    New Member

  • Grup: Junior Members
  • Posts: 6
  • Înscris: 04.03.2019
Atunci cum fac putine?

#11
OriginalCopy

OriginalCopy

    I'm harmful, fear me please! :))

  • Grup: Senior Members
  • Posts: 27,268
  • Înscris: 10.08.2006

View PostMihaiGamerXD, on 04 martie 2019 - 18:48, said:

Atunci cum fac putine?
Iei o carte de programare si faci programe mai mici de la zero, tu cu manuta ta. Cand te lovesti de probleme cu acele programe mici, vii si intrebi punctual.

Faci asta timp de 1-2-3-5-10 ani, cat o fi nevoie (depinde doar de tine), si apoi vei reveni si la programul tau de ddraw, si erorile vor avea pur si simplu sens si vei sti cum sa le repari.

#12
MihaiGamerXD

MihaiGamerXD

    New Member

  • Grup: Junior Members
  • Posts: 6
  • Înscris: 04.03.2019
Ok! Multumesc!

#13
irinuca_popii13

irinuca_popii13

    New Member

  • Grup: Junior Members
  • Posts: 20
  • Înscris: 13.02.2018
Revii la setările originale.

#14
parabellum

parabellum

    Senior Member

  • Grup: Senior Members
  • Posts: 2,457
  • Înscris: 06.01.2010
De unde ai dat copy/paste la codul ala? Vezi ca ai dat copy/paste incomplet, iar unde e complet, e aiurea in multe cazuri (functii nedeclarate, apelate, apoi definite mai jos).

Ai bucati de cod puse total aiurea.

Adica, ce ti s-a spus si mai sus.

#15
buyonevideo

buyonevideo

    STATI ACASA !! :)

  • Grup: Senior Members
  • Posts: 7,442
  • Înscris: 06.02.2016
Ori ai 12 ani
Ori glumesti cu noi
Ce este asa greu de inteles ?!
Faci un tutorial simplu simplu: Hello world ;)
Dupa aia unul nitel mai cplicat: Hello fu**ers !
Dupa aia.... te-ai prins de poanta ?!

#16
dani.user

dani.user

    Guru Member

  • Grup: Senior Members
  • Posts: 30,270
  • Înscris: 24.02.2007
https://forum.softpe...-c-sub-windows/

#17
jobist

jobist

    Senior Member

  • Grup: Senior Members
  • Posts: 2,746
  • Înscris: 23.04.2010
Astea-s întâmplări de începători!
S-ar putea ca toată lista de erori să fie generată de la lipsa ';' sau paranteză.
Stai să vezi ce rezultate/erori obții la execuție când pui valori într-un vector depășind dimensiunea lui.

#18
MarianG

MarianG

    be that as it may

  • Grup: Moderators
  • Posts: 31,521
  • Înscris: 10.08.2005
O parte din ele da, dar nu toate.
Din pacate erorile sunt destul de explicite, nu inteleg ce e greu de mers la linia indicata si remediat problema exprimata in enunt.

Anunturi

Chirurgia cranio-cerebrală minim invazivă Chirurgia cranio-cerebrală minim invazivă

Tehnicile minim invazive impun utilizarea unei tehnologii ultramoderne.

Endoscoapele operatorii de diverse tipuri, microscopul operator dedicat, neuronavigația, neuroelectrofiziologia, tehnicile avansate de anestezie, chirurgia cu pacientul treaz reprezintă armamentarium fără de care neurochirurgia prin "gaura cheii" nu ar fi posibilă. Folosind tehnicile de mai sus, tratăm un spectru larg de patologii cranio-cerebrale.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate