Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Move implementation to source bug

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
pwc Posted - Dec 10 2015 : 3:55:39 PM
Hi,

The 'move implementation to source file' drops the const modifier if COM macros are used.

In a header file:


class Test
{
public:
	STDMETHOD(GetValue)(const wchar_t** val) const { return E_NOTIMPL; }
	bool GetValue2(double** val) const { return false; }
};


If you execute the command on the GetValue function, you'll get this in the cpp file:


STDMETHODIMP Test::GetValue(const wchar_t** val)
{
	return E_NOTIMPL;
}


Notice that const is missing from the end - the generated code will not compile. I am pleased to see that VAX know to convert STDMETHOD to STDMETHODIMP - very nice.

Doing the same operation on GetValue2 works fine.

Thanks,
Paul
2   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 11 2015 : 12:54:17 AM
I am seeing the same effect here. Thank you for the clear description.

case=90095
pwc Posted - Dec 10 2015 : 3:56:43 PM
Sorry, I forgot to include my system info:

License:
VA_X.dll file version 10.9.2076.0 built 2015.09.15
DevEnv.exe version 12.0.31101.0 Ultimate
msenv.dll version 12.0.31101.0
Comctl32.dll version 6.10.9600.18006
Windows 8.1 6.3 Build 9600
12 processors (x86-64, WOW64)
Language info: 1252, 0x409

Platform: Project defined
Stable Includes:
C:\\Program Files (x86)\\Windows Kits\\8.1\\Include\\winrt;
C:\\Program Files (x86)\\Windows Kits\\8.1\\Include\\shared;
C:\\Program Files (x86)\\Windows Kits\\8.1\\Include\\um;
C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\atlmfc\\include;
C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\include;

Other Includes:

Stable Source Directories:
C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\crt\\src;
C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\atlmfc\\src\\atl;
C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\atlmfc\\src\\mfc;

-Paul

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