|
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
|
|
|
|
|
haiimran wrote: 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?
No there isn't. And even if it was possible you cannot get info here [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Who's the lardass that voted you down here?! I had to balance it.
|
|
|
|
|
Thanks.
My favourite troll is a bit angry because he's hungry... I've forgot his dish today.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I want to share some data (int var) between two application app0 and app1.
The app0 calls app1 thrugh a CreateProcess, being one of the parameters a string containing the memory address of the data which I want to share (strVar = & var).
However when I assign the addres of var to a new pointer in app1 (int * pvar1), although they point to the same memory address (pvar1 == & var), the variables are not the same (*pvar1 != var). Instead, what I obtain in *pvar1 is a very high number which I assume is an error.
Should this operation work or the fail is what you would expect in this kind of botch?
Thank you and kind regards
JMGIC
|
|
|
|