I want to access the data files in the same dir as DLL,so I need the pat name of the DLL. I use following: GetModuleFileName(m_hInst,pszDLLpath_buffer,_MAX_DIR); and it seems not work. :omg:
bojinyu
Posts
-
How to get the path name of COM DLL -
How to using the second IDispatch of a COM object in VBScriptThank you very much, solon. I put a new method Plot0() in IPlot2D, and Plot() is launch there. It's OK. Thanks again.
-
How to using the second IDispatch of a COM object in VBScriptI design a COM object by ATL, which has two IDispath. Default dispatch is IPlot2D, and the second is IMIDraw. IMIDraw has a method Plot(), how do I launch Plot() method?
-
How to using the second IDispatch of a COM object in VBScriptI design a COM object by ATL, which has two IDispath. Default dispatch is IPlot2D, and the second is IMIDraw. IMIDraw has a method Plot(), how do I launch Plot() method?
-
How to using the second IDispatch of a COM objectI design a COM object by ATL, which has two IDispath. Default dispatch is IPlot2D, and the second is IMIDraw. IMIDraw has a method Plot(), how do I launch Plot() method?
-
list of VARIANTThanks Daniel S. I have remove the problem. All the code really run in the right way, the fault was my wrong checking. I check by the watch window of Visual Stdio. The results of the list element showed there are upset. Thanks again.
-
list of VARIANTSorry, I spell a word wrong. I means then sizes of varList si increased 1, and now varList.size() return 1. but the element VARIANT whose vt is not VT_I2.
-
list of VARIANTSorry, I spell a word wrong. I means then sizes of varList si increased 1, and now varList.size() return 1. but the element VARIANT whose vt is not VT_I2.
-
list of VARIANTI want do built a list of VARIANT #include typedef std::list VARIANTLIST; VARIANTLIST varList; and I add a VARIANT into list varList; VARIANT pp; pp.vt=VT_I2; pp.iVal=1; varList.push_back(pp); then length of vatList is increased 1, but the comment is not right. What is the matter? Can you help me, Thanks.
-
How to print an ATL 3.0 based Active XHelp! I have use the function SetGraphicsMode(hDC,GM_ADVANCED) and I must use it! What could I do? I make a defalut ATL peoject, and the draw item just is a Textout(), and I print it in document of word. But, failed, the text "ATL 3.0:xxx" is much larger than it on the display CRT.Will you please sent me your Ondraw() code, I want to have an experiment. Thank you
-
How to resolve "arning MIDL2039"I am eager to know the answer since I am facing the same question. I design a COM object, and it has a Property: [propget, id(9), helpstring("property GDArray")] HRESULT GDArray([out, retval] float* *pVal); I want to use it to return the address of an FLOAT array, and set the returned address to an other control. Is there any side effect. I appreciate your answer.;)
-
How to print an ATL 3.0 based Active XI have meet the same problem, and I am working on it. Here, I want to introduce my idea. In the OnDraw(ATL_DRAWINFO& di) proceed, the default di give the HDC of the CRT. So, we should change it to the print device HDC. I still have no answer on it yet. ;P