d00_ape Posted June 16, 2004 Share Posted June 16, 2004 What does my code do? #import "MyDll.dll" ?. CoInitialize(NULL); if(SUCCEEDED(m_IPtr.CreateInstance("MyDll.Stuff")) ) // Create intstance to component? { //is ok } else { //is not ok } Link to comment Share on other sites More sharing options...
0 PHiZZy Posted June 16, 2004 Share Posted June 16, 2004 not much... you've set up an IF statement but not actually said what its to do whether its true or not Link to comment Share on other sites More sharing options...
0 d00_ape Posted June 16, 2004 Author Share Posted June 16, 2004 What does the call: m_IPtr.CreateInstance(...) actualy do with my dll Link to comment Share on other sites More sharing options...
0 Lycander Posted June 16, 2004 Share Posted June 16, 2004 What language is this? C#? Managed C++? And what class is "m_IPtr"? Microsoft's MSDN online library will tell you what CreateInstance does if you know what language and what library (furthermore what class) it belongs to. Link to comment Share on other sites More sharing options...
Question
d00_ape
What does my code do?
#import "MyDll.dll"
?.
CoInitialize(NULL);
if(SUCCEEDED(m_IPtr.CreateInstance("MyDll.Stuff")) ) // Create intstance to component?
{
//is ok
}
else
{
//is not ok
}
Link to comment
Share on other sites
3 answers to this question
Recommended Posts