|
Yes it is possible.
One way to do it is to have the menu items and help messages in different dlls, then load/unload the language dll and refreshing your elements.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I don't mean to double post with this one question, sorry mark but the last thing you told me wasn't entirely correct, it told me of some files that i am missing, said something about \Visual Studios 9.0\Tools\Bin
When i checked their, i had no \Bin folder, and no tool called depends.exe I've read over the MSDN article countless times over the last couple days but i cannot seem to figure out where the missing files are, or any other way around deploying the C++ program.
I have discovered that the program is using MFC, but that is as far as i can go threw this. After that it says to look on what it depends on threw the depends.exe , so i can't go further then this without asking for some extra help.
Much appreciated and sorry about the double posting on the same topic, the other one was on page 12 rotting without being seen.
Mark Salsbery had given me this link on Deployment[^]. This is what i have been reading and this is the source of what i wrote down above.
-Nick
|
|
|
|
|
|
This just makes no sense to me, i have continued past the part i was stuck on but now i cannot make an installer,
"From the File menu, click New Project, open the Other Project Types node and select Setup and Deployment, and then click Setup Project. Supply a name and click OK."
But i don't have an Other Project Types node. This is confusing as hell, C# was much simpler in being able to send it to another computer, even though i had to send some extra files.
Been trying to deploy this for the last 4 days and this is starting to agitate me. Nothing in the MSDN is making sense to me anymore after i started reading it, and found that i am missing nearly everything they are explaining, also they keep referring to Visual Studio 2005 when i have it set to explain 2008.
Sorry to bother you on this, but it is just so agitating.
|
|
|
|
|
Sure Nick, blame me
What files are you trying to find??
Mark
|
|
|
|
|
No intent on blaming, i assure you. What i was trying to say was, that your help was ended at that point and i need some more.
I found the Depends.exe, but now i can't find what it means by creating a setup.exe that is in the Other Projects node, i don't have that. I got CLR, General, and Win32. Non of which has Other Projects like it says here: Deploy a Setup and Deployment[^]
|
|
|
|
|
C# Beginner Nick wrote: No intent on blaming, i assure you. What i was trying to say was, that your help was ended at that point and i need some more.
I know - the smiley face was meant to denote humor.
C# Beginner Nick wrote: creating a setup.exe that is in the Other Projects node, i don't have that.
You're using VS2008, right? The only reason those project types wouldn't be there is if you're
using the Express version of VS2008.
Mark
|
|
|
|
|
I know =P
Ya it's express, guess i should download the full thing then. Search only coming up as express, is it the Service Pack #3 for the full thing?
|
|
|
|
|
void CPropWnd::OnNavigator()
{
CNavDlg *pDlg = new CNavDlg(m_pCoolSys, this);
pDlg->Create(IDD_NAVIGATOR, this);
pDlg->ShowWindow(SW_NORMAL);
pDlg->UpdateWindow();
}
In and MDI project, each main frame got a CPropWnd as a child, and CProWnd will pop up an navigation dialog as its child windows.
The problem is that when I open more than 1 project, the navigation windows in an inactive main frame, will cover the active main frame. How to make it local?
|
|
|
|
|
Using Visual C++ 6.0 MFC in SDI application
I have a modeless dialog box that I display on the left side of the screen, and my program does some drawing to the right of that dialog box. A friend ran my program on his PC setup. His setup has a dual monitor setup, where he can scroll horizontally from one monitor to the other. When he runs my code, the main window shows up on one monitor screen and the modeless dialog appears on the other monitor screen. He has to drag the modeless dialog box to the screen where we do the drawing. We would like them to appear on the same screen without having to drag the modeless dialog box to the other screen. I don't know if there is something I am doing wrong in the code or whether his dual monitor setup has a problem. The code I use to place the modeless dialog box is:
BOOL CTestDialogBox::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
SetWindowPos(NULL,10,100,0,0,SWP_NOSIZE | SWP_NOZORDER);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
Thanks for any help!
|
|
|
|
|
Hard-coded coordinates in multi-monitor environments is not necessarily a good idea
Maybe some useful info here:
Multiple Display Monitors[^]
|
|
|
|
|
i have a list of names in a combobox.i have to select a name and that will be deleted from a file from which it was already written.at the time of deletion,i have to delete the entire row of information associated with the name.i use a text file.i dont know how to proceed.please help.
|
|
|
|
|
Exactly which part is troubling you?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi
i created MFC application that the function is executed through a console application.
how can i create a setup for the project without showing the console application files ..
help please its very urgent
i have to deliever my project in less than 12 hours
hellllp
|
|
|
|
|
sofia_111 wrote: i created MFC application that the function is executed through a console application.
You mean your MFC application is executing some console application?
sofia_111 wrote: i have to deliever my project in less than 12 hours
Only 30 more minutes remains.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hello!
I have a bit of an odd problem. I'm writing some code that pulls functionality from two different APIs. I also, for what I'm trying to do, I need to inherit from two abstract classes, however I have a bit of a problem... both abstract classes have a method by the same name (but with a different return type), and of coarse, one of them is virtual and I'm trying to overwrite it. The other class does not have this method as virtual, and I am not at all interested in overwriting it. Here's what I'm describing in terms of code...
class BaseA {
int run(int argc, char** argv) {
}
};
class BaseB {
virtual void run() = 0;
};
class MyClass: public BaseA, BaseB {
void ReactorServer::run() {
}
}
The problem is that the comiler complains with the following: Error 1 error C2555: 'MyClass::run': overriding virtual function return type differs and is not covariant from 'BaseA::run' c:\Documents and Settings\patrick\MyClass.h 126 which indicates to me that the compiler is trying to overwrite the method in BaseA and not BaseB. I've tried putting "virtual" in front of my declaration without success. This also bothers me from the perspective that this is a bit of a "smelly" design issue as well, but at the moment I don't think I have a choice because I need these Base Classes!
Any suggestions?
Thank you
Patrick
modified on Friday, July 4, 2008 2:27 PM
|
|
|
|
|
You shouldn't have any problems in doing what you're trying.
The only detail I see is the way you are declaring the run method in the derived class.
Why did you include "ReactorServer::" ?
rotter
The metaller programmer
|
|
|
|
|
Sorry about that typo, that's the "real" name of MyClass (my program is for a reactor server in a distributed system). The should say
MyClass::run() . Also, I declare the classes in h files and code them in cpp files separately, which is why I have that there in the first place.
|
|
|
|
|
You're leaving something out in your code sample.
This works fine:
class BaseA
{
int run(int argc, char** argv)
{
return 0;
}
};
class BaseB
{
virtual void run() = 0;
};
class MyClass: public BaseA, BaseB
{
void run()
{
}
};
And it's override, not overwrite
|
|
|
|
|
Hi,
Like Rotter512 said it should work,
I have tried it with cpp and h files and it still works.
I am using VS2005.
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
I found the reason for the problem -> There was an unresolvable ambiguity (the compiler couldn't tell which base class to override. Here's what Stroustrup has to say about this issue (see page 5).
http://www-plan.cs.colorado.edu/diwan/class-papers/mi.pdf[^]
Thanks for your responses. I must admit, I'm curious how you all got it to work.
To solve the problem, I ended up writing a wrapper class... please excuse my sad attempt at ASCII art, but here's the UML behind how I solved it.
----------- -----------
| Class A | | Class B |
----------- -----------
/\ /\
-- --
| |
| |
----------- -------------
| MyClass |_________/\| MyWrapper |
----------- \/-------------
|
|
|
|
|
Hi
I have created an app which loads DLL at runtime. I got a bizzare situation where ai need to constrain the app load time to 6 seconds. I could able to load the app within 6 seconds but mot on the first initial load. The initial load that is when you boot the system and try to run the app it takes more than 14 seconds. Is there any solution for this.
Thanks,
Vasu
|
|
|
|
|
can Delay Loading your DLL help ? see this[^].
This signature was proudly tested on animals.
|
|
|
|
|
Thanks for the reply.
I did lot experimensts using delay load rebasing dlls and found the initial load time kept increased. I found that its because of the windows NT Memory Management. I found this article very usefull which gives a detailed story about rebasing
http://msdn.microsoft.com/en-us/library/ms810432.aspx
Thanks
Vasudevan.S
|
|
|
|
|
Hello Team,
I have downloaded a freeware, that has one main_exe and one main_dll. now I wannt to write my own dll and would like to attach that the main_exe/main_dll. is there any way i can inject my dll into another dll, or attach my dll into another dll, if I dont have the source code of main_dll?
Thank you
glamakid
|
|
|
|