Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 strange maps...

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
ULeas Posted - May 06 2006 : 1:11:54 PM
VA_X.dll file version 10.2.1445.0 built 2006.04.12
Licensed to:
VA X:
VA.NET 7.1:
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.4.15
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

WinXP SP2 Professional.



i have found out a strange thing when i used std::map in my project. To check the error i have created a new project and copied the part of the code that gives this error, and the error appeared again.

The symptom is the following: the members of an iterator-bool pair, that is returned by the method map<...>::insert(...) aren't shown correctly. here is the code (from a console application i have created for test, but the data types are those i need in the original project, with other data types i don't get the error):

#include "stdafx.h"
#include "vatest.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// The one and only application object

CWinApp theApp;

using namespace std;
#include <map>


class TSrcData {
public:
	CString	name;
	bool	checked;

	CWnd	*hWnd;

	TSrcData(const char * n = "", bool c = false){
		name = n;
		checked = c;
		hWnd = 0;
	};

	TSrcData(const TSrcData & src){
		name = src.name;
		checked = src.checked;
		hWnd = src.hWnd;
	};

	~TSrcData(){
		if(hWnd)
			delete hWnd;
	};

	TSrcData & operator=(TSrcData& right){
		name = right.name;
		checked = right.checked;
		hWnd = right.hWnd;
		return *this;
	};
};

typedef std::map< int, TSrcData > TSrcMap;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
	int nRetCode = 0;

	// initialize MFC and print and error on failure
	if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
	{
		// TODO: change error code to suit your needs
		_tprintf(_T("Fatal Error: MFC initialization failed\\n"));
		nRetCode = 1;
	}
	else
	{

		TSrcMap::_Pairib	ip;
		TSrcMap	src_map;
		int		ID = 5;

		TSrcData	sd("name",true);
		ip = src_map.insert(TSrcMap::value_type(ID,sd));
		if(ip./* here the member list is strange */second){
			ip.first->/*here the member list is just incorrect*/second./*not saying about TSrcData members*/;
		}

	}

	return nRetCode;
}


	}

	return nRetCode;
}



i have made some screenshots, but i don't know jet how to insert them...


P.S. the screenshots are sent to the support with the id of this topic.
3   L A T E S T    R E P L I E S    (Newest First)
rhummer Posted - May 06 2006 : 3:54:28 PM
http://www.wholetomato.com/products/features/members.html?more=yes&goto=defaultIntellisense

Will explain what that option does.

But yes, that is the solution. That link will explain it, and no VAX will still do its own parsing.
ULeas Posted - May 06 2006 : 2:08:50 PM
first of all, here are the pics:
(the strange one)


(the incorrect one)


rhummer, thanx a lot for the imageshack, i died trying to find a site like this one..

and the "Get contents from default intellisense" option was turned off, when i turned it on i got the corret result.

so is this the solution? and also, does the option mean that VA will not do it's own parsing any more?
rhummer Posted - May 06 2006 : 1:35:05 PM
Screen shots would be useful, upload them to imageshack.us to link them here ;)

Do you have "Get contents from default intellisense" turned on or off?

I am seeing first and second listed when I do ip. ( With Get Contents from Default Intellisense off )



This is with Get Contents from Default Intellisense on )



Though I am seeing not all the valid data listed when I do ip.second->

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