|
Is there a way to access a non-registered VB ActiveX DLL server with C++ (using DllGetClassObject)?
|
|
|
|
|
Hi,
Get the IClassFactory inerface using DllGetClassObject function. Then you can create objects even if they are not registered...
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
Dear COM gurus,
Here is my situation ... I have a VC++ server and a VB client that must communicate over
the internet.
My client and server can talk successfully on the same computer. I've tested it on my local
computer and on the remote system that will eventually host the server. They also talk
successfully on my local network with the client and server apps on different machines.
However, when I try to communicate with the server on a remote system, I get the following
error (from the VB client):
Run-time error '462':
The remote server machine does not exist or is unavailable.
I believe the error must be somewhere in the DCOM configuration or a firewall problem. Is
there a recipe/checklist for configuring DCOM over the internet ? What firewall ports need
to be open ?
In dcomcnfg, I've tried setting the Connection-oriented TCP/IP endpoints to use port 80
on both client and server machines, but that didn't work. I chose port 80 because I know
that traffic can flow through the firewall on that port.
Other dcomcnfg settings are as follows:
Client:
auth level = default
location: run on this computer, run where data is located
security access: allow everyone, interactive, (my user id), network, system
security launch: allow everyone, interactive, (my user id), network, system, users
security config: administrators = full, creator owner = full, everyone = special,
power users = special, system = full, users = read
identity: interactive user
endpoints: use static endpoint = 80 w/ connection-oriented TCP/IP
Server:
auth level = default
location: run on this computer
security access: allow everyone, interactive, (my user id), network, system, administrators
security launch: allow everyone, interactive, (my user id), network, system, administrators
security config: administrators = full, creator owner = full, everyone = read,
interactive = special, system = full
identity: (my user id)
endpoints: use static endpoint = 80 w/ connection-oriented TCP/IP
I hope someone out there can tell me what I'm doing wrong.
Thanks,
Keith Gemeinhart
|
|
|
|
|
yes i had the same problem and fixed today
first of all if ur using MTS and callback u should install the Com Internet Services (CIS) on the client machine and configure it by ciscnfg.exe or somthing like that in \windows\system
and i have also downloaded and installed DCOM 1.3 from microsoft's web site on my win 9x client and then
by running dcomcnfg.exe, i have enabled Remote access and then i have succeded the connection on the internet also
for the source try : "COM Internet Services" keyword on MSDN
the article is in Backgrounders Subset
|
|
|
|
|
Does anybody know site with a information about MMC Snap In
programming ?
|
|
|
|
|
1. In MSDN, the latest version possible.
2. In msdn, try to search "ATL AND MMC" - you will find something like "writing an mmc snap in using atl 3.0" - a very good text
3. In internet, a very very very limited amount of info, may be 2 pages
ps: I was writing a snap in durin 4 monthes and i did it, i did it,... cool.
feel free to contact me by email reznitskiy@softlab.ru
|
|
|
|
|
Hi there.
Does anybody know how to create, using ATL, a control like VB does, so it behave as a container at design time?
Thanks
Fabian
|
|
|
|
|
How is it possible to intercept COM method calls and redirect them to my customized method calls.
mI have read the article on ApiHijack. And that allows me to intercept the Object Creation, namely the DirectDrawCreateEx call.
Ie, I have a game that uses directx. I can intercept the DirectDrawCreateEx function that is exported from the dll. HOwever, I am wanting to intercept the lpDD->Flip method(among others) so that I can
draw to the screen before the buffers get flipped.
Any Help?
Wyv
|
|
|
|
|
Hello,
I've downloaded and used the BandObjs MSDN sample which shows how to create an Explorer Bar.
However, what the sample fails to show is how to communicate between the Explorer Bar and Internet Explorer itself.
What I need to know how to do is the following:
1. When the user enters a new address or clicks on a Favorite, I need my Explorer Bar to know what the new address is.
2. I would like to also be able to *Set* the address of the Browser (IOW "goto" a new website in the same browser window that my Explorer Bar resides).
Thanks much for any articles or help.
- Robert Thompson
|
|
|
|
|
Hi Everybody!
I have developed an activeX control that instantiates a "in proc server" which accesses the sound card using DirectX. Neither the control nor the data component (collected from the sound card) write to any files in the user HD.
I intend to deploy this control on the internet, so my question is:
Can i mark this control and the component as safe for scripting/Initialization? On which conditions can i mark a control with these categories?
Thanks in advance,
Luís Teixeira
|
|
|
|
|
Hi,
A safe control must not perform disk IO or access the memory or registers of a machine directly. As I know DirectX is using direct memory access. But it's up to you to make a final decision...
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
So you're saying that you wouldn't mark the control as safe if it is using DirectX. But this control needs to access the sound card for data. I guess that using the multimedia functions of the WIN32 API has the same problem than DirectX, which leaves me no chance to make it a safe control.
Thanks so much, Alex!
Luís Teixeira
|
|
|
|
|
Hello All,
I have being trying to use the PDF Reader ActiveX control for IE in my own application. It is easy with VB, but with
MFC I get an error message "catastrophic failure" after
the splash screen is displayed signifying the start of the server, and the viewer does not show up. However, if I try
to resize the view window the same error message is displayed.
Any help? please.
Best Regards,
Paul.
|
|
|
|
|
Hi,
I am looking for ways to simplify obtaining data across multiple operating systems. The data could be from anywhere from databases to shared memory to flat files.
My first thoughts were to use TCP/IP and create a custom messaging protocol but I have read a little about CORBA and wondered whether anyone had used and whether it was useful?
DCOM obviously cannot be used as it is Microsoft specific unless you use a COM/CORBA bridge.
Cheers
James
|
|
|
|
|
Hi,
I think custom TCP/IP protocol is the best solution! You will never achieve the same performance using COBRA or DCOM. And it's not very hard to do...
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
I would recommend OmniORB (www.omni.org) It is free.
But as another replied you will never achieve the same performance as you can with raw TCP/IP. That said, we are running 5000 requests a second on a PIII/500 using omniORB.
Christian Skovdal Andersen
|
|
|
|
|
Does anyone know of anything that could replace ctime in alt project?
please let me know
thanks
|
|
|
|
|
Hello!!!
How can i load a ATL/COM dll in other ATL/COM dll at runtime?????
|
|
|
|
|
Hi,
from IE explorer ToolBand(IN PROC SERVER) we are creating OUT PROC server,
the server is a singelton,
sometimes the toolband cause an access violation,so we need to restart IE
but after we restart it we get a new instance of the OUT PROC server
this is only happan on WIN 95/98
thanks
tomer
|
|
|
|
|
I have done a control with some stock prop pages. It works fine until I added a font stock prop page. I get a warning from midl saying font type doesn't follow automation. In the test container it works fine to change the font and in design mode in VC too. But when I try to run a client with the control it says "Invoked failed on DISPID xyz..."
What additional coding from the wizard-generated code has to be done to get the font stock prop page to work?
Cheers!
|
|
|
|
|
Hi,
I am looking for some info,guidelines
on how to write Automatic update of COM components
over the internet,
our system built from several COM components,some In Proc
some Out Proc,and i want send update to the user
any one ever implemented such a system...?
thanks
tomer
|
|
|
|
|
Where is the best place to go read how to use COM+ without the acronym MTS being mentioned?
Kind regards,
Al.
VBer who wants to go back to, but will have to learn again, C++. I'll carry on using VB for the front-end; so when I get proficient at C++/STL can I jump straight to ATL and avoid the MFC?
|
|
|
|
|
Hi All:
How I can create such a ActiveX control that can catch all the messages of the container.
For instance, When the frame (contain my control) resizes, My control can be informed and do some things.
ThinkingCode
|
|
|
|
|
Have a look at this and can anyone help me ?
classA.h
class A
{
class B;
method_A;
method_AA;
};
***********************
classB.h
class B
{
Method_B;
Method_BB;
};
How (if one can that is) do I access a method in class A say method_A from the Method_B in class B ?
|
|
|
|
|
Make Class B the friend of class A
|
|
|
|