|
|
hi guys,
i developed an application that uses dll developed by me as well.
This application is win32 application and the main uses parameters.
when i run the application it is all right.
but something weird happened for 2 times the application break but at the end of it and i just donno why
and listen to this when i change its location it runs normally.
adn sometimes i cannot even delete them it seems there is still something work although i can't see it
anyone help pleeeeeeeeeeeeeeeeease
emma
|
|
|
|
|
Probably your appllication hangs (search for it in the Task Manager) check if it correctly deals with system resources (such as GDI objects handles, etc...).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks,
it was just i had to free pointer so i free it without declaring the pointer as NULL especially that this variable is used by the dll as global variable but now everything is ok thanks
emma
|
|
|
|
|
Hi All,
I need to fetch all the Undelivered mail form my outlook inbox I am using ASP.NET 2.0(VB).
Can anyone suggest me with the code??
Thanks in advance...
|
|
|
|
|
Hi,
What is the difference between ordinary DLL n COM DLL? what is the advantage of COM DLL? Insted of COM DLL why dont we use ordinary DLL?
Thanks in Advance,
Nandu.
|
|
|
|
|
A COM DLL must satisfy additional requirements with respect an ordinary one. A COM DLL contains COM components, i.e. objects that satisfy COM binary standard requirements. (e.g. macroscopic feature of a COM DLL is that it must be registered).
The advantage of a COM DLL is that the binary standard allows to access the objects contained in a variety of different programming languages (e.g. C, C++, Visual Basic,...).
You can use an ordinary DLL if you don't need such binary compatibility.
Please note that the above survey is poor: if you really want to know the advantages of COM over standard libraries then you have to read a good book on the argument (for instance Inside Com[^], but there are a lot of good ones about...).
Hope that helps
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks,
Can you suggest some good books for COM.
-Nanadu
|
|
|
|
|
Nandu_77b wrote: Can you suggest some good books for COM.
I've already done...
Anyway, other good books are Don Box's [^] and Eddon & Eddon's one [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi, i write an application creates a thumbnails of first page of ms word document. I use OleDraw to draw it into memory device context. The problem is that background color of document isn't set into device context. Please help me. It is possible to obtain the backgound color of document in theoretically?;)
happynomm
|
|
|
|
|
Hello,
I have a COM+ application built using C# and the MSI for it runs just dandy, its basically a COM proxy for .NET to ASP. However, when running a test VBScript, I get the following message whenever I attempt to execute one of the methods (object seems to get created though)..
on this line: set objCreditAppEntity = objComProxy.GetSavedApplication(1, "CITDE")
with this message: Error retrieving certificate with ID <> from location LocalMachine
and this stack trace:
System.Configuration.ConfigurationException
Stack Trace:
at CIT.EAI.Crypto.CertificateManager.RetrieveCertificateFromStore(X509CertificateStore store, String keyIdentifier)
at CIT.EAI.Crypto.CertificateManager.GetDefaultCertificate()
at CIT.EAI.Web.Security.WseUtilities.GetClientToken()
at CIT.EAI.Web.Security.WseUtilities.ConfigureProxy(WebServicesClientProtocol protocol)
at CIT.EAI.EFCanada.ComProxy.RepositoryFactory.GetCreditAppWS()
at CIT.EAI.EFCanada.ComProxy.EFCanadaComProxy.GetSavedApplication(Int32 creditAppId, String applicationCode)
Any ideas why? seems to be a WSE thing, but I'm lost as I'm still kind of a newbie to COM, etc...This proxy talks to three web services by the way.
VBScript test code given below
----------------------------------------------
Dim objComProxy
Dim arrContact
Dim errCode
Dim objCreditAppEntity
Dim objCreditAppEntityList
Dim objQuoteEntity
Dim objQuoteEntityList
dim xmlDoc, sPath, sFile, sInFileName
Set objComProxy = CreateObject("CIT.EAI.EFCanada.ComProxy.EFCanadaComProxy")
'ERROR HERE
set objCreditAppEntity = objComProxy.GetSavedApplication(1, "CITDE")
WScript.Echo "Credit app ID: " & objCreditAppEntity.CreditAppId
WScript.Echo "Credit app status code: " & objCreditAppEntity.CreditAppStatusCd
|
|
|
|
|
I wirte a few dlls ,then registe them . However I can not create instance using the following code. What is the reason?
IGraphBuilder * pBuilder = NULL;
HRESUTL hr = CoCreateInstance(....);
....
There is a will,there is a way!
|
|
|
|
|
Is the COM dll registered? worth trying regsvr32.exe to register it.
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
lichongbin wrote: I wirte a few dlls ,then registe them . However I can not create instance using the following code. What is the reason?
Did you made a COM DLL?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi,
I have created a Dialog based application in VC++ 6.0(Client) and an ATL COM component (Server).
But I dont know where and how to invoke the interface in the client. Can any one explain how to make use of ATL COM server in dialog based application(client).
If not at least provide me a url where I can find details of creating client for ATL COM in VC++ 6.0.
Thanks
Mahadevan
|
|
|
|
|
|
Well, you have to:
(1) initialize COM, calling CoInitialize
(2) create an instance of you object, calling CoCreateInstance
(3) (optionally) ask for another interface
(4) call your interface methods
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Need to create moniker that handles path strings like "./boe2.xml" and "file:///d|/boe2.xml".
I've used MkParseDisplayNameEx() in my IBindHost::CreateMoniker() implementation and it works for the second type of pathes, but doesn't handle first type. I've tried CreateFileMoniker but it doesn't work too. What should I do?
|
|
|
|
|
Hi to All,
I am creating COM Wrappers(CCW's) to the existing .Net Product, which is developed using C#. In this, am getting problem with setting "Item" propertty as the Default Property. My requirement is like this:
I created 4 classess in CCW namely: PdfDocument, PdfForm,PdfFormField and PdfFormFieldList. to the respective .Net classess. Below, am giving the classess in brief. I configured my project for COM Interop .
*****************************************************************************************************************************************
PdfDocument:
public class PdfDocument
public readonly property Form() as PdfForm
get
''''''' code for returning PdfForm type
end get
end propety
end class
PdfForm:
public class PdfForm
public readonly property Fields() as PdfFormFieldList
get
''''''' code for returning PdfFormFieldList Type
end get
end property
end class
PdfFormFieldList
public class PdfFormFieldList
default public readonly property Item(byval pdfformfiled as PdfFormField) as PdfFormField
get
''''' code for returning PdfFormField type
end get
end property
end class
*****************************************************************************************************************************************
Using the above 4 classes, I want the behavior like below in classic ASP.
Code in classic ASP:
dim doc
set doc = server.createobject("DynamicPDF.PdfDocument")
''''' Instead of calling: doc.Form.Fields.Item(("name of the Pdfformfield")
response.write(doc.Form.Fields("name of the Pdfformfield")
Same code in VB6
dim doc as new PdfDocument
''''' Instead of calling: doc.Form.Fields.Item(("name of the Pdfformfield")
msgbox(doc.Form.Fields(("name of the Pdfformfield")
In Vb6, "Item" porperty is working fine. But, it is not working in classic ASP as a Default Property.In ASP, it is working fine only when I code like: doc.Form.Fields.Item(("name of the Pdfformfield")
I need your help in this regard.
|
|
|
|
|
|
this's a MFC AcitveX project, in the CXXXXCtrl's OnCreate function, i create a modeless dialog(WS_CHILD). the dialog have some buttons on it.
Now, run this ActiveX, make one of the buttons to have focus(for example: click it), then check the button's style in spy++, the button's style has been set BS_DEFPUSHBUTTON.
can somebody tell me why this happened, and how to stop it?
best regard
|
|
|
|
|
Hello, we are developing application which uses MODI(Microsoft Office Document Imaging) library for OCR the documents. It`s working ok on development machines (Windows XP Sp2) but not working on Windows Vista. During the executing of OCR method of Modi.Document class error has been thrown - 'Ocr running error'. We couldn't find useful information on the internet. Does anybody know useful solution?
MODI.Document recognizedDocument = null;
recognizedDocument = new MODI.Document();
recognizedDocument.Create(tempFileName); // Some existing tif image file
recognizedDocument.OCR(MiLANGUAGES.miLANG_ENGLISH, true, true); // On this row exception throws
Thanks.
Mykhailo Kosovan
|
|
|
|
|
We resolve this problem!!!!!!!!!!!!!!!!!!!
We install MS Office 2007 instead of MS Office 2003
All work fine.
|
|
|
|
|
Hi, I'm trying to bind an acccordion control to an access database, but nothing is displayed. I can't seem to find the problem. Plz have a look:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<ajaxToolkit:Accordion ID="MyAccordion" runat="server" SelectedIndex="0" HeaderCssClass="accordionHeader" ContentCssClass="accordionContent" AutoSize=None FadeTransitions="true" TransitionDuration="250" FramesPerSecond="40" Height="38px" Width="51px" >
<Panes></Panes>
<HeaderTemplate><a href="" onclick="return false;"><%#Eval("Client_Name") %></a>
</HeaderTemplate>
<ContentTemplate><%#Eval("Client_Address") %>
</ContentTemplate>
</ajaxToolkit:Accordion>
// The code behind in C#
protected void Page_Load(object sender, EventArgs e)
{
System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("ClientsDB.mdb"));
System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand("SELECT * FROM Clients ",conn);
System.Data.OleDb.OleDbDataAdapter adp = new OleDbDataAdapter(cmd);
conn.Open();
System.Data.OleDb.OleDbDataReader dtr = cmd.ExecuteReader();
while (dtr.Read())
{
}
dtr.Close();
DataSet dsClients = new DataSet();
adp.Fill(dsClients, "Clients");
MyAccordion.DataSource = dsClients;
MyAccordion.DataSourceID = "dsClients";
MyAccordion.DataBind();
conn.Close();
}
|
|
|
|
|
I have created a DTS package and program to execute that DTS. It was working fine in my system. While executing in another system, i got error "Execution cancelled by user".
Is there anybody know why it occurs?
--Balaji
|
|
|
|