Click here to Skip to main content
15,921,113 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Creating a CEdit in ATL ActiveX control with MFC Support? Pin
greekgoddj7-Feb-05 0:06
greekgoddj7-Feb-05 0:06 
GeneralRe: Creating a CEdit in ATL ActiveX control with MFC Support? Pin
sh1it5058-Sep-10 3:24
sh1it5058-Sep-10 3:24 
GeneralATL for Ole Db Pin
lisoft3-Feb-05 15:28
lisoft3-Feb-05 15:28 
GeneralRe: ATL for Ole Db Pin
gauravjain4-Mar-05 10:43
gauravjain4-Mar-05 10:43 
GeneralRe: ATL for Ole Db Pin
lisoft6-Mar-05 4:15
lisoft6-Mar-05 4:15 
GeneralPassing string from a dll to an nt service. Pin
dabayi3-Feb-05 4:22
dabayi3-Feb-05 4:22 
QuestionHow to use SetThreadLocale on Win98 system Pin
GanescuC3-Feb-05 1:35
GanescuC3-Feb-05 1:35 
QuestionATL ActiveX - How to create the own Property Page? Pin
out_of_life3-Feb-05 0:04
out_of_life3-Feb-05 0:04 
At me such problem:WTF | :WTF: Confused | :confused:
When the standard page of properties (Property Page) is created - that everything is all right,
And when I try to create it manually - it is not displayed.
I hands finish such in CoClass.h:
BEGIN_PROP_MAP (COpenGL)<br />
    PROP_DATA_ENTRY ("_cx", m_sizeExtent.cx, VT_UI4)<br />
    PROP_DATA_ENTRY ("_cy", m_sizeExtent.cy, VT_UI4)<br />
    PROP_ENTRY ("FillColor", DISPID_FILLCOLOR, CLSID_StockColorPage)<br />
<br />
    PROP_ENTRY ("Dialog", 2, CLSID_PropDlg) // !!! Here I finish<br />
<br />
    // Example entries<br />
    // PROP_ENTRY (" Property Description ", dispid, clsid)<br />
    // PROP_PAGE (CLSID_StockColorPage)<br />
END_PROP_MAP ()


And in a result the Property Page created in manual is not displayed (and that standard "FillColor" - is displayed)......... (are displayed only standard - FillColor, and one more)
What to make, that it worked?
And all over again I received the message, that CLSID_PropDlg is in general a unknown piece (but then itself has passed)
That I receive in a idl-file:

import "E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prsht.idl";
import "E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\mshtml.idl";
import "e:\program files\microsoft visual studio .net 2003\vc7\platformsdk\include\dimm.idl";
import "E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\mshtmhst.idl";
import "e:\program files\microsoft visual studio .net 2003\vc7\platformsdk\include\docobj.idl";
import "E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\exdisp.idl";
import "E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\objsafe.idl";

[
object,
uuid(BB2EEEBB-B474-4CBC-9B70-697E4ECC1EE8),
dual,
helpstring("IOpenGL Interface"),
pointer_default(unique)
]
#line 49 "d:\\d\\c7\\com\\atlgl\\atlgl\\opengl.h"
interface IOpenGL : IDispatch {
#line 52 "d:\\d\\c7\\com\\atlgl\\atlgl\\opengl.h"
[propput,bindable,requestedit,id((-510))] HRESULT FillColor([in] OLE_COLOR clr);
#line 54 "d:\\d\\c7\\com\\atlgl\\atlgl\\opengl.h"
[propget,bindable,requestedit,id((-510))] HRESULT FillColor([out,retval] OLE_COLOR *pclr);
[id(1),helpstring("method GetLightParams")] HRESULT GetLightParams([out] int *pPos);
[id(2),helpstring("method SetLightParam")] HRESULT SetLightParam([in] short lp, [in] int nPos);
[id(3),helpstring("method ReadData")] HRESULT ReadData();
[id(4),helpstring("method GetFillMode")] HRESULT GetFillMode([out] DWORD *pMode);
[id(5),helpstring("method SetFillMode")] HRESULT SetFillMode([in] DWORD *nMode);
[id(6),helpstring("method GetQuad")] HRESULT GetQuad([out] BOOL *bQuad);
[id(7),helpstring("method SetQuad")] HRESULT SetQuad([in] BOOL bQuad);
};


[ version(1.0), uuid(4CA16C3B-D4B6-434D-9648-2E419FF79F15), helpstring("ATLGL 1.0 Type Library") ]
library ATLGL
{
importlib("stdole2.tlb");
importlib("olepro32.dll");

[
uuid(9D2FB6B9-6797-45D0-A331-A6DE808F9A82),
helpstring("_IOpenGLEvents Interface")
]
#line 72 "d:\\d\\c7\\com\\atlgl\\atlgl\\opengl.h"
dispinterface _IOpenGLEvents {
properties:

methods:
};

[
version(1.0),
uuid(35435006-DA95-4B34-9988-5A0A512E3F3C),
helpstring("OpenGL Class")
]
#line 88 "d:\\d\\c7\\com\\atlgl\\atlgl\\opengl.h"
coclass COpenGL {
interface IOpenGL;
[default, source] interface _IOpenGLEvents;
};

[
version(1.0),
uuid(F2FBEB23-A2C0-4C9D-B049-6E14D8A3E8CF),
helpstring("PropDlg Class")
]
#line 19 "d:\\d\\c7\\com\\atlgl\\atlgl\\propdlg.h"
coclass CPropDlg {
[default] interface IUnknown;
};

[
version(1.0),
uuid(CD2867E6-F4C7-48A6-8D06-D1856D501B2E),
helpstring("tMy Class")
]
#line 19 "d:\\d\\c7\\com\\edf\\atlgl\\tmy.h"
coclass CtMy {
[default] interface IUnknown;
};

}
AnswerRe: ATL ActiveX - How to create the own Property Page? Pin
out_of_life4-Feb-05 1:55
out_of_life4-Feb-05 1:55 
GeneralCComPtr::Advise Pin
grinder2-Feb-05 21:38
grinder2-Feb-05 21:38 
GeneralRe: CComPtr::Advise Pin
geo_m8-Feb-05 9:47
geo_m8-Feb-05 9:47 
GeneralATL : Setting Font Pin
tnguyen4442-Feb-05 6:03
tnguyen4442-Feb-05 6:03 
GeneralRe: ATL : Setting Font Pin
tnguyen4442-Feb-05 6:30
tnguyen4442-Feb-05 6:30 
GeneralRe: ATL : Setting Font Pin
ThatsAlok2-Feb-05 6:41
ThatsAlok2-Feb-05 6:41 
GeneralRe: ATL : Setting Font Pin
Jörgen Sigvardsson7-Feb-05 9:00
Jörgen Sigvardsson7-Feb-05 9:00 
GeneralRe: ATL : Setting Font Pin
ThatsAlok7-Feb-05 15:51
ThatsAlok7-Feb-05 15:51 
GeneralATL COM Pin
surend2k1-Feb-05 19:20
surend2k1-Feb-05 19:20 
GeneralRe: ATL COM Pin
conman1101-Feb-05 20:27
conman1101-Feb-05 20:27 
GeneralRe: ATL COM Pin
vishalmore7-Feb-05 20:30
vishalmore7-Feb-05 20:30 
GeneralRe: ATL COM Pin
vishalmore8-Feb-05 2:58
vishalmore8-Feb-05 2:58 
GeneralSTL Vector sort, memory corruption Pin
Ron Arnan1-Feb-05 10:50
Ron Arnan1-Feb-05 10:50 
GeneralRe: STL Vector sort, memory corruption Pin
Joaquín M López Muñoz2-Feb-05 2:28
Joaquín M López Muñoz2-Feb-05 2:28 
GeneralRe: STL Vector sort, memory corruption Pin
Ron Arnan2-Feb-05 3:55
Ron Arnan2-Feb-05 3:55 
GeneralRe: STL Vector sort, memory corruption Pin
Jörgen Sigvardsson2-Feb-05 10:57
Jörgen Sigvardsson2-Feb-05 10:57 
GeneralRe: STL Vector sort, memory corruption Pin
Joaquín M López Muñoz2-Feb-05 21:59
Joaquín M López Muñoz2-Feb-05 21:59 

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.