|
OK... I've found that DLL there...
but it seems that I can't delete/move/rename it...
I've used the dependency walker and it tells me that the MFC42.DLL the MSVCRT.DLL and the MSVCP60.DLL are needed...
Even if I delete it it seems obvious that it will fail then because of the fact that the dll's are needed.
As the DLL's seems to be needed then can I deploy them with my CD-ROM?
Thank you again...
|
|
|
|
|
Somewhere in your VC6 installation is a "redist.txt" file. It is a list of files you can distribute.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Now I was taking a look at it...
I've been searching at the MSDN too and there I've found the path of that file...
Thank you too.
|
|
|
|
|
No, you cannot legally distribute debug libraries (IIRC not even debug builds)
Changing requirements are the crux of software development - you start with a sex drugs and rock'n'roll design, and end up with an aids crack and techno implementation [sighist] [Agile Programming] [doxygen]
|
|
|
|
|
wow!
thank you! who would imagine that a debug build could not be delivered...
thank you again...
|
|
|
|
|
Unless you have some special need, PJ Naughter provides a free program called ShelExec.exe that we have used without any problems to auto-open an html page on a CD-ROM.
http://www.naughter.com/shelexec.html[^]
Dave
"You can say that again." -- Dept. of Redundancy Dept.
|
|
|
|
|
OK thank you if I cannot solve my problem in any other way I'll take that program, having seen something from PJ Naughter I'm almost sure that it will work right...
But the fact that some DLL's are needed for my projects and that I must know if I can redistribute them is still important for me...
Thank you for your interest.
|
|
|
|
|
Hey everyone...
I have a messagebox replacement that I am writing which has one of those details buttons that you can press to expand the dialog and get extended information.
Anyhow, I would like to use the warning icon that Windows uses for its message boxes. I grabbed the icon that comes with Visual Studio and converted it to a bitmap. Then I created a picture control and assigned it as a bitmap and pointed it to the resource with the warning image that I created.
However, this bitmap has a white background and I would like it to be transparent like Windows does. Can anyone help me to get this bitmap to paint transparently?
One more thing...this is written entirely in SDK C code...no MFC was used.
Regards,
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
There are pretty good image controls out there, but all of them (that I know of) are MFC-based. Why can't you just store the resource as an icon and use it the same way you previously used the bitmap (save the obvious replacements of SetBitmap for SetIcon , etc.)?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
OK. I switched over to an icon, but it still shows up with the white background. How do I go about making the icon background match that of the dialog (i.e. become quasi-transparent)?
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
Go to the resources view and edit the icon, there's a "color" for transparency.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I've got a map:
std::map <cstring, std::set="" <cstring)=""> myMap;
I need to add the map keys as submenu items, and the set of values as the flyout menu item from each submenu item: SO if key cat: has two values in its associated set, CatA and CatB, then I want to click on the top level menu, which drops down a submenu called CAt which then has two subsubmenu items CAtA and catB.
I'm looking athe MSDN but I dont see any looping type routine: They basically seem to know what ID they are going to give the menu item they will create and I dont.....
Appreciate your help,
ns
|
|
|
|
|
I think there's a misunderstanding here: you need to know the IDs of the items, as these are the commands issued when the items are selected. What purpose is there in a menu with no command information at all?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
so if I do
#define ID_MENU_RED 5001
menuPopUp.APpendMenu(MF_STRING, ID_MENU_RED, "REd");
I can see what happens. But I have an unknown number of items in my map: (lets just talk about he keys fisrt).
SO how do I automate this procedure of creating ID_MENU_RED type things when I have myMap.size() number of entries? THe # defines seem to be at global scope, but I dont know the size at that point.....
Appreciate your help,
ns
|
|
|
|
|
Ok: the following should work for 98 or later and 2000 or later. Change the style of your menu to MNS_NOTIFYBYPOS (see ::SetMenuInfo ), this will make the menu send WM_MENUCOMMAND messages instead of WM_COMMAND . WM_MENUCOMMAND provides the index of the item selected, so you don't need different command IDs any more (use whatever unique ID you want): just handle WM_MENUCOMMAND and enjoy.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thats very useful info. I should say that I am making this "menu" merely for the user to see his choices. The menu does not respond when clicked. SO when I add my menu items shall I leave the nID position as NULL?
CString myMApKeyString = "somekey";
menuPopup. APpendMenu(MF_STRING, NULL, myMapKeyString)
Thanks...
Appreciate your help,
ns
ANother thing I need to know. AFter I make this popup menu, I want it to show up when the user presses a toplevel menu. THeres no command handler that one can associate witha top level menu right? SO where shal I do the trackpopupmenu? SHould I try to do get clientrect on the menu item? How in the world do you get the clientrect of a menuItem rectangle?
|
|
|
|
|
If the app is not going to process any command, then you need nothing of the previous answer, just use 0 as nIDNewItem and you should be done.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I'm trying that. Thanks.
I think I might be on a wrong approach. MAybe I dont want to create a popup menu here? CAn I append directly to a toplevel menu? That one I have an ID for, but I didnt find an example that does that.....all these menu functions I've found are doing stuff with a CMEnu popUpMenu object.
I am writing a commands handler for my top level menu because when the user clicks it I want the popupmenu submenu to drop down....but how shhall I get the x and y for TrackPopupMenu? I want to show the popup directly under my toplevel menu item....
Probably theres another way right?
Same question: when I create my flyout menu, also a popup menu, how will i tell it to show up exactly lined up with the submenu item (like a flyout...)
Appreciate your help,
ns
|
|
|
|
|
I've always handled WM_STUFF Through the classwizard. I'm not sure about what you mean when you say "use whatever unique ID you want" , and dont know how to write the code to handle WM_MENUCOMMAND.
Is it like in the .h file you put an afx_void OnMenuCommand();<br />
<br />
ANd in the cpp messagemaps you put <br />
<br />
ON_COMMAND(WHAT_ID_HERE, OnMenuCommand);
Would you please amplify on this? I think this the way I'm going to have to put in my flyout subsubmenus, once I get this information. Thank you greatly!
Appreciate your help,
ns
|
|
|
|
|
If your submenus are for display purposes only (i.e. the app won't do anything when they're selected), then there's no need to write any command handler. Apart from this, check your docs for ON_COMMAND , they should be self-explanatory.
(I'm away from my VS now, can't help more.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Here is the problem. I need to use a dll compiled with VC6. This dll exposes a function which arguments are of type std::wstring. My main app needs to be compiled with VC.NET. However, std::wstring in VC.NET is not the same as std::wstring in VC6, and I have a nice little crash every time I try to call this function. I thought that I could solve this problem by linking to VC6 libraries from VC.NET.
The question is: How to set VC.NET project to link to msvcp60d.dll and msvcrt.dll instead of msvcp70d.dll and msvcr70d.dll?
|
|
|
|
|
Set the UseOfMfc project property to None, and add the appropriate libraries in the link tab.
If you are not using the VC7 libraries (stl7, mfc7, atl7, ...), then I don't know why you use VC7 at all. If you own the source code of this dll, then it's way much better to upgrade this dll to be full compliant with VC7.
|
|
|
|
|
I tried it already, and it doesn't work.
.S.Rod. wrote:
If you are not using the VC7 libraries (stl7, mfc7, atl7, ...), then I don't know why you use VC7 at all. If you own the source code of this dll, then it's way much better to upgrade this dll to be full compliant with VC7
Trust me: I need to use VC.NET with a VC6 compiled library
|
|
|
|
|
Nemanja Trifunovic wrote:
Trust me
No.
Nemanja Trifunovic wrote:
I need to use VC.NET with a VC6 compiled library
Write a bootstrap then. That's a dll compiled with VC6, which exposes a simple set of functions, with no stl signature at all. Doing so, the underlying dll is not facing stl7 in VC7.
|
|
|
|
|
.S.Rod. wrote:
Nemanja Trifunovic wrote:
Trust me
No.
LOL.
.S.Rod. wrote:
Write a bootstrap then
That's a good idea, thanks. If I don't find out how to use VC6 libs, I might do just that.
|
|
|
|