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
 Auto complete problem with using directive
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cpptoast
Starting Member

1 Posts

Posted - Mar 18 2009 :  3:22:43 PM  Show Profile  Reply with Quote
Environment: Visual Studio 2008
Language: C++/CLI
Visual Assist: 10.5.1715.0 (Trial version)

the using namespace directive seems to be confusing Visual Assist X. Fully qualified function definitions appear to help Visual Assist resolve the references, however since there is quite a bit of existing (and compiling) code, I would like to avoid changing the world.

Is there any way to get auto-complete and pre-compile error checking working without fully qualifying all the definitions?

Sample Code:

VXAssistTest.h
-----
#pragma once

using namespace System;

namespace VXAssistTest {
	public ref class Class1{
		void DoQualifiedStuff();
		void DoStuff();
		void DoMoreStuff();
	};
}


VXAssistTest.cpp
-----
#include "stdafx.h"
#include "VXAssistTest.h"

using namespace VXAssistTest;

void VXAssistTest::Class1::DoQualifiedStuff()
{
	// Visual Assist auto complete works fine.
	// No errors flagged.
	this->DoMoreStuff(); 
}

void Class1::DoStuff()
{
	// Auto complete does not work.
	// following line is flagged in error.
	this->DoMoreStuff();
}

void Class1::DoMoreStuff() {}


Thanks.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 18 2009 :  5:53:46 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=25208
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 02 2016 :  7:54:41 PM  Show Profile  Reply with Quote
case=25208 was a duplicate of case=4135.
case=4135 is fixed in build 2089.
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