I am using Visual Studios 2005 version v8.0 (.NET framework v2.0) Hi Getting at error about _TEMPLATE_MEMBER typedef typename allocator<T>::_TEMPLATE_MEMBER rebind<T>::other _Alloc; I think it's something to do with _TEMPLATE_MEMBER and it only being know in ealier versions of visual sudios Anybody know anything about it???????????????:confused:
steph5
Posts
-
error concerning _TEMPLATE_MEMBER -
calling a static member functionThanks for the comprehensive answer Mark. Really appreciate it :)
-
calling a static member functionHi Guys I am working with Visual Stusios 2005. I have a solution with 2 projects in it. Can I call a static member function that is declared in one project from the other project? OtherProjectClass::StaticMemberFunction(variables); At the moment I get error LNK2019 Thanks:confused:
-
erasing an element from a static vector.great got it working thanks for your help :)
-
erasing an element from a static vector.Hi I have declared static vectors in a function that i call multiple times: static map<HWND, myVector<CString>> myMap; On some of the function calls i want to remove elements from a vector: myMap[hWindow].erase(iterator) where iterator pointers to the element in the array I want to remove. when I call myMap[hWindow].size() after erasing this element the size is the same as before?? Is this a consequences of using static vectors. Or am I doing something wrong????? More likely option 2 :laugh: but wanted to check with some one who knows more about this stuff. Many thanks
-
<unordered_set></unordered_set>Many Thanks for your time and patience :-D
-
unordered_setI am using Visual Studio 2005. And I want access to unordered_set storage containers. They are apparently in TR1. whatever that is? How can I be able to use them in my program? Thanks
-
<unordered_set></unordered_set>Lets try that agaiin!!!! I can't even post a message. What chance do I have trying to program :) I am trying to get unordered_set on my machine. how can I get it? p.s. if you put < and > it doesn't post in??
-
<unordered_set></unordered_set>Hi I'm a novice so excuse the basic questions! I have Visual Studios 2005 And I want to use . Its not included it my list of include files. Apparently it is in TR1 what ever that menans:confused: How do I go about getting the files so that I can use unordered sets in the code I am trying to write Many thanks for your time.
-
storage templatesHi just a quick question from a novice programmer. I want a storage class that only allows one instance of each thing like set myList; but I want the items to be kept in sequential order For example I want to add "John" to the set. Then I want to add "Peter". Then "Chris". Then I try and add "Peter" again it won't do it, so my set is still [John, Peter, Chris] and then it keeps them in the order I entered them so when I can ask for the second item I added I get "Peter. My understanding of set is when I insert a new member it will put it it alphabetical order. any ideas?? :)
-
calling a static functionyes all the files are incluceded in the same project. how do I make sure the linker finds the file? The thing is I can call myClass::myFunction() from one of the .cpp files in the project, but I can't call it from another .cpp file in the same project. whats going on? Thanks for your time
-
calling a static functionhow?
-
calling a static functionAny ideas how I can have a function I can call from anywhere but where I don't need an instance of the class to call it?
-
calling a static functionHi I was in the understanding that if you declare a static function it can only be called from the source file where it is declared. Am I missing something?? The error says "unresolved external symbol" the call to the function is in file1.cpp where I have: myClass::myFunction(variable1, variable2); In myClass.h I have: class myClass { static void myFunction } and in myClass.cpp I have the function definition: myClass::myFunction() { //function definition } I can't call myFunction from file1.cpp As you can tell I am a novice programmer and in desperate need of explanation :(
-
calling a static functionHi I am looking at someone elses project and source code and seeing something I need explaining! There is a STATIC member function declared in a class. eg. class myClass { static void myFunction(); } Then it is called using the scope resolution opperator. myClass::myFunction() but it is being called from another source file in the project! I can't see any reason why it is aloud to do this. In fact I have added my own class and function looking exactly the same and it gives me LNK 2019 error. Any Ideas what I am missing. Thanks in advance for your time. :doh:
-
Obtaining HWND from CStringThank you soo much. Works beautifully!! :) :-D
-
Obtaining HWND from CStringHi I have a CString containing the hexidecimal handle to a window. For example 00010AC2. I want to obtain an actual HWND from it to pass to a function. Transmit(HWND hWindow, ...other variales ). So please how do I convert this hexidecimal CString into a HWND type? Many thanks for your time. :)
-
Header Wrapper SymbolHi Guys I am a new comer to programming and this forum. I have been looking at some code I found on the internet and in the header files they have what i believe are called header wrappers. Which I understand are to stop the header file from being defined more than once. The code looks like this: #if !defined(AFX_MYDERIVATIVE_H__AC73BB0F_CC43_4B4B_850A_4DC13A664B8C__INCLUDED_) #define AFX_MYDERIVATIVE_H__AC73BB0F_CC43_4B4B_850A_4DC13A664B8C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "myFunction.h" namespace Ovalkey { //class definitions }; #endif My question is why the strange symbol AFX_MYDERIVATIVE_H__AC73BB0F_CC43_4B4B_850A_4DC13A664B8C__INCLUDED_ Is this something generated by Visual Studio? or just some strange thing the programmer decided to call the variable? Many thanks