|
Calling AtlAxCreateDialog directly is unusual: normally it’s called for you in the implementation of the CAxDialogImpl::Create method.
Steve
|
|
|
|
|
I have created a toolbar for IE and added a an edit control to it, but I couldn't add a menu control beside to the edit control. Can anybody help me, please. Thanks a lot.
love U much...
|
|
|
|
|
first, create a menu in your resource file.
second, put a button to the toolbar that will open the menu up with a style BTNS_WHOLEDROPDOWN
third, get a command handler handle the button's command ( WM_COMMAND message )
and lastly, write a method that creates the menu and tracks it. something like:
HMENU hM = ::LoadMenu(ATL::_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(ID_MENU);
HMENU hMPopUp = ::GetSubMenu(hM,0);
::TrackPopupMenu(hMPopUp,TPM_TOPALIGN,pointX,pointY,0,m_hWnd,NULL);
that's the way i did it, i think you can handle the rest with the holy MSDN
|
|
|
|
|
There's this file that I wanna open from my web application, but I want it to open by Google Earth, the file is not located on the server it's on the user's computer but the application knows its name and path: "C:\\Places.kml"
How can I do that? I'm using ASP.NET web application in C#
|
|
|
|
|
Hello All,
I am opening a word document and save it usually and now i am changing some text in this file then
i have to save this file programmatically so what i have to for that.
If any one have idea about that please share with me.
Thanks & Regards
Bankey
|
|
|
|
|
What does this have to do with ATL/WTL? You are in the wrong forum...
|
|
|
|
|
Can you more explain and with which language?
|
|
|
|
|
Hi all!
I want to know how to pass an array of long to the method of COM
and how to return the array of long from that method.
Viral Joshi.
|
|
|
|
|
|
Hello,
Read the article on MSDN: “How to Pass Arrays between Visual Basic and C”. http://support.microsoft.com/kb/207931
Some more links:
1. "Passing an array from VC++ DLL to VB", by Amol Kakhandki on Code project. http://www.codeproject.com/dll/ctovbarray_passing.asp
2. http://www.manbu.net/Lib/En/Class5/Sub7/1/23.asp
Regards
|
|
|
|
|
This[^] might help.
Steve
|
|
|
|
|
Hi,
I'm kind of new to ATL programming, but I have been working with it quite extensively over the past few months. I've been writing code for a toolbar for IE and unfortunately I got stuck on one part and have no idea how to solve it. Google and MSDN are not being very helpful, but I think that the main reason I'm having trouble is because I do not understand the concepts fully.
Anyway, here is the problem: I want to be able to detect the WM_INPUTLANGCHANGE message within my toolbar. I tried adding it to the MESSAGE_HANDLER to one of the windows, but it seems to be ineffective.
Any information you can give me to point me in the right direction would be great!
You can assume that the code I have is the same as in this tutorial:
http://www.codeproject.com/atl/ietoolbartutorial.asp
Thank you in advance,
Andrej
|
|
|
|
|
What are the conditions in which a CAB fiel refuses to overwrite a previous downloaded instance in IE.
Is it the time-stamp of the CAB file;or do CAB files need to mention a versioning too.
We are downloading a CAB file from a jsp with a OBJECT tag.
After we modify the CAB file and repackage it ,we find that CAB file does not download the new instance again,as the old instance is already downloaded into the client box.
We are creatign the CAB file with visual studio.
If versionign is the answer to overwriting downloaded CAB files from IE - how do we version CAB files in 'VS Deployment type of projects'
|
|
|
|
|
You need to increase the version attribute in the web page. The modified date of the CAB itself is irrelevant. Think about it, the original CAB is discarded after it's installed, and even if it were kept around, IE would have to download the entire CAB file every time you visited the page just to check the date.
|
|
|
|
|
I am working in the compact framework.
I have an ATL object that needs to draw on a bitmap. I need to pass the bitmap to a C# program and display it. We have tried creating the bitmap in C# with GDI methods then used the APIs for CompatibleDCs, selectobject, getHdc, etc and passed the DC to the ATL object. On returning it from the ATL object I get ExceptionHandling errors relating to memory when I try to get a bitmap I can use in managed code. We have been able to pass the DeviceContext and draw directly on it but I want to retrieve a bitmap that I can cache as a member variable in my class.
Has anyone successfully passed bitmaps back and forth between managed and unmanaged code?
|
|
|
|
|
arcticbrew wrote: Has anyone successfully passed bitmaps back and forth between managed and unmanaged code?
Yes
led mike
|
|
|
|
|
Hi Mike thanks for responding. Would you describe the method you used.
I tried creating a bitmap from the device context of the screen, passing the Device Context and hBitmmap to unmanaged code, drawing on the bitmap in unmanaged code and passing back to managed code. But when I try to draw in managed code using GDI I get a memory exception.
|
|
|
|
|
I passed only HBITMAP
led mike
|
|
|
|
|
how are you drawing to the bitmap in unmanaged code? Don't you need a Device Context?
|
|
|
|
|
hi c++ guru.
i need your help... i'm new in hardcore c++ and currently working on a c++ container namely the priority_queue. i don't have problem using the priority_queue itself but i have this additional requirement to also consider the age of the items in the queue.
my current implementation only deals with the priority of the items in the queue by overloading the "<" operator. i don't know yet what to do when considering the age of the items in the priority_queue.
any help is greatly appreciated...
PS: sample code would be a great help...
charian
|
|
|
|
|
|
You can make another priority_queue that stores the priority as the time you added the item to the priority_queue . Store a pointer to the same item in both queues? Of course, this is kind of an ugly way of doing it.
I recently made a priority_queue that stores pointers to Event objects. Each Event stores the time the event should run, as well as other important information it needs when it runs. I overloaded operator() and operator< to handle comparing the Event->_nTime to another Event->_nTime .
Basically I pop the next Event to run (smallest time) and run it when it's time has come.
Unfortunately, i don't think that approach will help you. Sounds to me like you want to extend the priority_queue itself to track age of items as well as priorities, which is pretty difficult. Easiest method might be to use two of them like I mentioned above.
Maybe some more details on what your program does?
|
|
|
|
|
Hi,
If you use the VS wizard to create your own ATL-based COM object, the post-build step will register the object. The problem is, that registration step fails if you're not administrator on your machine (since it requires full access to the registry).
My normal day-to-day account is non-admin for security reasons. Has anyone found a good solution to this? I don't mind registering the object on occasion (with the admin account), but 99% of the time I'm changing functionality and not changing anything about the registration itself. Maybe there's a way to skip the registration process? I couldn't see a way since VS seems to do it automatically rather than with an explicit build step.
Thanks for any ideas,
DB
|
|
|
|
|
dburns wrote: Has anyone found a good solution to this?
The activity of developing software typically requires administrator privileges, get them.
led mike
|
|
|
|
|
led mike wrote: The activity of developing software typically requires administrator privileges
I'm not sure I'd agree with that statement. With the exception of registering COM objects, I see no reason why admin privileges are needed for software developement. Basically developing non-COM code requires the ability to edit/create files.
BTW I'm talking about my own machine here, so I can easily give my account admin privileges -- but I'm trying to keep my normal account non-admin so I minimize damage from either myself or worms etc.
Anyway, just looking for any tips in case someone has gone this route before.
|
|
|
|