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
 __declspec(dllexport) not recognized in outline.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DanH
New Member

USA
2 Posts

Posted - Mar 06 2010 :  2:28:38 PM  Show Profile  Reply with Quote
When using the Va Outline to re-organize code the __declspec(dllexport) is not recognized as part of the function signature.

The "__declspec(dllexport)" tag remains behind while the resst of the function is moved.

In addition, if you highlight an exported function via the outline window, and surround with a #pragma region, the #pragma region is placed after the "__declspec(dllexport)", and before the return value.

sample code:


__declspec(dllexport) int GetDeviceCount ( )
{
    return pDeviceManager->GetDeviceCount();
}


Normaly this is a real time saver, but this issue has left my DLL code completely disorganized, and useless.

Thanks,

feline
Whole Tomato Software

United Kingdom
18948 Posts

Posted - Mar 08 2010 :  1:42:41 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=40680

As a temporary workaround, if you change the code to look like this:

#define DLL_EXPORTING __declspec(dllexport)

DLL_EXPORTING int GetDeviceCount ( )
{
	return pDeviceManager->GetDeviceCount();
}


this fixes the problem for me.

zen is the art of being at one with the two'ness

Edited by - sean on Mar 08 2010 1:44:09 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 10 2010 :  9:27:24 PM  Show Profile  Reply with Quote
case=40860 is fixed in build 1819

Whole Tomato Software, Inc.
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