Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Convert dot to... and bracket
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

__Daniel__
Senior Member

Poland
36 Posts

Posted - Nov 23 2009 :  07:08:11 AM  Show Profile  Reply with Quote
Hello.
( selected ) Convert dot to ->
( selected ) Convert dot to -> if operator...

t.h:
#pragma once

class CTest
{
public:
	int Get() const;
};

void Fun( CTest* p );


main file:
#include "stdafx.h"
#include "t.h"
#include <memory>

int _tmain(int argc, _TCHAR* argv[])
{
	std::auto_ptr< CTest > p;
	// insert code here
	return 0;
}


I try type Fun( p.get() );
Type: ( | - cursor )
1. Fun(|);
2. Fun( p|);
3. Fun( p.|); -> Fun( p->|); ( vsassist )
4. Backspace ( for change "->" to "." )
5. Unfortunately appears: Fun( p->
6. Backspace, backspace, dot, backspace - at last: Fun( p.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 23 2009 :  4:02:41 PM  Show Profile  Reply with Quote
Just press alt+backspace (undo), it will replace the -> to . because we put . into the undo buffer before replace it to ->
Go to Top of Page

__Daniel__
Senior Member

Poland
36 Posts

Posted - Nov 24 2009 :  03:37:42 AM  Show Profile  Reply with Quote
Thanks :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000