Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: George <George@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 02:05:00 -0700
Thanks Norbert,
1.
What do you mean "That way you have one and only functiob", especially
"functiob" in your sample?
2.
As far as I can see, you still use pointer of function type, other than
function type. So, I doubt whether there are any practical usage for function
type alone. I re-write the code you showed before using function pointer
other than using function type, any drawbacks in my code compared with yours?
[Code]
// define function type
typedef void (*testfunc)(int arg1, int arg2);
void test1(int arg1, int arg2)
{
}
void demo()
{
// pointer to a testfunc
testfunc p = test1;
// call function
p(10, 20);
}
[/Code]
regards,
George
.
- Follow-Ups:
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: Norbert Unterberg
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- References:
- where is _ATL_SIMPLEMAPENTRY defined?
- From: George
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: Igor Tandetnik
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: George
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: Igor Tandetnik
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: George
- Re: where is _ATL_SIMPLEMAPENTRY defined?
- From: Norbert Unterberg
- where is _ATL_SIMPLEMAPENTRY defined?
- Prev by Date: Re: asynchronous and synchronous call between apartments
- Next by Date: Re: CComMultiThreadModelNoCS
- Previous by thread: Re: where is _ATL_SIMPLEMAPENTRY defined?
- Next by thread: Re: where is _ATL_SIMPLEMAPENTRY defined?
- Index(es):
Relevant Pages
|