You can find the word by using the multimap container's find method. As for the index to the word, what do you mean by that? There are no indexes in maps, per-say; however, you can get an iterator that references the matched pair (Which I gather is a CString-to-int), but not an integer (unless you mean the int that is paired with the CString in which case you would just dereference the iterator returned by find and access the second data members).
I want to create a HTML control using ATL Wizard. I tried creating it using the ATL HTML Control. But when i tried to test it (both in ActiveX test container and in browser) i am gettting the error 'Object doesn't support this property or method'. (when it tries to call 'OnClick' , i.e when i click the button called 'Red', 'Green', 'Blue') I tried in Win98 and WinXp. I use VC6.
Can any one help with what i can i do to get this working?
I built a COM component with ATL and have it tested with a simple VB program. It works fine so I concluded the component is OK. However when I called in a ASP page, it complaint the "Library not registered". I am very confusing because the VB can see the type library so it must be registered. Why the ASP page not seeing it?
I read MSDN article ID: Q221792
PRB: "Library Not Registered" Error When Calling Method in ATL Server and follow the instruction, it doesn't seem help. Can anyone help me out?
I have my WTL app's menu inside a CommandBar control. Now I want to process some notifications it sends but it doesn't seem to send them to the parent. How can i make it send these notifications to the parent or is there a better way for daeling with this???
I’m handling events of ADO in an ATL out-of-process server, and for some reasons when I use _ATL_FREE_THREADED declaration event ConnectComplete is not called when I establish an asynchronous connection, thou it is called when I use a synchronous connection. Changing the memory model to _ATL_APARTMENT_THREADED solves the problem, but what is the reason of such strange behaviour anyway, and what’s the
Sorry for posting code here, but someone asked me about a week ago for some code, but I can't find the request now (the CP comment search doesn't search for a whole phrase, so I can't narrow down the results enough to find the one I want).
Anyhoo, to add support for radio-checked menu items only takes a few lines, however if you don't want to modify atlframe.h, you need to make a CUpdateUI2 class and copy over 3 functions from CUpdateUI. Here's the entire class, my changes are marked with //*** BEGIN and //*** END
How can I connect a client application running behind a proxy to a web server?
The connection cannot be a direct TCP to the server as the proxy is in between. I can have a Http connection , the way a browser works. But how do I achieve it. Any suggestions??
What I have read about Http CONNECT is that it is used to establish a secure connection to the server.Does that mean that I can connect only to port 443 of the Listner i.e. server?
Can I connect to the port 80 of the server i.e specify the ip address:80 in the CONNECT method
CONNECT is used for creating a tunnel through the proxy - useful mostly for secure connections. It simply tells the proxy that it have to make connection to the server & port you specified - the syntaxe addr:port should be valid then. I will try to clarify the intent of the command CONNECT:
Normally the proxy 'understands' the flow of the http connection, and time to time he even changes it - e.g. instead of requesting the page from the server it sends the page from the local cache etc.
But when using the CONNECT command, this is not true and the connection is then transparent - what you send to the server is what the server receive and vice versa.
This is the reason, why it is used when secured channel is needed. Because if the proxy will try to change the encrypted data (e.g. take the encrypted page from the cache) it will make an error during the decryption on the client (this is a must, else the secure channel will not be secure ).
So, yes, as far as I know, you can connect to the port 80 of the server through the CONNECT, but then the pages will not be cached (which can be as well advantage as disadvantage ).
Only take a care, that there are some proxies, that doesn't support the CONNECT command, or doesn't support it correctly. But I think currently most of them do.
I have a SDI app and I want to open a new SDI UI with a new toolbar, a new statebar and a new view by running a command from the menu (or by any other methods).How can i make this and how can i send messages and value of variables between the two windows.Thanks.
Assuming you already have a CFrameWindowImpl-derived class written, create a new instance of it, and call CreateEx() just like you do for the app's main window.
One thing you have to do in the new class is not let WM_DESTROY get passed to CFrameWindowImpl, because CFrameWindowImpl::OnDestroy() calls PostQuitMessage() which will make the app close.
Yeah, payin' the bills with my mad programming skillz.
Defraggin' my hard drive for thrills.
I need to creat an ATL dll to add like a toolbar in the internet explorer.
I have a site like a yahoo for search, but only for internal domains. then I need to create the dll to when the user types one address in the address toolbar of internet explorer, the explorer find in my server, and my server if not found domain redirect to internet. but need to search in my server first, how i can do this. ?