Click here to Skip to main content
15,907,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Program set Pin
CPallini24-Oct-22 22:20
mveCPallini24-Oct-22 22:20 
QuestionC++ Shellcode process returned -1073741819 (0xC0000005) Pin
Ben kubi20-Oct-22 4:56
Ben kubi20-Oct-22 4:56 
AnswerRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Richard MacCutchan20-Oct-22 5:41
mveRichard MacCutchan20-Oct-22 5:41 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Ben kubi20-Oct-22 5:53
Ben kubi20-Oct-22 5:53 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Victor Nijegorodov20-Oct-22 6:01
Victor Nijegorodov20-Oct-22 6:01 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Richard MacCutchan20-Oct-22 6:36
mveRichard MacCutchan20-Oct-22 6:36 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Ben kubi20-Oct-22 6:50
Ben kubi20-Oct-22 6:50 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Victor Nijegorodov20-Oct-22 10:46
Victor Nijegorodov20-Oct-22 10:46 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Ben kubi20-Oct-22 11:32
Ben kubi20-Oct-22 11:32 
GeneralRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Richard MacCutchan20-Oct-22 20:38
mveRichard MacCutchan20-Oct-22 20:38 
AnswerRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Mircea Neacsu20-Oct-22 14:04
Mircea Neacsu20-Oct-22 14:04 
AnswerRe: C++ Shellcode process returned -1073741819 (0xC0000005) Pin
Richard MacCutchan20-Oct-22 21:01
mveRichard MacCutchan20-Oct-22 21:01 
QuestionCannot initialize iterator with vector type defined in class Pin
ForNow12-Oct-22 16:40
ForNow12-Oct-22 16:40 
AnswerRe: Cannot initialize iterator with vector type defined in class Pin
CPallini12-Oct-22 21:42
mveCPallini12-Oct-22 21:42 
QuestionCreate a Makefile from this mess Pin
pkfox8-Oct-22 2:56
professionalpkfox8-Oct-22 2:56 
AnswerRe: Create a Makefile from this mess Pin
Richard MacCutchan8-Oct-22 5:34
mveRichard MacCutchan8-Oct-22 5:34 
GeneralRe: Create a Makefile from this mess Pin
pkfox8-Oct-22 5:42
professionalpkfox8-Oct-22 5:42 
GeneralRe: Create a Makefile from this mess Pin
Richard MacCutchan8-Oct-22 5:57
mveRichard MacCutchan8-Oct-22 5:57 
GeneralRe: Create a Makefile from this mess Pin
pkfox8-Oct-22 6:17
professionalpkfox8-Oct-22 6:17 
AnswerRe: Create a Makefile from this mess Pin
k505413-Oct-22 5:53
mvek505413-Oct-22 5:53 
GeneralRe: Create a Makefile from this mess Pin
pkfox13-Oct-22 21:40
professionalpkfox13-Oct-22 21:40 
GeneralRe: Create a Makefile from this mess Pin
k505414-Oct-22 4:13
mvek505414-Oct-22 4:13 
QuestionIs this array of 2D vectors? Pin
Sk. Azraf Sami7-Oct-22 20:32
Sk. Azraf Sami7-Oct-22 20:32 
AnswerRe: Is this array of 2D vectors? Pin
Richard MacCutchan7-Oct-22 21:35
mveRichard MacCutchan7-Oct-22 21:35 
QuestionStyle question Pin
Mircea Neacsu3-Oct-22 15:33
Mircea Neacsu3-Oct-22 15:33 
I have a C++ function that takes as argument an iterator and needs to increment it without passing the end of the container. I can write it as:
variant A:
C++
bool func (std::string::iterator& ptr, std::string& container)
{
  //...
  if (ptr != container.end())
    //do stuff
}
and call it as:
C++
func (s.begin(), s);

or I could write it as
variant B:
C++
bool func (std::string::interator& ptr, std::string::const_iterator& limit)
{
  //...
  if (ptr != limit)
    //do stuff
}
and call it as:
C++
func (s.begin(), s.end());

(the example assumes the container is a string but that's not important)

Which one would you favor?
Mircea

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.