.r templates to declare appleevents?

.r templates to declare appleevents?

Post by Miro Juris » Sat, 07 Feb 2004 18:19:02


In article <4022b8e4$0$25026$afc38c87@>,



This is irrelevant. All you need to do is install the handler. Adding the aete
resource enables the Script Editor to let users write scripts with the GURL
event, which is useful, but not your problem. I referred you to the PowerPlant
AppleEvent resources, which tell PowerPlant what handlers to install.

hth

meeroh

--
If this message helped you, consider buying an item
from my wish list: < http://www.yqcomputer.com/ ;
 
 
 

1. Declaring a template class with two template params a friend in a non-template class

2. Declaring a template class with two template params a friend in a non-template class

I have an abstract class:

class Attribute { /* ...*/ };

Now I have another class:

template <typename T, typename U>
class Mgr
{
static U *create(const std::string k, std::string v)
{
static T *p = 0;
if (!p)
{
p = new T();
}
T &r = *p;
U *a = const_cast<U*>(r.get(k));
return a;
}
};

Both of these classes are declared/defined in different header files.

The problem is that the constructors of Attribute class are private so
I have to declare the Mgr class a friend of Attribute. That's what I
have a problem doing - I am having a difficult time with the template
syntax when it comes to declaring a template class (with two template
parameters) a friend in a non-template class - I am getting lots of
compilation errors on the friend template declaration. Can any kind
sole tell me how I am supposed to do it? Declare a template class with
two template parameters a friend in a non-template class???

-Thanks/AL

--
[ See http://www.yqcomputer.com/ ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

3. how to specialization a template class which declare in a template class?

4. Declaring Template Classes that take Multiple Nested Templates as Parameters

5. how to specialization a template class which declare in a template class?

6. How can I declare and define a friend template function in a template class?

7. templates cannot be declared to have 'C' linkage error in visual c++

8. Exit mfc app error when declaring global standard template library

9. Correct syntax for class templates that declare friend functions

10. Query: How to declare a template class member function 'extern "C"' ?

11. how to declare this template operator?

12. Declare a Friend function which is a template member function of a different class

13. friend declaration declares a non-template function

14. How to declare all forms of "more specialized" class template as friend?

15. Define template parameter or just declare?