|
Well I wanted to send 2 pictures, but I don't know how can I attach them. It won't be so easy to describe myself, but I'll try...
I implemented a NameSpace handling code in VC++6.0, without MFC. It works, but it has some problems.
1. I can show the folder's icons. These are OK, and looks like as "original" windows icons. But I use an ExtractIcon application. This app. changes many of system icons. (desktop,my computer, normal directories, shared directories, etc.) How can I ask/get/handle these icons (too)?
2. I can enumerate subfolders. But when I show them the order of subfolders are not the same as in Explorer. How can I sort them?
3. here's a part of my code: (instead of two pics)
How can I solve the #1 and #2 questions?
// lpsf: interface pointer
// lpi: absolute pid (merged myself)
// hIconSmall: the icon what I want to get
bool ANameSpace::GetDisplayIconOf(IShellFolder *lpsf, LPITEMIDLIST lpi, HICON* hIconSmall)
{
bool _back = true;
HRESULT hres;
IExtractIcon *pxi;
// get IID_IExtractIcon interface
hres = lpsf->GetUIObjectOf(NULL, 1, (LPCITEMIDLIST*)&lpi, IID_IExtractIcon, NULL, (LPVOID *)&pxi);
if (SUCCEEDED(hres))
{
char szIconFile[MAX_PATH];
int iIndex;
UINT wFlags = 0;
hres = pxi->GetIconLocation(GIL_FORSHELL, szIconFile, sizeof(szIconFile), &iIndex, &wFlags);
if (SUCCEEDED(hres))
{
// I need only the small icon
HICON hiconLarge = NULL;
int cxIcon = GetSystemMetrics(SM_CXICON);
int cxSmIcon = GetSystemMetrics(SM_CXSMICON);
// try getting it from the Extract member fuction
hres = pxi->Extract(szIconFile, iIndex, &hiconLarge, hIconSmall,
MAKELONG(cxIcon, cxSmIcon));
}else
_back = false;
pxi->Release();
pMalloc->Free(pxi);
} else
_back = false;
return _back;
}
Thanks in advance,
---
AkelA
|
|
|
|
|
Hello,
I've created a testdll in Visual Basic to see if this dll is multi-use.
(multi-use for me meaning : when accessed multiple times from different machines
via asp, the processing is done at the same time)
This was ok
Request 1 at eg 10:10:00 and request 2 from another machine at 10:10:01 processed simultaniously.
I have another dll (created in Uniface) but this dll places the request in a que.
Meaning : request2 starts processing after request1 was ended.
How can I see in COM viewer what the "mode" of a COM-object is. (multi-use or not)
How can this be made multi-use ?
Thanks in advance,
Tom
|
|
|
|
|
HELLO ,
I M DOING PROJECT IN COM
MY PROJECT IS TO BUILD A SHELL COMPANAT WHICH CAN BE ADDRES TO WINDOWS EXPLORER AS A SHELL LIKE CONTROL PANLE SHELL OR DRIVE LETTER SHELL AND WHEN WE CLICK ON THAT SHELL THEN IT SHOULD WORK AS A FTP CLIENT WHICH WILL UPLOAD OR DOWNLOAD FROM FTP SERVER AND IT SHOULD ADD AS MANY SHELL AS USER WANT TO ADD.
WELL ANYBODY CAN HELP ME AND GUIDE ME ABOUT THIS THEN IT WILL MAKE A GREAT HELP FOR ME
ANYBODY HAVE ANYIDIA ABOUT THIS PLEASE SEND ME A MESSAGE OR MAIL MAIL ME AT love22k@hotmail.com
THANK U VERY MUCH FOR READING THIS MESSAGE
|
|
|
|
|
A simple bath in soapy water for your keyboard will help you to un-stick the caps-lock or shift key that is stuck.
It will also make us much more likely to be willing to help you, since screaming into our eyes hurts.
For better performance, be in the bath tub with the keyboard, and leave the keyboard plugged in.
|
|
|
|
|
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.
|
|
|
|
|