Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
erase
- Page 1
Erase GDI+ Drawn Image?
Programming
Software Development
16 Years Ago
by I_want_to_lean
… want to when the button is in the down state,
erase
the normal state png and draw the new Down state… redraws and the back png gets erased. How can i
erase
the back png without having to move the dialog off…,rect);//Upstate Image } dc.Detach(); } BOOL MyButton::OnEraseBkgnd(CDC* pDC) //
erase
the BG so it's transparent and not grey…
Re: Erase GDI+ Drawn Image?
Programming
Software Development
16 Years Ago
by I_want_to_lean
[QUOTE=almostbob;784422]I only have one image, twice the size of the button, with two states/pictures in the image, and css position it up for the up and down for the down. Never learned to
erase
either {:([/QUOTE] I heard you can't
erase
but redraw,but i don't know how to redraw the whole window.
Re: Erase GDI+ Drawn Image?
Programming
Software Development
16 Years Ago
by almostbob
I only have one image, twice the size of the button, with two states/pictures in the image, and css position it up for the up and down for the down. Never learned to
erase
either {:(
Re: Erase GDI+ Drawn Image?
Programming
Software Development
16 Years Ago
by Nick Evan
[QUOTE=I_want_to_lean;784436]I heard you can't
erase
but redraw,but i don't know how to redraw the whole window.[/QUOTE] [ICODE]this->Refresh();[/ICODE] ? Bumping your thread every few hours won't make you very populair..
Erase external hard drive
Hardware and Software
macOS
16 Years Ago
by petertucker48
… re appearing every 10 seconds or so. Have tried to
Erase
the whole Disk and start again but get: "Disk…
Erase
failed with the error ""could not un mount …
erase file and create a random string
Programming
Software Development
17 Years Ago
by donaldunca
I have some problems: - How can I
erase
a file? - How can I create a random string has …
Erase and Rekey Startup OS
Hardware and Software
Microsoft Windows
16 Years Ago
by loyd
… hard drive via the web. 1-I would like to
erase
the "XP Startup" line from a Top Secret…
Re: Vector of strings and erase result?!
Programming
Software Development
14 Years Ago
by gerard4143
Erase
will call the string's destructor hence destroying the string object.
Better way to erase elements from a std::list?
Programming
Software Development
13 Years Ago
by Jsplinter
…// Fill list with int values... // Find ints == 4 and
erase
them auto it = m_list.begin(); if (*it == 4) {….end()) { ++it; if (*it == 4) { it = m_list.
erase
(it); } } [/CODE] This code works fine, but it seems wordy… ++it) { if (*it == 4) { it = m_list.
erase
(it); } }[/CODE] But when the last element in the list…
Last Bug to Fix - Vector Erase Problems
Programming
Software Development
15 Years Ago
by swolll
…it in everyway possible (ie - playlist.at(j).
erase
(); and many other variations) [CODE] else if(… if(songDelete == playlist.at(j).getSongName()) { playlist.
erase
(j); cout << "The song has… if(songDelete == playlist.at(j).getSongName()) { playlist.
erase
(j); cout << "The song has…
Quick question about std::vector.erase()
Programming
Software Development
14 Years Ago
by Andreas5
… vector class, and as a excersise i have written an
erase
() member function. My solution allocates new memory, with the… the old storage. Is this the fastest way to
erase
? The code has typedefs and functions but here it …]template <class T> void Vec<T>::
erase
(iterator& begin, iterator& end) { if(begin) { // …
Re: Last Bug to Fix - Vector Erase Problems
Programming
Software Development
15 Years Ago
by Agni
These are the 2 overloaded declarations of
erase
in vector: [code] iterator
erase
( iterator loc ); iterator
erase
( iterator start, iterator end ); [/code] Both of them take an iterator as argument and not int
Re: vector::erase
Programming
Software Development
17 Years Ago
by vijayan121
…must use the return value of [ICODE]container::
erase
[/ICODE]. the return value is a vald iterator…!= vec.end() ) { if( ( *iter % 2 ) == 0 ) iter = vec.
erase
( iter ) ; else ++iter ; }[/code] to remove duplicate elements that are…[ICODE]std::unique[/ICODE]. for example, this will
erase
adjacent duplicate elements from the vector. [code=c…
Which Library to use Insert + Erase
Programming
Software Development
15 Years Ago
by gretty
…to reverse the contents. I am using insert &
erase
function to reverse the array,[B] although I dont know…use & the correct syntax of the commands(insert &
erase
)? [/B] Libraries: [QUOTE] dequeue list map string set multimap …i],a[n-i]); // is this the correct sytax??
erase
(a[n-i]); // or should it be a[i].…
Re: Quick question about std::vector.erase()
Programming
Software Development
14 Years Ago
by arkoenig
… has a few problems. First, the C++ standard defines [icode]
erase
[/icode] to work by copying elements from the part of…
Re: Quick question about std::vector.erase()
Programming
Software Development
14 Years Ago
by Andreas5
…]template <class T> void Vec<T>::
erase
(const iterator& begin, const iterator& end) { if(begin…
vector erase : confused?
Programming
Software Development
14 Years Ago
by ielo
…knew how to use vector and manage insert, push_back and
erase
, but apparently I don't. I encounter an unexpected… outcome when i attempt to
erase
the second element in a vector of four: the …<CZo>::iterator CBl::deleteZo( int iZo ) { return vZo.
erase
( vZo.begin() + iZo ); } [/CODE] and a main.cpp: […
Re: C++ '.erase()' function giving trouble
Programming
Software Development
16 Years Ago
by JameB
…0; i < inp.length(); i++) { if( inp[i] == '~') inp.
erase
(i,1); } [/code][/QUOTE] That is whats not working. It…; strlen(inp.c_str()); i++) { if (inp[i] == 126) { inp.
erase
(i, 1); } } [/code] So if I input "~~~~" then…four of them. I think its because when you
erase
the character the next one takes its place and …
Re: vector erase : confused?
Programming
Software Development
14 Years Ago
by gerard4143
Are you sure you didn't invalidate your iterators when you called
erase
...Try reinitializing you iterators after your call to
erase
and see if it displays properly.
how to erase stored data in chart from VB
Programming
Software Development
17 Years Ago
by mariegomez84
… there!!! And I don't know how to
erase
it. I tried with "
erase
" command, but it doesn't work…
vector::erase
Programming
Software Development
17 Years Ago
by adnanius
…m trying to 'reduce' a vector using the
erase
algorithm within a for loop. The idea is …tps_arrive) == ((*(iter+1)).tps_arrive) ) { ((*iter).ponderation)++; ((*this).tab_photon).
erase
(iter+1); itertracker=iter; } } }[/CODE] I found this on a…
Re: vector::erase
Programming
Software Development
17 Years Ago
by Ancient Dragon
… over again. Example here: The program will crash after the
erase
() is executed unless the break statement is there to stop… = 0; it != array.end(); it++, i++) { if(i == 5) { array.
erase
(it); break; } cout << *it << "\n…
how to clear/erase the content of a window in visual c++?
Programming
Software Development
16 Years Ago
by noraantonia
…;New" menu from the File menu it doesn't
erase
or clear my drawing :( I don't know why. Can… or in CMainFrame? What should i write in it to
erase
my background after i draw something and to provide a…
how to clear/erase the content of the window in visual c++ 6.0?
Programming
Software Development
16 Years Ago
by noraantonia
…;New" menu from the File menu it doesn't
erase
or clear my drawing I don't know why. Can… or in CMainFrame? What should i write in it to
erase
my background after i draw something and to provide a…
Re: C++ '.erase()' function giving trouble
Programming
Software Development
16 Years Ago
by jencas
… the beginning every time, just use the iterator returned by
erase
(): [code] string foo(string& inp) { string::iterator it = inp….begin(); for(; it != inp.end(); ++it) { if( *it == '~') { it = inp.
erase
(it); // because
erase
() invalidates iterator!!! } } return inp; } [/code]
Re: C++ vector erase
Programming
Software Development
15 Years Ago
by twomers
… argument. [url]http://www.cplusplus.com/reference/stl/vector/
erase
/[/url] [code]std::vector<randomType> myVec; …iter = myVec.begin(); // Points to the first element myVec.
erase
( iter ); // Will delete the first element // Delete a….end(), value ); if ( iter != myVec.end() ) myVec.
erase
( iter ); [/code]I didn't test this or anything. Just…
Re: vector erase : confused?
Programming
Software Development
14 Years Ago
by ielo
I understand erasing a vector element invalidates iterators - yet, in this case, I'm not relying on iterators. The issue has to do with data in one vector element found in another vector element after the
erase
call. Could this be related to destructors?
Re: Vector of strings and erase result?!
Programming
Software Development
14 Years Ago
by StuXYZ
…;a"; XX.push_back(PT(i,cx.str())); } //
Erase
some stuff: XX.
erase
(XX.begin()+3,XX.begin()+5); // Write it out…();Iter!=XX.end();Iter++) { if (Iter->first==3) XX.
erase
(Iter); // THIS INVALIDATES Iter. } [/code] Beyond that you will have…
Complicated Palindrome not using erase and other funcs
Programming
Software Development
13 Years Ago
by henrimontreal
…; 'Z') && pos != txt1.length()) { //txt[pos] = '\0'; txt1.
erase
(pos, 1); // get rid of punctuations and spaces // txt [txt… not have to make a copy of the string or
erase
any part of it. For the lettercount, this should be…
how to erase map of vector
Programming
Software Development
10 Years Ago
by shelton22
… want to iterate both SPLINKS and abcmap to find and
erase
elements that do not match in both containers; ie after…!=SPLINKS.end(); ++itspl) { if((*itspl)==itmap->second[n]) { abcmap.
erase
(itmap); } } } } But I get debug assertion failed! in both cases…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC