Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 __declspec(dllexport) not recognized in outline.

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
DanH Posted - Mar 06 2010 : 2:28:38 PM
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,
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Apr 10 2010 : 9:27:24 PM
case=40860 is fixed in build 1819
feline Posted - Mar 08 2010 : 1:42:41 PM
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.

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