|
|
Are you running Word 98 or later?
I have had problems where I couldn't find the file with earlier versions of Word.
|
|
|
|
|
I am running office xp pro. I cannot find the files.
If someone could help me. That would be amazing. I really appreciate u're help.
Thank-you.
|
|
|
|
|
Problem with finding msword.olb, where can I download these files.
To incorporate COMs.
Thanks.
matt
|
|
|
|
|
In order to use the Microsoft Web Browser ActiveX control, I need to call AfxEnableControlContainer() in my App::InitInstance. My application requires that I also call CoInitializeEx(NULL, COINIT_MULTITHREADED).
When I comment out the CoInitializeEx() call, the browser displays. If I let it run, the dialog with the ActiveX control won't initialize.
Any guesses as to what the problem is?
J
"I am wise enough to therefore not spout my ill informed opinion as if it were remotely related to fact." - Christian Graus
|
|
|
|
|
Because CoInitializeEx(...) has been called in MFC for different threading model and it failed.
If you can create an ActiveX control without calling that function, that means the function was called.
soptest
|
|
|
|
|
Ok, but I need the multithreaded model. I know that these controls will work in a multithreaded environment... any idea how to set them up?
J
"I am wise enough to therefore not spout my ill informed opinion as if it were remotely related to fact." - Christian Graus
|
|
|
|
|
That is why I do not use MFC.
Try this:
Create another thread, CoInitialize it as multithreaded, create control on that thread.
soptest
|
|
|
|
|
Documentation provided by a third party ActiveX component supplier claims that thier controls are coded in VB thus will not work with ATL due to a Microsoft bug/limitation. I have never heard of this and cannot find a word of documentation on MSDN or in any of the number of books I own on ATL/VB/COM/IDL? Has anyone run across this?
|
|
|
|
|
I do not know of any limitations as well. However they may be referring to extending their components through agregation or something like that, which I still do not think there will be a problem with that.
Did they elaborate on which way you will not be able to use it with ATL, because the only reason that you would want to use a VB activeX control with ATL is if you were trying to customize the ActiveX control with ATL. Otherwise it makes no difference what language that you access the activeX control from.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Thanks for the reply kilowatt
All we want to do is utilize the controls. The solution is to utilize VB for most UIs since we are heavily componentized. The problem is that many of our developers have an aversion to VB.
|
|
|
|
|
I am not aware of any problems then, you should have no problem using the VB components in an ATL program. One of the primary goals of COM is to provide binary compatibility. In fact you should not even care if a component is written in VB, C++ or even fortran, as long as it properly follows the rules of COM.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Howdy, I built an app that used ODBC to write to an SQL database. The client has just turned around and said that they wish to use OLEdb connection strings to tell my app where the server is (instead of ODBC DSNs).
Everything I've found on using OLEDB to access databases, is a whole pile of COM interface stuff with no real world examples. A far cry from the 'CDatabase' simplicity I'm used to.
Can anybody help me with this ?
All I need to do is to write some data via INSERT statements and do a few SELECT statements. I'm looking for some sample code or a tutorial with "real world" examples. Actually, anything that will help me do this in the few hours I have available to change my code.
Thanks to anybody who can help.
Damian Del Campo
|
|
|
|
|
Greetings,
I created an activex control, and now I was wondering how I can have the control get downloaded from a web server if it doesn't exist on a client.
For example some ActiveX controls are downloaded for internet pages when you surf on them. Is there a way to do this?
Thanks in advance
|
|
|
|
|
It seems that after I made the post, I figured out the solution to my problem.
Basically all you have to do is add CODEBASE to your object tag in the HTML file that the Activex control is being used in.
ie: <object="clsid:...ect................"
codebase="http://Myserver/fileblah.dll">
This enables the activex control to be downloaded if it doesn't exist on the machine from the web server page location that is specified in the codebase parameter.
|
|
|
|
|
Hi I am interested in finding out how to build COM objects in Visual Studio.net. I hae done some COM objects before using VB6, but I was told that you now do not have to register dlls or something in 2000 with .net
I heard that at a class on Applications Center Server. They said COM objects are registered in an XML name space or something. I was wondering if anyone had any articles or info on building COM objects in VS.net
Any help would be appreciated
|
|
|
|
|
I've been trying to rotate a bitmap with the DDBLTFX structure. I cleared the structure and set dwRotateAngle, but when I added the DDBLT_ROTATIONANGLE flag the screen went blank.
No errors come to mind.
I also tried setting the DDFXCAPS_BLTROTATION flag in the DDCAPS structure - no luck.
Anyone got an idea? maybe some source code so I could see if I missed anything?
Isaac Sasson,
Lean, mean posting machine!
Sonork ID 100.13704
|
|
|
|
|
Hi !
I'm making an ATL object with VC++. In the interface (.IDL), I added manually a 'typedef enum'.
I also added a class to my ATL project, and I would like to use in this class the 'typedef enum' that I declared in my interface. But I have no idea what file I have to include.
Anyone knows how to use interface-defined type in other classes ?
Thanks for your help !
Jerome
|
|
|
|
|
1. You can use typelib of that COM object using "#import"
2. You can use stub/proxy files generated by midl compiler when you build that object, those file names have pattern (based on "my_com_lib.idl"):
"my_com_lib.h", "my_com_lib_i.c", "my_com_lib_p.c"
soptest
|
|
|
|
|
Thank you for your help. I'm now able to reuse these types defined in my interface in a C++ Class.
I'm now trying to use my COM object in a Visual Basic application, but I cannot declare a variable of a type defined in my interface.
For example, in my IDL, I have :
typedef struct { long val1; long val2; } Try1;
and in VB, I'd like to do something like :
Private myVar As Try1
But Try1 is not recognized.
Do you know how I could do that ?
Thanks !
Jerome
|
|
|
|
|
must include structure declaration in "library" namespace.
Example :
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(0A4ACE5D-612E-11D6-A110-00B0D0C3D9BD),
dual,
helpstring("ITD Interface"),
pointer_default(unique)
]
interface ITD : IDispatch
{
};
[
uuid(0A4ACE51-612E-11D6-A110-00B0D0C3D9BD),
version(1.0),
helpstring("TypeD 1.0 Type Library")
]
library TYPEDLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
/************* My structure for VB *******************/
typedef [uuid(0345C658-6444-11D6-A270-0469D0C3D9BD), helpstring("My struct")]
struct
{
long lVal1;
long lVal2;
} MyInternalStruct;
/************* My structure for VB *******************/
[
uuid(0A4ACE5E-612E-11D6-A110-00B0D0C3D9BD),
helpstring("TD Class")
]
coclass TD
{
[default] interface ITD;
};
};
*******************************************************
This is VB code:
Dim t As TYPEDLib.MyInternalStruct
soptest
|
|
|
|
|
Hi,
I've written a small code (the one given in
MSDN) for capturing video from a camera...
The problem is that i can capture it well..
but when i press the stop button.. the
Camera is not switched off..
Can anybody tell me why???
I am using DirectX (DirectShow)
Please help
Sameer
|
|
|
|
|
I want to overwrite the OnDraw of my ATL composite control, to prevent flickering when redrawing. I thought I could just overwrite the CComCompositeControl::OnDraw, but it seems this method is never called, instead the OnPaint of CAxHostWindow is called, which does not call the OnDraw as the OnPaint of the CCompositeControl does.
Anyone got an idea how to do this ???
|
|
|
|
|
I have a DLL which talks to an EXE server via connection points. If the DLL is killed it doesn't release it's connection with the server so the server stays running.
The EXE has an array of IDispatch pointers, one for each connection. How can I test to see if the IDispatch pointer is still valid? Should I just make a bogus call to Invoke?
This is an ATL project.
Todd Smith
|
|
|
|
|
Yes, make a call, and check HRESULT.
soptest
|
|
|
|