thanks!
liyang yu
Posts
-
can someone recommend a good book on ASP.NET? -
can someone recommend a good book on ASP.NET?Thanks a million!!
-
is there a class HtmlDocument in .NETJust wondering if there is a type named HtmlDocument, seems it is in the Systems.Windows.Forms namespace? thanks!
-
simple question about serviceName when developing a win servicewhen creating a windows service, I wanted to change the ServiceName property - in which IDE Properties window can I find the ServiceName property and change it to whatever name I want??:confused:
-
difference between .NET remoting and shared/private assembly?thanks steve, good point. basically, the .NET remoting allows you to customize the whole underlying architecture if you so choose. by the way, I also notice that you have the MCSD and MCAD certs. congratulations!! would you mind telling me which 3 exams you took for the MCAD cert? thanks!
-
difference between .NET remoting and shared/private assembly?Just want to have a clear understanding of the following (related) issues: 1. Private/Shared Assembly allows us to have some sort of "binary reuse": for instance, you can create a assembly (either private or shared) which contains some "utility" types, then in another application, you can add a reference to the above assembly and make use of the types in it. Yet you can create another different application still use this same assembly ... we may call these different applications clients, and the utility assembly server. 2. .NET remoting: this architecture allows us to invoke a method on a remote object, again, the remote object can be considered as server, the application who invokes the methods can be view as client. 3. classic COM/DCOM: you can build COM server which has the coclasses, you can also have a client that consume the functions of those coclasses. at run time, the COM runtime (quite like the CLR) will load the COM server so the COM client can have someone to talk to. So, what exactly is the difference among these three??? for example, the private/shared assembly as a server, it in fact lives in the same AppDomain with its client, but in the .NET remoting model, the client and server are for sure not in the same AppDomain, so this model is about crossing the AppDomain boundaries. can someone summarize more differences?
-
good books on C#?Thanks!!
-
good books on C#?Thanks!!
-
good books on C#?can someone suggest some good book(s) on C# and .NET? Thanks!
-
basic question about COMno, plain COM.
-
a small example in COM?Thanks Michael, but that looks like a ATL article, I guess I wanted a COM article?? Thanks again for the quick response!
-
a small example in COM?can someone kindly point me to a small example of a local COM server (exe) and a client who is accessing this local server? that will be extremely helpful! Thanks!
-
GetObject() failednot really. this is a very simple example, in fact it is a small lab example from this "Developer's Workshop to COM/ATL 3.0" book, and the author's own lab code also produces this problem. sigh..., and I cannot find his contact info.
-
GetObject() failedThanks! In fact, I am using a EXE (local COM server) server, and the registry key looks like following:
HKEY_CLASSES_ROOT\CLSID\{myClassGUID}\LocalServer32 = somePath
so this part should be fine... I appreciate your input very much though. liyang
-
GetObject() failedI am developing a simple local COM server, after I finished building this server(compiled, ran), then I used the OLE/COM object viewer to check it (I am using VC6.00, and this OLE/COM object viewer is a tool provided in the IDE of VC6.0), I opened up the "All Objects", I can see the one that is inside my newly created local COM server, but when I clicked the "+" sign to open it more up, it says the following: GetObject() failed, The system cannot find the path speicifed, $80070003 Anyone knows what is this and what is reason?? :confused: thanks!
-
basic question about COMIt took me a day to figure this out: I am using VC 6.00, and my
stdafx.h looks like this: #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include // TODO: reference additional headers your program requires here //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) you need to get rid of #define WIN32_LEAN_AND_MEAN to make a simple local COM server work!! Thanks!
-
basic question about COMYes,I did. In fact, I did the following:
#include "stdafx.h"
which includes
windows.h
. -
basic question about COMyes, I did...
-
basic question about COMI am writing a very simple local COM server (exe), which has a
Car
class, aCarClassFactory
, also a simpleidl
, everything goes well until the WinMain() file which provides the housing for the coclass and class factory, vC6.00 keeps saying the following:Deleting intermediate files and output files for project 'CarCOMExe - Win32 Debug'.
--------------------Configuration: CarCOMExe - Win32 Debug--------------------
Creating Type Library...
Processing F:\COM\CarCOMExe\CarCOMExeTypeInfo.idl
CarCOMExeTypeInfo.idl
Processing F:\Microsoft Visual Development\Microsoft Visual Studio\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing F:\Microsoft Visual Development\Microsoft Visual Studio\VC98\INCLUDE\objidl.idl
objidl.idl
Processing F:\Microsoft Visual Development\Microsoft Visual Studio\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing F:\Microsoft Visual Development\Microsoft Visual Studio\VC98\INCLUDE\wtypes.idl
wtypes.idl
Compiling...
StdAfx.cpp
Compiling...
Car.cpp
CarClassFactory.cpp
CarCOMExe.cpp
f:\com\carcomexe\carclassfactory.h(13) : error C2504: 'IClassFactory' : base class undefined
f:\com\carcomexe\carclassfactory.h(19) : error C2061: syntax error : identifier 'REFIID'
f:\com\carcomexe\carclassfactory.h(25) : error C2061: syntax error : identifier 'LPUNKNOWN'
F:\COM\CarCOMExe\CarCOMExe.cpp(32) : error C2065: 'CoInitialize' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(36) : error C2065: 'ITypeLib' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(36) : error C2065: 'pTLib' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(36) : error C2106: '=' : left operand must be l-value
F:\COM\CarCOMExe\CarCOMExe.cpp(37) : error C2065: 'LoadTypeLibEx' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(37) : error C2065: 'REGKIND_REGISTER' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(38) : error C2227: left of '->Release' must point to class/struct/union
F:\COM\CarCOMExe\CarCOMExe.cpp(48) : error C2065: 'CoRegisterClassObject' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(48) : error C2065: 'IClassFactory' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(48) : error C2059: syntax error : ')'
F:\COM\CarCOMExe\CarCOMExe.cpp(61) : error C2065: 'CoRevokeClassObject' : undeclared identifier
F:\COM\CarCOMExe\CarCOMExe.cpp(65) : error C2065: 'CoUninitialize' : undeclared identifier
locks.cpp
Generating Code...
Error executing cl.exe.
Creating browse info file...CoCarEXE.exe - 15 error(s), 0 warning(s)
-
can someone recommend a COM book?need to know some COM stuff, can someone kindly recommend a good/popular COM/COM+ book?:)