Hello Friends, I have to expose "ATL simple object" interface. Now, I wanted to expose 3 interface objects. Each one has some common functionality, hence I am trying to keep common functionality in abstract class. Now, my requirement is that each three class should have their own methods plus common functionilty [methods like Lock] inherited from common abstract base class. Please suggest. Helpfull link would really help.
Rahul RK
Posts
-
How to do inheritance in ATL -
WCF for chat over internetHello All, I need to write an WCF service which would be accessed from iPhone/Android phone application. WCF service should provide chat functionality and other required end point methods to the installed phone application. Here I have few queries: 1. Can we implement duplex communication for this, between wcf service and iphone / android application? 2. What would be better solution, hitting a WCF webservice from phone application after some interval of time or putting some callback in phone device?. As i need some chatting kind behaviour in phone where two phone user should chat to each other through the connected WCF service. Can you please suggest approach and helpful links for same. Thanks in Advance.
-
Theme for ASP.Net MVC 3Hello, I need to develop the theme for ASP.NET MVC 3 application. Can you please suggest me the approach? 1. Should i go for bunch of style classes and load them dynamically.? Is there any better approach which lets me to use single style class and allow me to load images dynamically. Please suggest. Thanks, Rahul
-
Keep history table [modified]Hello, I need to insert the newly inserted/Updated/Deleted records into History table in following format. ID - Field Name - Old Value - New Value - Date So what would be the best way to achive this. Should i go for Trigger? Write insert statement in each insert/Update/Delete stored procedure? Demo code would help more. As described above, There would be a table names "History" having columns, ID - TableName - Field Name - Old Value - New Value - Date - AdminID [Id of user who is modifing field] Now Table name and field name would be the values indicating the inserted/modified/delete field name. Oldvalue coloumn would be showing old value if any and new value would show current value. So all the database table would have single History table. Hope this made more clear. Thanks. Thanks in advance.
modified on Thursday, June 16, 2011 12:46 AM
-
x64 & x86 assembly difference.Thanks for reponse. From that i will get the current CPU bits, but what i want to find is that, I will get a dll as input and from that i need to find on which platform it has been builted. Does it support x86 or x64 or both. Thanks
-
x64 & x86 assembly difference.Hi, Can we find on which platform the dll/.Net assembly has been build? Either on x64 or x86. I want to find this through C# code. I tried this through reflection but not able to find correct property. Thanks in Advance.
-
Need help for new website.Hello friends, I am wishing to create a website for online examination. Can any one give me the important points not to be missed. Like how to maintain session, timer etc. Some usefull links regarding same will help me. Any type of help from you is appreciated. Thanks in advance.
-
Override virtual or abstracts with derived return typesHello, You are trying to override the property 'Property' in derived class and you are trying to change the return type of the property, which is not allowed in the C#. In C#.Net it is mandatory to keep the signature of method/property you want to override in the derived class. Thanks, Rahul Kulkarni
-
How to list Com Port usage and list of devices using those portsHi, Write WndProc in the code and check for device attached/detached event.(There is one event for this. Try to search on net.) After getting event write a code to read registry for com port information. When an device is plugged to USB port an entry is made in the registry.
HKEY_LOCAL_MACHINE/DEVICEMAP/SERIALCOMM
So, you can listen for the changes in this key. And will get to know com port at which device is attached.
-
Windows service and Outlook com object.I've written a windows application that is periodically verifying the Inbox folder from Microsoft Outloox ( within an interval of 60 secounds ). This application is working and it does exactly what it has to do. The problem is that the same code putted in a windows service ( the declaration and initialisation of the Outlook Objects are the same in both cases ) seems not to be working, because the Outlook Object is not initialising corectly. At the time of initialisation only it throws and COM exception. So..were i go wrong? I will apreciate any advice. P.S. I've tried to put the collecting function in a Class Library (DLL),and it's still not working.
-
Interoperatibility...Thanks for your fast reply. But, as per my knowledge i thing the site give information for only p invoke i.e. DllImport like that attribute not other things. Can you provide some more sites which will cover other things which are not covered here. :) Any ways thanks for your help.
-
Interoperatibility...Hello friends, Now a days, i am getting some work like using existing vb, vc++, ATL, MFC etc. code. I have task to to invoke or reuse the code in the C#.Net application. I am able to invoke com component code in C#. But i am facing problem when i try to invoke the win32 C++ code in C#.net. So can any one give me helpful sites, book list for all types of interoperability which can be done with C#. That is under one umbrella. It will help be to trace out or reach at decision can we do the interoperability. Thanks in Advance.
-
Erro while building the projectHello friends, I am trying to built in project in Visual Studio 2005. Project is created in MFC(Application project) and Visual studio 2003 by other person. I am getting an error while comping. The error points towards some file
comsuppwd.lib
. I am just putting error names here as follows,error LNK2005: "class _variant_t vtMissing" (?vtMissing@@3V_variant_t@@A) already defined in comsuppwd.lib(comutil.obj) comsuppd.lib
and other is fatal error LNK1169: one or more multiply defined symbols found I searched on net but not able to solve this error. please help me. Thanks in Advance. -
Wrapped for unamanged code.Hello, I want to invoke methods from the unmanaged code(COM component.). I want some suggestion for that, should i go for managed C++ wrapper or will be it OK if i go for C#. Basically main problem with the com is that, it has exposed one method named Init((Inknown *) *pSYNInfo). But they don't have exposed the SYNinfo class, which needs to be passed to Init function. So what approach should i do so that i can invoke the Init() function after setting the proper values to the SYNInfo Class. Can i access the SYNInfo file by adding the header file in the managed C++. Please help me out. Thanks in advance.
-
Wrapper CreationHello, I want to invoke methods from the unmanaged code(COM component.). I want some suggestion for that, should i go for managed C++ wrapper or will be it OK if i go for C#. Basically main problem with the com is that, it has exposed one method named Init((Inknown *) *pSYNInfo). But they don't have exposed the SYNinfo class, which needs to be passed to Init function. So what approach should i do so that i can invoke the Init() function after setting the proper values to the SYNInfo Class. Can i access the SYNInfo file by adding the header file in the managed C++. Please help me out. Thanks in advance.
-
Call ATL Com dll function in Managed C++Hello friends, Can any one give me simple example of how can i call the Atl com dll function(s) in the Managed C++.net I have created a simple atl com library. The functions from that library get invoked through C#.net but when i try to invoke then through the managed C++ it is giving error message. Is there anything required to do so that it can work.....? Thanks in advance.
-
Locking filesBut still we can copy that file.. Michael is right that if we open file through program no one can access it but it can be copied... rahul kulkarni
-
Com port and processFirstly thanks for reply. In that way we can get the com ports to which device are attached. Now how can i get process name who r using these com ports. And which com port is used by which process. Thanks again. rahul kulkarni
-
Com port and processHello friends, I want to know, can we get the COM Port list (device attached to pc). and the process name using the the COM port in C#. Thanks in Advance. Rahul Kulkarni
-
Word file parserHello friends, I want to do word file parsing. i want to fetch out particular information from it. E.g. I want to take email id , phone etc from resume document. What thing should be used for this. I have searched ineterop library may be helpfull for this. What other things are there. Thanks in Advance. Rahul Kulkarni