|
I deleted an interface method and and tried to add it again but I get the following errors twice when compiling:
...\include\atlcom.h(1827) : error C2259: 'CComObject<class cessunit="">' :
cannot instantiate abstract class due to following members:
...\include\atlcom.h(1823) : while compiling class-template member
function 'long __stdcall ATL::CComCreator<class atl::ccomobject<class
cessunit=""> >::CreateInstance(void *,const struct _GUID &,void ** )'
...\include\atlcom.h(1827) : warning C4259: 'long __stdcall
IESSUnit::ClassDescription(void)' : pure virtual function was not defined
...\esscounit.h(205) : see declaration of 'ClassDescription'
...\include\atlcom.h(1823) : while compiling class-template member
function 'long __stdcall ATL::CComCreator<class atl::ccomobject<class
cessunit=""> >::CreateInstance(void *,const struct _GUID &,void ** )'
I've tried removing every instance of 'ClassDescription', restarting DevStudio and rebuilding the entire COM. I've tried adding the method without arguments. Nothing works. Any suggestions?
Dave
Dave
http://www.unit-conversion.com
http://www.essco.co.uk
|
|
|
|
|
hey Dave,
Devstudio also generates a .rgs file, look inside and you'll find that it like a .reg file.
You can manually update this but its like modifing generated code...
If your up to it, recreate the project and re-add the methods.
Let me know how you go.
Jules
|
|
|
|
|
Thanks for replying. When I looked in my three .rgs files (one for each of my interfaces) I didn't find anything that relates to the individual methods, only the interface itself. What am I meant to do with this file?
Dave
http://www.unit-conversion.com
http://www.essco.co.uk
|
|
|
|
|
I use in dialog-based application ActiveX object (1) and in ActiveX object (1) second ActiveX object (2). I don`t use events from first ActiveX (1) in second ActiveX (2). Please, help me. Thanks.
Ivan
|
|
|
|
|
Ivan,
I assume you are asking if your DialogApp can receive event from the 2nd
ActiveX Control.
You need to somehow get access to ActiveXCtrl2 and I recommend that that you
implement a mehtod in ActiveXCtrl1 like:
HRESULT GetActiveX2(IUnknown** ppUnknown);
Which will supply you with the Interface pointer.
Then you can do the usual QueryInterface stuff to get a handle to the ctrl.
That then leads to Asking for the ConnectionPointContainer etc.
This is assuming C++ of course.
Sorry I couldn't go into more detail, but there just so much I didn't know
where to start.
Jules
|
|
|
|
|
Can I insert first ActiveX object into second ActiveX objekt and use second ActiveX object in dialog-based application. Thanks.
Ivan
|
|
|
|
|
hi
I would like to know where can I download the audio source code for Windows CE(ATL COM)?
|
|
|
|
|
Hi, I'm not sure that this is the right forum but I coldn't find any "Shell" forum. I'm sorry if this is the wrong forum (please correct me if so).
I'm currently developing a shell extension that resides on desktop. It uses a database for dynamic subfolders display. Each subfolder could possibly have different types of mount points (e.g. Compound file, a directory or database "fs"...).
ShExt
|
A Folder (DB Retrieved "root" folder)
....|
Compound "fs"
Next Folder (DB Retrieved "root" folder)
....|
Database "fs"
etc...
Many Thanx in Advance
Mario
Problems/Questions:
P1) Each "root" folder needs a login: When a new "root" folder is about to expand i use SHChangeNotify with SHCNE_MEDIAREMOVED (since i've marked the "root" folders as removable) to compress the possibly old expanded folder is being compressed. The problem is that explorer is wery slow, it always enumerates the new folder before compressing the old one and makes it really messy.
Q1) Is it some way of making explorer to compress it first and then use the enumerator? (I don't want to do any "hacking" in the tree pane...
P2) Since my implementation internally just uses UNICODE and I don't have a Win95 box: I don't like to have separate distributions of my program at least internally the same, except for the UI stuff...
Q2) Does Win95 query for e.g. IExtractIconW or does it just uses IExtractIcon ?
P3) Not really a problem, but laziness (or rather less code to maintance)?
Q3) Is there any "generic" helper object that I could use for the view pane if no custom is needed (that takes IShellFolder* param and uses the enumerator, IExtractIcon etc... and populates it...)?
P3) Well... not a problem, rather a general question?
Q4) Why do explorer (on my Win200 machine) seems so "sloppy" in terms of instantiating uneccesary many times?
Dump (I've written the component in ATL :
FinalConstruct
Initialize
GetClassID
FinalConstruct
Initialize
EnumObjects
FinalConstruct
Next, GetDisplayNameOf
Next, GetDisplayNameOf
Next, GetDisplayNameOf
Next
FinalRelease
FinalRelease
FinalRelease
// Ok, until here (seems to use threads to do above stuff)
// Here the strange stuff begins... It seems, for me anyway,
// wase of computational power doing that many
// instantiation of the object?
// (Lucky me that I don't do that much in the Initialization process (FinalConstruct,
// Initialize), merely store the pidl for futher use,
// but one might have to do some more processing one day in the Initialization routine)
FinalConstruct
Initialize
GetDisplayNameOf
GetUIObjectOf
FinalRelease
FinalConstruct
Initialize
GetDisplayNameOf
GetUIObjectOf
FinalRelease
FinalConstruct
Initialize
GetDisplayNameOf
GetUIObjectOf
...
|
|
|
|
|
Hello,
I am creating an ActiveX control using ATL to replace an existing one based on MFC - it all works fine in test container.
I have a problem when putting the control onto a HTML page.
The previous control loaded a file in the onload handler in javascript:
e.g.
function myloader()
{
myobject.loadfile("wibble.file");
}
etc.
the onload code needs a valid window to have been created - the problem is that the window is not created until after the method is called.
I have the m_bWindowOnly set to true so it should be trying to create a windowless control.
anyone else come across this or know how to overcome it.
Thanks
|
|
|
|
|
How do I built a connectable component using MFC? The component should be capable of sending and receiving events.
Thanks,
|
|
|
|
|
When I pass a handle of file (or bitmap) to the server ,which has been opened from the client , the server can't access the file.When the server reads from the file , the operation don't return an error code but the information that has been read is wrong(or the bitmap can't be selected in any device context).I tried lots of things , but nothing helped me.Please help me.
|
|
|
|
|
hey Joe,
You can not use HANDLE's between processes.
You need to call DuplicateHandle to have your second process have its
own handle to the same resource.
Watch out for the first arguement to DuplicateHandle as it is a HANDLE to the
process that created it, the way to get that is to call OpenProcess with the
ProcessId.
Jules
|
|
|
|
|
My MS-Mpeg4 compressor has become corrupt, I cannot find this file anywhere.
Could somebody please advise me on where I may find this file ??
Regards
Robin
|
|
|
|
|
Hi Guys,
My application is needed to connect to another application that supports automation( like Word, Exec), but the problem is: When I start my application, the application I want to connect may have many running instances, if I use the ProgID to get the ClassID and create a DispatchDriver by that ClassID, I always get the IDispatch* from the first started instance.
Do you guys know anything about how to do that and kindly give me some ideas?
|
|
|
|
|
Hello,
Can anyone point to a good resource (Book/Web) where I can find articles on creating COM+ object with VC++
|
|
|
|
|
Hi everyone,
I'm trying to build an activeX (ATL)witch contain a combobox.
The problem is, I can't see the strings that I add in the combobox list.
At test mode everything seem perfect, but When I insert my New control in any container there is no string inside.
I learned on another site that it is a bug, But they don't say exactly how to solve it.
I'm usign Visual C++ 6.0 to build it. This crucial for me
Please if you have any solution contact me that will appreciated.
Email: skoomson@motus.com
|
|
|
|
|
Hi,
I have developed a vbcomponent(Activex dll).the component has the function
like this SynonyList(Words, WordList, MeaningArray, cou)-Words,wordlist,meaningarry,cou are variant. if u pass a word in this fucntion it
returns wordlist,meaningarry as array of strings,cou as integer.if i use this
in vbscript it works .but javascript i don't know how to pass it to the function.
pls give me ur suggestions.
|
|
|
|
|
Hello
I'm working on VC++6 , on Windows NT.
I'm planning on building an MFC ActiveX.
The ActiveX looks like this:
It will look as a black rectangle but in the rectangle
there will be an inner rectangle which will be transparent.
So you will have an internal transparent rectangle inside
A black rectangle.
Does anyone knows how to make an ActiveX control that
has a transparent rectangle inside it ?
Thanks , Roni
|
|
|
|
|
When a NT workstation is installed in a certain domain A, and then moved to another domain B, then following happens:
When a COM-component is registered, in the dcomcnfg you see
owner : account unknown.
What can be the reason ?
Best regards,
P. de Hon
|
|
|
|
|
Have any idea about how to invoke a context menu on right
click of Network Neighborhood computer. Say u want to display two menu
items like connect and disconnect of a n/w neighborhood computer using
ShellExtensions.
Any idea or suggestions highly appreciated..
Pls. provide how to register the component , i mean under what hive to be
registered.
Thanks & Regards,
soma
|
|
|
|
|
Hi,
I've got to develop a snap-in for the Microsoft Management Console (mmc). I dont have documentation to do that. If someone have a link or an example to help me it would be very apreciate. I usually seen the msdn documentation but it's not very clear in my head and I have trouble with the example.
Thanx for helping me !!!
|
|
|
|
|
This months (MARCH 2001) MSDN Magazine page 56 titled "Build more flexible console snap-ins
with the MMC 2.0 Object Model".
I hope this helps...
|
|
|
|
|
Yap, let's write snapins using visual basic. C001!
|
|
|
|
|
I've wrote one...
Feel free to contact me mailto:reznitskiy@softlab.ru (english/francais/russian).
And there is some documentation in msdn on writing snapins.
|
|
|
|
|
I'm writing a COM Application using ATL. Up until now, I haven't had a problem with building the DLL. I was debugging my application and made a minor change to solve a problem. But I couldn't register my DLL. I undid my change but I still get the following error:
Linking...
Creating library Debug/MAPConnector.lib and object Debug/MAPConnector.exp
Performing registration
RegSvr32: LoadLibrary(".\Debug\MAPConnector.dll") failed.
GetLastError returns 0x000000c1.
MAPConnector.dll - 0 error(s), 0 warning(s)
Could someone tell me what the error message means and how to solve it? I'll appreciate any help I can get.
|
|
|
|