|
I installed Visual C++ 2010 Expression Edition in my notebook(its HP..with
Winodows 7)..after creating a sample Windows forms application..i am not
getting output Dialog box..apart from this the application build successfully..
later i tried with VC++ 2010 Professional(30 days Trail version)..
here also i faced the same issue...
is there any problem with OS..previously i worked on VC++ 6.0.
awaiting for the responce
|
|
|
|
|
krishna.p.vuppala wrote: I installed Visual C++ 2010 Expression Edition in my notebook(its HP..with Winodows 7
I use the same configuration on a Dell laptop and it works fine. It is likely that something in your code is not correct. Can you show an extract of the code where the dialog should be displayed?
It's time for a new signature.
|
|
|
|
|
How are you trying to run it? If you are using keyboard shortcuts, there have been some changes since VC++. Did you click on the run icon or use F5? May be you are only building it not running it.
|
|
|
|
|
Thanks for your valuable comments..
it's works well...but in VC++ 6.0 after building the solution
dialog will come automatically(i hope soo..because i worked on it
5 years back)...in Visual Studio 2010 prof.Edition i got it
after clicking START WITHOUT DEBUGGING..From DEBUG Menu(After
Successfully Building the Solution)
Please let me know any other possible solutions...
please refer me some links, that describes the diff between VC++ 6.0 and VisualC++ 2010
|
|
|
|
|
krishna.p.vuppala wrote: please refer me some links, that describes the diff between VC++ 6.0 and VisualC++ 2010
There have been lots of changes since 6.0, see this[^] then google for what is new VC++ <insert version here>
|
|
|
|
|
In VC++ 6.0, you could compile or run the program. If you attempted to run the program, you could configure VC++6.0 to first compile anything out of date, then if successful, run the program. I believe this was the befault behavior. Could that have been how you were using it?
I believe VS2010 will have the same behaviors (we're only up to VS2008), and probably installs pre-configured that way. The shortcut keys will all have changed, so use the menus or the toolbar icons.
patbob
|
|
|
|
|
I am reworking a template library that is VC++6.0 compatible, but I do not have access to that compiler at the moment.
Will the following test successfully compile and run on VC++6.0?
#include <cstdlib>
#include <iostream>
using namespace std;
template<typename CharT>
struct A
{
CharT ch;
A() : ch('A') {}
};
template<typename CharT, typename BaseT = A<CharT> >
struct B : public BaseT
{
B() { BaseT::ch = 'B'; }
};
int main(int argc, char* argv[])
{
A<char> a;
B<char> b;
cout << "a.ch = " << a.ch << endl;
cout << "b.ch = " << b.ch << endl;
system("PAUSE");
return 0;
}
Curious?
I have 3 class templates that all have a “has-a” relationship with a data storage class template and I am changing it to an “is-a” relationship. But I still want the user to be able specify the storage class, as there are legitimate reasons why they may want to.
The above method solves the problem, but I have never seen it used by anyone else.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
|
|
|
|
|
John R. Shaw wrote: Will the following test successfully compile...on VC++6.0?
Yes.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thanks!
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
|
|
|
|
|
Is there a way to customize the look of the CMFCPropertyGridFileProperty ?
In particular have that "browse" button always visible ?
Now, the button is only visible when the property gets the focus.
Not that important ...
Max.
Watched code never compiles.
|
|
|
|
|
You could extend the
virtual void CMFCPropertyGridProperty::OnDrawButton(CDC* pDC, CRect rect)
in your own class, derived from CMFCPropertyGridFileProperty
virtual void BeHappy() = 0;
|
|
|
|
|
Eugen Podsypalnikov wrote: You could extend the
Yeah, tried that, but the button is only visible when the property gets the focus and the underlying code checks the button rectangle (which is set/unset) depending on the focus (I think, still looking); and I would need to override a couple of methods in CMFCPropertyGridCtrl and I don't want to go there right now ( not enough time).
At least there is some source code to look at.
Thanks.
Watched code never compiles.
|
|
|
|
|
Hi!
How to delete the following?
irr::core::array<irr::gui::IGUIButton*> m_pPlayerBtn;
|
|
|
|
|
Depends a lot how the buttons in the array are allocated. Did you allocate the IGUIButton dynamically (with new) ? If yes, then you need to iterate over the array and delete each element separately.
|
|
|
|
|
Hi!
I've not used
new . It's initialized like this:
for(u32 i = 0; i < 11;i++)
{
m_pPlayerBtn.push_back(pManager->getGUIEnvironment()->addButton(rect<s32>(uright_x, uright_y, lleft_x+75, lleft_y+5), 0, id_btn++, 0, 0));
uright_y+=25;
lleft_y+=25;
}
How to delete this m_pPlayerBtn ?
|
|
|
|
|
What does the documentation say about addButton ? I guess they are managed internally by the library so you probably don't have to do anything. Check the doc of the library, it's impossible to give you a clear answer without looking at the documenation of the library.
Anyway, from what I see here I would guess that you don't have to do anything (but it's just a guess).
|
|
|
|
|
what does the documentation of "addButton" says ?
can I assume it returns a pointer to a button ? if yes that you need to delete each button individually when cleaning the m_pPlayerBtn list/array/whatever.
Watched code never compiles.
|
|
|
|
|
Maximilien wrote: if yes that you need to delete each button individually when cleaning the m_pPlayerBtn list/array/whatever.
I would guess that the "GUI environment" (returned by the call to getGUIEnvironment() ) would manage the lifetime of the several buttons. The pointer returned by addButton would be used only if you need to manipulate the button later.
|
|
|
|
|
That really depends on the implementation of irr::core::array. If it's just a fairly dumb container you're going to have to manually iterate over the collection and delete each element in turn. On the other hand if it's a class designed for resource management then it might delete stuff for you. You're going to have to look at the docs and see.
Oh, and of course there's the possibility that the array might just contain references to objects that are managed elsewhwere. In that case you don't want to delete the elements of the array.
Cheers,
Ash
|
|
|
|
|
Hi All
I need to create Multiple instance of Windows Service ,how its possible?
Thanks
Raju
Failure is Success If we learn from it!!
modified on Monday, July 26, 2010 7:30 AM
|
|
|
|
|
You can make the manager service which spawn multiple instance of some program.
If you mean multiple processes by multiple, the manger service is like below;
struct MyProcInfo {
BOOL m_spawnSucceeded;
PROCESS_INFORMATION m_processInfo;
} m_myProcInfo[N];
...
for (int j = 0; j < N; j++) {
m_myProcInfo[j].m_spawnSucceeded = CreateProcess(SOME_PROGRAM, argsForIt, ...., &m_myProcInfo[j].m_processInfo);
}
Or if you do not mean multiple processes but multiple COM instances, you can easily write like that service with ATL COM AppWizard wizard in visual studio.
|
|
|
|
|
Hi
I have a class MyClass, which is derived from CWnd and COleDropTarget.
class MyClass:public CWnd, public COleDropTarget
{
};
I am having a button in my class. While adding ON_BN_CLICKED(BUTTON_ID, OnClick) event in the message map entry, i am getting the following compiler error,
Error C2594: 'Static cast': ambigious convertion form 'void (__thiscall MyClass::*) (void)' to AFX_PMSG.
can anybody tell me what's the issue.
Thanks
|
|
|
|
|
Deepu Antony wrote: ON_BN_CLICKED(BUTTON_ID, OnClick)
change it to
ON_BN_CLICKED(BUTTON_ID, &MyClass::OnClick)
Also, signature of the function should be like this
void FunctionName();
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
Still i am getting the same error.
|
|
|
|
|
the ambiguity is both CWnd and COleDropTarget are derived from CCmdTarget. Due to non-virtual inheritance, there will be multipe occurances of AFX_PMSG. Actually why do you inherit a window class from COleDropTarget? Refer COleDropTarget documentation to see its usage.
|
|
|
|