Nullptr help

02/14/2019 08:42 babyminion#1
Code:
Nullptr Fixed!
Other error:
Code:
C:\Flyff\Source\_Interface\WndWorld.cpp(546): error C2143: syntax error : missing ',' before ':'
C:\Flyff\Source\_Interface\WndWorld.cpp(547): error C2143: syntax error : missing ';' before '{'
C:\Flyff\Source\_Interface\WndWorld.cpp(548): error C2541: 'delete' : cannot delete objects that are not pointers
C:\Flyff\Source\_Interface\WndWorld.cpp(550): fatal error C1903: unable to recover from previous error(s); stopping compilation
Codes
Code:
	CDropListRender::~CDropListRender()
	{
		for (auto pItem : mItemList)
		{
			delete pItem;
		}
	}

	void CDropListRender::Process()
02/14/2019 10:21 -Valor#2
WndWorld.cpp
Line 546 - syntax error : missing ',' before ':'
Line 547 - syntax error : missing ';' before '{'
02/14/2019 10:30 SEDU ✔#3
holy shit it literally says there what's wrong
02/14/2019 10:31 babyminion#4
Quote:
Originally Posted by -Valor View Post
WndWorld.cpp
Line 546 - syntax error : missing ',' before ':'
Line 547 - syntax error : missing ';' before '{'
i did this :confused:
Code:
	CDropListRender::~CDropListRender()
	{
		for (auto pItem, : mItemList);
		{
			delete pItem;
		}
	}

	void CDropListRender::Process()
and this is what i got
Code:
C:\Flyff\Source\_Interface\WndWorld.cpp(546): error C2059: syntax error : ':'
02/14/2019 11:02 ディオニュソス#5
Quote:
Originally Posted by babyminion View Post
i did this :confused:
Code:
	CDropListRender::~CDropListRender()
	{
		for (auto pItem, : mItemList);
		{
			delete pItem;
		}
	}

	void CDropListRender::Process()
and this is what i got
Code:
C:\Flyff\Source\_Interface\WndWorld.cpp(546): error C2059: syntax error : ':'
Range based for loops don't exist in visual studio 2003 and you're a goddamn moron
02/14/2019 11:11 babyminion#6
Sorry as you can see on my signiture i am just a leecher and i just need help to figure it out. goddamn triggerd moron :lul:
02/14/2019 13:46 ディオニュソス#7
Quote:
Originally Posted by babyminion View Post
Sorry as you can see on my signiture i am just a leecher and i just need help to figure it out. goddamn triggerd moron :lul:
You should replace that with #scum
02/14/2019 15:48 netHoxInc#8
Honestly... give up coding. Thats the only thing i can say without being rude.

Your lack of competence on reading one of the most simple errors just triggers everyone which is fairly understandable.

If u want to leech, leech a complete source which is known to work. But srsly never even try again to modify such. Its unimaginable that you'll ever succeed without being spoon fed. And that again might be the worst way of leeching.

Good luck further. And dont hesistate to simply drop all your coding projects.

Kind regards,net.
02/14/2019 22:01 Avalion#9
Switch the for-range loop to an iterator loop if you're using the code on vs2003 and you wont be able to use auto.
02/15/2019 04:11 babyminion#10
Quote:
Originally Posted by netHoxInc View Post
Honestly... give up coding. Thats the only thing i can say without being rude.

Your lack of competence on reading one of the most simple errors just triggers everyone which is fairly understandable.

If u want to leech, leech a complete source which is known to work. But srsly never even try again to modify such. Its unimaginable that you'll ever succeed without being spoon fed. And that again might be the worst way of leeching.

Good luck further. And dont hesistate to simply drop all your coding projects.

Kind regards,net.
Thanks sir :handsdown:

Quote:
Originally Posted by Avalion View Post
Switch the for-range loop to an iterator loop if you're using the code on vs2003 and you wont be able to use auto.
Thanks for advise :handsdown: