Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Auto complete problem with using directive

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Cpptoast Posted - Mar 18 2009 : 3:22:43 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 02 2016 : 7:54:41 PM
case=25208 was a duplicate of case=4135.
case=4135 is fixed in build 2089.
accord Posted - Mar 18 2009 : 5:53:46 PM
I am seeing the same effect here. Thank you for the clear description.

case=25208

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000