Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to join two data tables in different database Pin
jiabin_007_love21-Aug-09 18:16
jiabin_007_love21-Aug-09 18:16 
AnswerRe: How to join two data tables in different database Pin
David Crow22-Aug-09 16:43
David Crow22-Aug-09 16:43 
GeneralRe: How to join two data tables in different database Pin
jiabin_007_love23-Aug-09 16:22
jiabin_007_love23-Aug-09 16:22 
QuestionHow to get a Windows Service custom Status? [C++/C#] Pin
Shaitan0021-Aug-09 6:59
Shaitan0021-Aug-09 6:59 
QuestionIntercepting PlaySound Pin
Marc Clifton21-Aug-09 4:38
mvaMarc Clifton21-Aug-09 4:38 
AnswerRe: Intercepting PlaySound Pin
Randor 21-Aug-09 5:07
professional Randor 21-Aug-09 5:07 
QuestionProblem with atlcomcli.h assertion failure Pin
Largo6521-Aug-09 4:19
Largo6521-Aug-09 4:19 
AnswerRe: Problem with atlcomcli.h assertion failure Pin
Stuart Dootson21-Aug-09 10:03
professionalStuart Dootson21-Aug-09 10:03 
You never assign the pointer a value - that's why you get the assertion failure. The Microsoft example omits that rather important step Smile | :)

Largo65 wrote:
_NoAddRefReleaseOnCComPtr<T>* operator->() const throw()
	{
		ATLASSERT(p!=NULL);
		return (_NoAddRefReleaseOnCComPtr<T>*)p;
	}



Can anyone tell me what this function does? and if I'm using this ISpGrammarBuilder pointer correctly?


This function implements CComPtr's operator->, allowing you to use the underlying interface pointer's methods through the managed pointer. All it needs to do is return something which also has an operator->, whether implicitly defined (i.e. a pointer) or explicitly defined (a struct/class).

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionCalling C Functions in Inline Assembly MSDN example doesn't work here Pin
invader8221-Aug-09 4:08
invader8221-Aug-09 4:08 
AnswerRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
Randor 21-Aug-09 4:43
professional Randor 21-Aug-09 4:43 
GeneralRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
invader8221-Aug-09 5:22
invader8221-Aug-09 5:22 
GeneralRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
Randor 21-Aug-09 7:43
professional Randor 21-Aug-09 7:43 
GeneralRe: Calling C Functions in Inline Assembly MSDN example doesn't work here Pin
invader8223-Aug-09 22:33
invader8223-Aug-09 22:33 
Question[Message Deleted] Pin
Gajendra Sharma21-Aug-09 2:28
Gajendra Sharma21-Aug-09 2:28 
Answer[Message Deleted] Pin
Gajendra Sharma21-Aug-09 2:34
Gajendra Sharma21-Aug-09 2:34 
GeneralRe: Can a client socket be bound to an IP address? Pin
Nemanja Trifunovic21-Aug-09 2:55
Nemanja Trifunovic21-Aug-09 2:55 
GeneralRe: Can a client socket be bound to an IP address? Pin
Rajesh R Subramanian21-Aug-09 2:57
professionalRajesh R Subramanian21-Aug-09 2:57 
GeneralRe: Can a client socket be bound to an IP address? Pin
Randor 21-Aug-09 3:06
professional Randor 21-Aug-09 3:06 
GeneralRe: Can a client socket be bound to an IP address? Pin
Gajendra Sharma21-Aug-09 3:09
Gajendra Sharma21-Aug-09 3:09 
QuestionIs it possible to load and use ocx in Vista Session 0? Pin
Sharath C V21-Aug-09 1:56
professionalSharath C V21-Aug-09 1:56 
Questionc++ Inheritance Question Pin
Rudi66621-Aug-09 0:21
Rudi66621-Aug-09 0:21 
AnswerRe: c++ Inheritance Question Pin
Cedric Moonen21-Aug-09 1:09
Cedric Moonen21-Aug-09 1:09 
GeneralRe: c++ Inheritance Question Pin
Rudi66621-Aug-09 1:54
Rudi66621-Aug-09 1:54 
AnswerRe: c++ Inheritance Question Pin
sashoalm21-Aug-09 1:12
sashoalm21-Aug-09 1:12 
QuestionVC++ Capture image using PMD Camera Pin
maherjas21-Aug-09 0:12
maherjas21-Aug-09 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.