|
Hey everybody!!
I need to know if the Document property of the WebBowser control (used by Internet Explorer) returns also the DOM elements created dynamically via Javascript or just the static ones defined on the page.
If anybody knows something about this, or has used the control and can give a hint on this, I will really appreciate it. Any ideas are welcome.
Thanks in advance,
Best regards,
Kenia
|
|
|
|
|
sorry... but why not simply test it yourself?
|
|
|
|
|
Hi,
I am new to MAPI and exchange. I need to develop a plugin/server that can process all messages (of all users) on the server. I've seen examples where extensions are written and hosted in COM+ apps. However, I could not find any concrete examples written in C++.
I would appreciate it very much if someone can point me to any articles/examples that show how to hook onto exchange and perform operations at a global level.
Even if not on global level, atleast how to register for callbacks and get events on messages being read/moved/deleted/reply etc would be great.
Thanks in advance,
Cheers
Raja
|
|
|
|
|
Hi,
I've written a COM+ server in C# (VS 2005) which I can successfully use in both delphi and c# windows applications. However, I also have a c# windows application which has a plugin architecture whereby it creates a separate application domain in which the plugins are loaded and unloaded. The problem is, if one of the plugins uses the COM Server, although everything works fine, including the unloading and loading of the plugins, when I close the application I get and "Attempted to read or write protected memory" error during the OleUninitialize stage. The COM Server has been loaded and registered using regsvcs and regasm, and installed in to the GAC. The problem exists when using both early and late binding. Viewing the names of all the assemblies held in the separate application domain created by the program I can see the COM Server listed.
Hope this is enough information.
Any help would be appreciated.
Many thanks.
|
|
|
|
|
I have a COM project that builds fine in VS 2005 pro that I'm trying to migrate to 2008 pro. When the project links though, I get an MIDL2025 error when it tries to link an interface method that uses an exported structure. Is there something that changed between the two versions, or is there something else that I have to set in the build environment? Here's a snippet that shows what I'm dealing with:
[export,library_block]
struct MSG
{
DWORD dwMsg;
DWORD dwID;
};
// _IEvents
[
object,
uuid("B0EE4D4C-7153-4844-9907-CAAEB5F4B214"),
helpstring("_IEvents Interface"),
pointer_default(unique)
]
__interface _IEvents: IUnknown
{
[id(1), helpstring("method MessageEvent")] HRESULT MessageEvent([in] MSG m);
};
|
|
|
|
|
Hello, I am a beginner within the COM programming. After I have seen some simple examples of COM, I have a question about it.
Could any one tell me when using COM within a VC project, after compile and link, is there any difference with other common VC projects?
Many thanks
|
|
|
|
|
Currently my the process I'm going through for each change of the C# code in the COM object is the following. Is there anyway I can streamline the number of manual steps involved?
Close the Excel spreadsheet using the COM object.
Build the COM object using VS03.
Open the spread sheet.
Open VBA.
Open the references dialog.
Remove the Missing:myObject reference.
Close the references dialog.
Reopen the references dialog.
Add the MyObject reference.
Close the references dialog.
Run the VBA.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Aside from writing log files or spitting out mesageboxes can I debug a managed COM (C#) object being called from within a VBA (excel) application?
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
I've found I can open my test spreadsheet automatically when i start my VS project using the debug properties page of the project. I've found a new showstopper though. The moment I try and run the calling VBA macro in my spreadsheet it closes excel and ends my VS debugging session. The same thing happens if I have it launch excel without a document and then manual open it using that copy of excel.
If I open the spreadsheet in a separate excel window the macro runs and calls the COM object successfully but my breakpoints in the C# code are ignored.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Does VS03 need to write the registry every time a COM object is recompiled, or only the first time?
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Check Post-Build event in your Project properties
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
THe post build event is empty. The registry fiddling is apparently being done elsewhere.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
Do you build your project from within Visual Studio IDE or through any custom script (e.g batch script etc) ?
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
VS IDE. Project type is: Other projects-extensibility projects-shared add in
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
I tried creating a sample Project type : Other projects-extensibility projects-shared add in
By default, Post build event has -
regsvr32 /s /c "$(TargetPath)"
This will register adding every time you build. This is just a development time helper.
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
I have added a new interface to my activex control (ACEvt)
I have modified the odl file, and added the necessary BEGIN_INTERFACE_MAP, BEGIN_DISPATCH_MAP etc.... in the class implementation file.
//odl file
[ uuid(BED02315-567E-4a5d-A56B-5F00F228E041)]
dispinterface ICount
{
properties:
methods:
};
[ uuid(7C39BF1F-66DE-423e-B526-87626D80AE4D)]
coclass Count
{
[default] dispinterface ICount;
};
When I try to call CoCreateInstance and QueryInterface, i'm getting E_NOINTERFACE error.
IUnknown *pUnk = NULL;
HRESULT hr = CoCreateInstance(CLSID_ACEvt,NULL,CLSCTX_ALL,IID_IUnknown,(void **)&pUnk);
ICount *pCount = NULL;
hr = pEvt->QueryInterface(DIID_ICount,(void **)&pCount);
When I tried directly calling CoCreateInstance on Count, then I got "Class not registered error"
HRESULT hr = CoCreateInstance(CLSID_Count,NULL,CLSCTX_ALL,DIID_ICount,(void **)&pCount);
What might be the problem?
Thanks
|
|
|
|
|
Increment major version number on your type library.
|
|
|
|
|
Can anybody suggest me the material or site to refer to study ActiveX, ATL and COM control since i m new to this concept...
werwr
|
|
|
|
|
I'm passing an HBITMAP between an application and an out-of-process server.
If the HBITMAP is from a device compatible bitmap, the application displays it correctly.
If the HBITMAP is a DIB section, it displays as a black rectangle the same size as the bitmap.
Any ideas?
Software Zen: delete this;
|
|
|
|
|
I am developing a COM exe using ATL in VS 2005.
On my build machine( XP Pro) , I am able to successfully run the application (debug version )however when I copy the exe to another machine (XP Pro) the exe cannot run .
I get an error message
"The application has failed to start because the application configuration is incorrect . Reinstalling the application may fix this problem"
I have no clue about this error .
Help is appreciated !
|
|
|
|
|
First thing, you cannot distribute debug version of your program.
Then, you need to install the run-time libraries and MFC libraries on the target machine. For that, you can execute vcredist_x86.exe on the target machine (you can download it from here[^]).
The link I provided is for VC2005 standard. If you installed the SP1 for VC2005, then look at the links at the bottom of the page, there is a similar download for SP1.
This will install the release versions of the libraries, so you need to distribute a release version of your program too.
|
|
|
|
|
I've taken source code from several samples on the web, created a new class library project, and compiled it but I'm only getting a .dll file output, not the .tlb file regasm needs.
Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull
|
|
|
|
|
REGASM[^] has an option to generate TLB file
Sohail
modified 21-Apr-21 21:01pm.
|
|
|
|
|
I have an Activex control which exposes multiple interfaces for example,
ISample1 – CSample1 (Coclass)
ISample2 – CSample2 (Coclass)
I need to add new methods/properties (a new version). Since ISample1 and ISample2 cannot be modified, I’ll have two new interfaces,
ISample1Ext
ISample2Ext
These will be a replication of ISample1 and ISample2, but with new methods/properties added. The old interfaces will be marked deprecated and may be removed in future.
The question is, can I still use the classes CSample1 and CSample2 as CoClasses for ISample1Ext and ISample2Ext and modify them to implement the new methods/properties?
If this new version of the control is copied to the client m/c, how will it affect the applications that are using the old version of the control?
If I try to insert this control in an application, which version will be inserted? Also, how do you differentiate between the old version and the new version?
Thanks
|
|
|
|
|
Dear all,
we can invoke our dlls from backgroud services.. like from "services.msc",
i have adoubt when we are writing such services what should be taken care so that it comes under "services.msc" not in "dcomcnfg"
and what is the difference in those two types ....
Thanks in advance
T@SU
|
|
|
|