|
Hi,
I hava creared a wtl app with a ok button. I would like to display a tooltip when the mouse is over the ok.
In OnInitDialog(), I have added the following code but the tooltips does not display. What should I do. thanks
RECT rc = { 130, 7, 50, 14};
m_pToolTip = new CToolTipCtrl;
if(!m_pToolTip->Create(m_hWnd, &rc))
{
return TRUE;
}
TOOLINFO ti;
ZeroMemory(&ti, sizeof(ti));
ti.cbSize = sizeof(ti);
ti.uFlags = 0;
ti.hwnd = m_hWnd;
ti.lpszText = TEXT("Red Rectangle");
ti.rect = rc;
m_pToolTip->AddTool(&ti)
m_pToolTip->Activate(true);
|
|
|
|
|
How can I make an active document server talk to the container? I tried using the m_pActiveWnd pointer in the server app but it does not work. What am I doing wrong?
|
|
|
|
|
I have a program that uses some com components. I want my program to automatically registrate these
components by calling regsvr32. The problem is that some of the users of my program will not be local
administrators and I suppose that regsvr32 will fail to write into the registry if a "non-admin" user tries
to registrate a component.
Can someone give me an idea how to solve this?? I suppose (hope) there is a way to registrate a component
even if the user doesn´t have access rights to the registry.
I apologize for my bad english.
/Gunnar
|
|
|
|
|
Hello.
I'm doing a C++ project in school, where I'm suppose to program some
kind of Hyper Terminal for Dos... The problem is I have no idea about
communication in C++ (I'm not even sure i'm writing to the right forum...),
So I can use all the information you can give me.
Thanks in advance, Doron.
|
|
|
|
|
Hi Doron,
C++ language does not have any communication functions... If you are programming in Windows environment, then you can use the communication functions of WIN32. You can find their desciption in MSDN. Here is a couple functions that you'll definitely need: BuildCommDCB, EscapeCommFunction, WaitCommEvent, ...
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
If you need a quick and dirty communications application you can use the MSCOMM control. Then you really will be using COM.
p.s. I think you should go with the WIN32 communications API as you are in school and should be learning from your assignment. You'll have plenty of time for Q&D apps when you go to work.
|
|
|
|
|
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
|
|
|
|