|
Since it seems like you didn't get any compiler errors, the CLSID for the server is defined somewhere in your project. Look it up.
Open the registry editor and try to find the CLSID below HKCR\CLSID.
If you're not able to find it there, the server is in fact not registered and you should probably reinstall the SDK again. If that doesn't help I don't know what to do besides contacting the support for the SDK, unless you know what files to register.
If you are able to find it, does it have an InProcServer32 key below it?
If it does, what does the default value of it contain? It should contain the path to the server and if it does so, can you find the server where it says?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
well ,thanks roger
but now creating new prob.
Can you have any idea about breaking the application and given the following error?
Unhandled exception at 0x7c910370 in DRMClient.exe: 0xC0000005: Access violation reading location 0x00000000.
before few times it was working nice then after one hour wehn i came back from lunch.
I ran it was give the breaking of application.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: Can you have any idea about breaking the application and given the following error?.....Access violation reading location 0x00000000
At some point you are dereferencing the NULL pointer.
Since your application uses COM I suggest you make sure that every interface pointer you use doesn't equal NULL.
Use the TRACE macro and print some debug info when you validate an interface pointer and it turns out to be NULL unexpectedly.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I want to program a software with VC++.The function of my software is same as the MS's Remote Desktop Client.I want to use the wtsapi32.dll or mstscax.dll to code my software,but I don't know how to use them, What should I do? Could you give me some suggestions? Sample code is best.Thank you very much!
My Email:lipingliang231@163.com.
|
|
|
|
|
Hi,
Can any one expplain How to convert a CString to _bstr_t......
thanks in advance
Thanks a lot
|
|
|
|
|
One of the constructors of _bstr_t takes a const char* as argument. Since CString has a type conversion operator LPCTSTR that returns a const char* you can do the following:
CString str = "The string";
_bstr_t bstrTest( str );
bstrTest = _bstr_t( str );
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
[fx: pedant mode on]
Roger Stoltz wrote: Since CString has a type conversion operator LPCTSTR that returns a const char* you can do the following:
No it doesn't. It returns const TCHAR*, which in a UNICODE build won't be the same as const char*. However, _bstr_t has a constructor that accepts const wchar_t* as well as one for const char*, so it will work in either case.
[fx: pedant mode off]
Steve S
Developer for hire
|
|
|
|
|
Now you're just being picky Steve... but you're right of course.
However, I think the OP got the picture and depending on the OP's level of expertise it may have been confusing to start talking about unicode.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Of course I'm being picky. When you get to my age, it's one of the few pleasures left in life that doesn't cost money or end up causing some kind of muscular spasm...
I agree that it might have been confusing, which is one of the problems of CP. It's hard to know what level the OP is at (or in some cases, they think they're at), and that makes it difficult sometimes to give the 'right' answer, because they may end up worse off than before.
I did like the thread here[^] where someone else came in and finished explaining it while I was asleep
Steve S
Developer for hire
|
|
|
|
|
How can I create an empty DACL?
|
|
|
|
|
What do you want to do with it (apart from the obvious "put it into a security descriptor") ?
I'm sure there's stuff on MSDN about doing this, usually found by asking pointed questions about named pipes and such which are normally used by services, and the question is generally "why does it work when I run my server interactive, but not when it's a service"....
Steve S
Developer for hire
|
|
|
|
|
Hi All,
1). Which is the COM service that creates stub and proxy for out-proc-server COM objects?
2). What makes up the COM frameworks?
~Suraj
Suraj Gupta
|
|
|
|
|
COM Framework
OLE32.dll [basic COM framework]
OLEAUT32.dll [ Automation and Marshalling ]
RPCRT4.dll [ Runtime to support Remote Procedure Calls ]
Cheers,
Suresh
|
|
|
|
|
I need a free .ocx or .dll to view and zoom one of vector images (e.g. wmf images ).
Can you help me?
m_emami2002@yahoo.com
m_emami2002@yahoo.com
|
|
|
|
|
Hi,
I need co create COM objects in C# and use them again in C#. I've good articles how to create COM but haven't found anything about how to use them in C# .
|
|
|
|
|
First post, so be gentle...
I didn't know where to post this, so I'll start here...
I have a COM DLL that is part of a 32bit executable application. The DLL relies on other files and DLLs to operate. I have a reference in VS.NET 2K5 to the DLL and when working locally, the DLL does exactly as it's supposed to.
Now here's the problem. When I upload my site, the DLL breaks and returns "Error HRESULT E_FAIL has been returned from a call to a COM component".
This could mean one of two things:
1. The COM DLL encountered an error.
2. The COM DLL is nowhere to be found.
I installed the application on our server. I registered the COM DLL. And I can locate the DLL using System.IO.File.Exists. But it's still failing.
So I have a two part question:
1. Can I load the DLL dynamically using Reflection and have the same access to its members?
2. Is there a magic way to register the DLL in the GAC and not break the linkage to its other resources?
I've never worked with COM objects before so my experience is somewhat limited.
Any help on this is GREATLY appreciated!!
-Daniel
|
|
|
|
|
Hi,
i have an toolbar button on IE, and i just want to show an html popup with js effects on click event and again hide that popup on mousemove event,
i try to access js file from vb6.0 but not getting the desired results...
please try to give any link or suggesitons over this(call html/js attach to command button on ie)
thanks in advance.
amolk
amolk
|
|
|
|
|
I want to send and receive the binary data across systems. The problem I'm facing is, when a binary file is read and it is sent, the binary data will be sent upto the first encountering NULL character. So I'm wondering, how can I send.
Plzzzzz, help me in this issue.
Suggestions would be greatly appreciated.
Come online at:-
jubinc@skype
|
|
|
|
|
Hello,
Just try:
*.idl: HRESULT FunName([in,out] SAFEARRAY(BYTE)* pbtBufData);
*.h : STDMETHOD(FunName)(SAFEARRAY** pbtBufData);
*.c : STDMETHODIMP CClassName::FunName(SAFEARRAY** pbtBufData){...}
Regards,
|
|
|
|
|
ThanX lafleon very much!
I'll try with this.
Come online at:-
jubinc@skype
|
|
|
|
|
Hi,
I was wondering is it possible to monitor all the Active/COM objects as they are being instantiated by programs. I think it should be possible by hooking into the API that is used to get the interfaces to them. I have been trying to figure out which components are missing or not registered in the system but it is just too much pain trying to guess. I have searched on the net but have not found anything useful on the topic.
Thanks
|
|
|
|
|
Hi
I have a object.And i want to convert it into VT_DISPATCH variant.How can i do this.
|
|
|
|
|
VARIANT v;
V_VT(&v) = VT_DISPATCH;
obj->QueryInterface(IID_IDispatch, (void**)&V_DISPATCH(&v));
...
VariantClear(&v);
With best wishes,
Vita
|
|
|
|
|
Hi,
I have declared a smart pointer of COM interface globally.
When I call CoUninitialize in ExitInstance it throws an exception.
Because it is trying to release interface pointer twice.
How can I overcome this problem?
I have to declare interface pointer globally.
Hari om Tiwari
|
|
|
|
|
You are not supposed to call any COM API after calling CoUninitialize .
By declaring a com smart pointer globally, you are making call to IYourInterface-->Release() function.
|
|
|
|