|
|
Its not sufficient for answer
|
|
|
|
|
hi all
i building a project use Com+
i have 3 Com+
the fist com+ after login i want only Admin can use it(permisstion in Database SQL)
the seacon com+ only Manage can use
the final everyone can use it
Can u hepl me
|
|
|
|
|
With COM+ you can define roles which are containers for users and/or groups.
You can then authorise these roles to use different components.
Steve S
Developer for hire
|
|
|
|
|
I am using VC++ 2005 Pro, created an MFC ActiveX control (From project types MFC, not ATL), then created an MFC dialog application to test the control. In the dialog application, right-clicked on the dialog box and selected 'Insert ActiveX Control', selected my control -- all that is ok. Right-click the control, select "Add Variable" and get the error "The Extender Provider failed to return an Extender for this object"
Any ideas what this means and how to fix it?
|
|
|
|
|
|
Dear all,
I need a DirectShow filter(eitheir source filter or transformer filter or renderer filter ) sample to get the knowledge about directshow filter development.
Manjunath S
GESL
Bangalore
|
|
|
|
|
Hi,
How can I load XML Schema using VC++ 6.0. I'm trying to do this usning MSXML4.0, DOM APIs but I'm not able to read complex XSDs. Would anybody plz help me to do this.
How can I use ISchema, ISchemaElementPtr etc... SOM APIs?
Thanks
Srinivas
|
|
|
|
|
See here[^] maybe its helpful for you
|
|
|
|
|
I have successfully made a DCOM client and server, the client can call functions on the server. My trouble is trying to use MFC to create a connection point so that the server can call a function on the client.
On the client side I created a class ISimpCliAuto derived from COleDispatchDriver that has the exposed functions of the server. This class has a clsid, IID_ISimpCliAuto.
On the server side I have the following macros in the header file of the exposed class, CSimpServDlgAutoProxy:
BEGIN_CONNECTION_PART(CSimpServDlgAutoProxy, Alert)
CONNECTION_IID(IID_ISimpCliAuto)
END_CONNECTION_PART(Alert)
DECLARE_CONNECTION_MAP()
In the SimpServDlgAutoProxy.cpp I have the macros
BEGIN_CONNECTION_MAP(CSimpServDlgAutoProxy, CCmdTarget)
CONNECTION_PART(CSimpServDlgAutoProxy, IID_ISimpCliAuto, Alert)
END_CONNECTION_MAP()
On the client side I call CoCreateInstanceEx() and get an LPUNKNOWN m_pUnkServ. I call m_pUnkServ->QueryInterface() to get an LPDISPATCH which I can use in AttachDispatch(LPDISPATCH) and call exposed functions on the server side. I do not call m_pUnkServ->Release() at this point.
The problem occurs when I attempt to use m_pUnkServ in AfxConnectionAdvise(m_pUnkServ,...). The failure occurs within at the call
LPCONNECTIONPOINTCONTAINER pCPC;
HRESULT hr = m_pUnkServ->QueryInterface(IID_IConnectionPointContainer,(LPVOID*)&pCPC);
The hr indicates "No such interface supported." This is the result locally as well as over a network. The interface in question I think is the connection point container. But isn't all that supported by the macros above in the server? What am I doing wrong?
|
|
|
|
|
Hi,
I am passing a BSTR as an argument in a connectionpoint method. Everything is working fine except that when the BSTR is received by the client, it just gets the first character of the string.
Does anyone know how to solve this?
Thanks...
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
|
|
|
|
|
Is this a UNICODE or ANSI BSTR ?
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
By definition, a true BSTR can only be UNICODE.
Steve S
Developer for hire
|
|
|
|
|
Yes, but you can have ANSI ones too!
regards,
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
Not one that's strictly automation compatible; however, there doesn't seem to be anything anywhere in the documentation that says you absolutely can't, since a BSTR is a length-counted block of memory.
Steve S
Developer for hire
|
|
|
|
|
A BSTR which store only ANSI Text. Do you have a solution? If so, could you please share it.
Thanks.
-- modified at 2:03 Friday 13th October, 2006
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
|
|
|
|
|
Could you post a small code sample ?
Darka [ Xanya]
"I am not a slave to a god that doesn't exist."
|
|
|
|
|
Hello HakunaMatada,
Email me directly :
bio_lim_2004@yahoo.com
I have a COM app sample which receives a BSTR as an event parameter.
- Bio.
|
|
|
|
|
Thanks Bio, but I got the answer. There was a problem with the String conversion from BSTR to CString. A foolish mistake. Once I figured it out, it started working fine.
One question I would like to ask though is, Is there any limit to the number of characters that can be passed via a BSTR in COM? I mean does it make any difference if I passed a string with 1000000 words? Will it be reliable?
Thanks once again.
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
|
|
|
|
|
Hello HakunaMatada,
Congratulations on discovering the solution to your problem
Concerning the max length of a BSTR : yes there is a limit. Recall that a BSTR is not a NULL-terminated string. The length of the contents of a BSTR is actually stored inside a 4-byte unsigned long value. This 4-byte length indicator is stored in memory immediately before the start of the first byte of the BSTR.
Therefore, the max number of BYTES that can be contained inside a BSTR is 4294967295.
- Bio.
|
|
|
|
|
|
I am trying to recover my permanently deleted outlook mails through coding
I know that der r many software available in the market that can do so
But i want to do it through coding
I know it is done using MAPI's
I am able to import messages when they r present in inbox through code
but facing difficuly in recovering deleted messages
can anybody just help me in this
|
|
|
|
|
question:
In my application. I host the browser Activex control and i wanna instead default context menu with
custom menu when user right-click a img.
I override the ShowContextMenu function, in this function, i wanna get the href url before IMG tag like->
<a href="URL"><IMG src="..."></IMG></a>
I had Queried much Interface by ShowContextMenu's param pdispReserved, but none of them can get the url.
how can i do? thx.
aaaaaaaaaaaaaaaaaaabbbbbbbbbbccccccccccccccc
|
|
|
|
|
Hi,
I'm developing a Web Service Client that invokes a method that require a parameter defined in a complexType. I have only a wsdl where this type is defined. This client must be written in C++ (using Visual Studio 6.0). I'm developing a test in JScript, but it returns a error "SoapMapper:Saving SoapMapper Param_Ent_Cons_Saldo_MT failed no such interface..."
My code in ASP:
<br />
var obj1 = new ActiveXObject ("MSSOAP.SoapClient30");<br />
obj1.ClientProperty("ServerHTTPRequest") = true;<br />
obj1.MSSoapInit(caminho,"Cons_Saldo_Consignado_MIService","Cons_Saldo_Consignado_MIPort");<br />
var retorno = bj1.Cons_Saldo_Consignado_MI(parametros);<br />
The definition of the type in WSDL:
<br />
<xsd:complexType name="Param_Ent_Cons_Saldo_DT"><br />
<xsd:sequence><br />
<xsd:element name="Param_Entrada"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d80435411db8f4acd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:complexType><br />
<xsd:sequence><br />
<xsd:element name="BUKRS"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d81435411dbc619cd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:maxLength value="4"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="PERNR"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d82435411dbc803cd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:maxLength value="8"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="EMPORI"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d83435411db89aacd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:maxLength value="6"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="VALBEN" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d84435411dbc680cd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:decimal"><br />
<xsd:totalDigits value="15"/><br />
<xsd:fractionDigits value="2"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="TIPBEN" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d85435411dbb07ecd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:maxLength value="6"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="SALDIS" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d86435411db8d2bcd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:decimal"><br />
<xsd:totalDigits value="15"/><br />
<xsd:fractionDigits value="2"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="VALUTI" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d87435411db80cfcd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:decimal"><br />
<xsd:totalDigits value="15"/><br />
<xsd:fractionDigits value="2"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="SALSUF" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>c6303f60481711db8f71dd6f0a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:maxLength value="1"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="SUCESSO" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>35265b2044e411dbb07bffe20a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:maxLength value="1"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="MENSAG" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d88435411dbadfacd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:minLength value="73"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="UNAME" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d89435411dbc3b4cd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:minLength value="12"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
<xsd:element name="SENHA" minOccurs="0"><br />
<xsd:annotation><br />
<xsd:appinfo source="http://sap.com/xi/TextID"<br />
>b5593d8a435411db8db9cd980a011ad5</xsd:appinfo><br />
</xsd:annotation><br />
<xsd:simpleType><br />
<xsd:restriction base="xsd:string"><br />
<xsd:minLength value="12"/><br />
</xsd:restriction><br />
</xsd:simpleType><br />
</xsd:element><br />
</xsd:sequence><br />
</xsd:complexType><br />
</xsd:element><br />
</xsd:sequence><br />
</xsd:complexType><br />
Anyone knows how pass this type in method call?
Thanks,
Guilherme Pires
|
|
|
|
|
Dear All,
I am doing a COM EXE program using ATL.
I have developed COM EXE. and now i am creating a client for that COM EXE, I getting HRESULT value as FAILED.
this is my code ....
/*****************************
hr=CoCreateInstance(CLSID_Product,NULL,CLSCTX_INPROC_SERVER,IID_IProduct,(void**)&pInface);
/******************
What it could be ? . I dont know how to do further.
Kindly, Can you help me ?.
|
|
|
|