Use this. HRESULT CoCreateInstanceEx( REFCLSID rclsid, //CLSID of the object to be created IUnknown *punkOuter, //the controlling IUnknown DWORD dwClsCtx, //CLSCTX values COSERVERINFO *pServerInfo,//Machine on which the object is to be instantiated ULONG cmq, //Number of MULTI_QI structures in pResults MULTI_QI *pResults //Array of MULTI_QI structures ); Cheers, Anand ;)
Anand Amirineni
Posts
-
DCOM with Visual C++ -
receiving a Boolean type in VBJust more Info for you. In C++, TRUE is +1, but VB and automation clients use TRUE as -1 and FALSE as +1. If you use BOOL, all you can see is clouds of confusion over your application. so use VARIANT_BOOL(boolean type), VARIANT_TRUE(true),VARINAT_FALSE(false) Whenever you are using C++(COM), you should avoid using bool, BOOL in your application. Cheers, Anand:-D
-
DCOM, Events and PerformanceUsually Events in COM are a kind of painful. these were designed for in- process DLLs. Each event takes 5 round trips from source to sink to complete its duty. Just imagine, how much load on the network due to these round trips.. If you have 8- 10 events.........think.. 40-50 round trips( calls) I will come up with more info.wait.. Cheers, Anand.
-
DCOM with Visual C++Use this. HRESULT CoCreateInstanceEx( REFCLSID rclsid, //CLSID of the object to be created IUnknown *punkOuter, //the controlling IUnknown DWORD dwClsCtx, //CLSCTX values COSERVERINFO *pServerInfo,//Machine on which the object is to be instantiated ULONG cmq, //Number of MULTI_QI structures in pResults MULTI_QI *pResults //Array of MULTI_QI structures ); Cheers, Anand
-
Id like some help please....I got the same problem. you need to have .NET on target machine. http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml. try to download this and have fun. - Anand :)
-
CAB files Vs HotmailI tried (5 times)to attach CAB file, but no luck.. Its not giving any error, but simply ignores what you doing..
-
CAB files Vs HotmailJust to share with you guys, Hotmail is not accepting CAB file as an attachment. Anybody tried? -Anand
-
Deploying C# Application?Hi, I am trying to run my C# application on different machine by copying executable. I am getting this error. " A required, MSCOREE.DLL, was not found". Can some one guide me how to deploy.?(FYI: I am creating Cab Project and set up project) Any restrictions on target machine for deployment.?:confused: Thanks, Anand.
-
C# propertiesI think ONE. ( may be this approach can help us) As we know , this the way of accessing member variables( state of the class) through methods(get,set) without breaking the client code. Often memeber variables (State) need to be computed.(ex: get and set to/from DB),then this way of accessing will be useful. I think this the trade-off.(If we really wasting space) Check your MSIL using ILDASM.exe( NET FWk/SDK/ bin). in your example, NAME is property and name is member variable. Next, value is implicit parameter for "set" method CLR reads your program as set(value) { membervariable = value; } Thanks, Anand.
-
C# and .NET booksC#: -Programming C#, Jessy Liberty.: ISBN 0596003099 -C# and the .Net Platform : ISBN 1893115593 .NET -.NET Framework Essentials, 2E : ISBN 0596003021 I prefer bookpool, ( www.bookpool.com)( Save some money here) You can preview books @ http://safari.oreilly.com Cheers Candy
-
help in treeview neededtry to get code from this book. chapter 13 - Programming C#. by Jesse Liberty Link for source code is in this web site. www.libertyassociates.com
-
Errors & Exceptions in C#How to solve "System.StackOverflowException" I am getting this, when I try to set a value to memeber variable. namespace StackOverFLow { /// /// Summary description for Class1. /// class StFlow { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { StFlow STF = new StFlow(); STF.Name = "CodeProject"; string str = STF.Name; } public string Name { get { return Name; } set { Name = value; } } } } Thanks, Candy