Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

liyang yu

@liyang yu
About
Posts
38
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • can someone recommend a good book on ASP.NET?
    L liyang yu

    thanks!

    ASP.NET csharp asp-net question learning

  • can someone recommend a good book on ASP.NET?
    L liyang yu

    Thanks a million!!

    ASP.NET csharp asp-net question learning

  • is there a class HtmlDocument in .NET
    L liyang yu

    Just wondering if there is a type named HtmlDocument, seems it is in the Systems.Windows.Forms namespace? thanks!

    ASP.NET csharp question

  • simple question about serviceName when developing a win service
    L liyang yu

    when 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:

    C# question visual-studio

  • difference between .NET remoting and shared/private assembly?
    L liyang yu

    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!

    C# csharp dotnet com sysadmin tools

  • difference between .NET remoting and shared/private assembly?
    L liyang yu

    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?

    C# csharp dotnet com sysadmin tools

  • good books on C#?
    L liyang yu

    Thanks!!

    C# csharp question learning

  • good books on C#?
    L liyang yu

    Thanks!!

    C# csharp question learning

  • good books on C#?
    L liyang yu

    can someone suggest some good book(s) on C# and .NET? Thanks!

    C# csharp question learning

  • basic question about COM
    L liyang yu

    no, plain COM.

    COM csharp c++ visual-studio com sysadmin

  • a small example in COM?
    L liyang yu

    Thanks Michael, but that looks like a ATL article, I guess I wanted a COM article?? Thanks again for the quick response!

    COM com sysadmin tutorial question

  • a small example in COM?
    L liyang yu

    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!

    COM com sysadmin tutorial question

  • GetObject() failed
    L liyang yu

    not 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.

    COM com question visual-studio sysadmin

  • GetObject() failed
    L liyang yu

    Thanks! 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

    COM com question visual-studio sysadmin

  • GetObject() failed
    L liyang yu

    I 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!

    COM com question visual-studio sysadmin

  • basic question about COM
    L liyang yu

    It 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!

    COM csharp c++ visual-studio com sysadmin

  • basic question about COM
    L liyang yu

    Yes,I did. In fact, I did the following:

    #include "stdafx.h"

    which includes windows.h.

    COM csharp c++ visual-studio com sysadmin

  • basic question about COM
    L liyang yu

    yes, I did...

    COM csharp c++ visual-studio com sysadmin

  • basic question about COM
    L liyang yu

    I am writing a very simple local COM server (exe), which has a Car class, a CarClassFactory, also a simple idl, 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)

    COM csharp c++ visual-studio com sysadmin

  • can someone recommend a COM book?
    L liyang yu

    need to know some COM stuff, can someone kindly recommend a good/popular COM/COM+ book?:)

    COM com question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups