|
See ShellExecute(/*parameters*/); You need to specify the full path of the exe
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks. It's working now. But I've put the exe in the Release folder of the calling project. Why it didn't work? Can u explain?
|
|
|
|
|
The system command was not knowing the location of the exe you were trying to run. Try putting the full path of the exe in the system command and it should work too.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Ok. It's working fine. But When I terminate the called exe, the control didn't pass to the parent Window. i.e after I closed the called exe, the start and exit buttons in the parent window are not clickable. What to do to resolve this?
|
|
|
|
|
What do you mean by "buttons in the parent window are not clickable". What exactly happens when you click somewhere on the dialog? Does the dialog show up as the active window? Did you try and debug the code, if affirmative then are you able to enter the function and debug it?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
When I click the Start Button in a Window an exe(CharacterAnimation.exe) will be run. When I close this exe(CharacterAnimation.exe), the first Window which contains the start Button and one more called exit Button is not clickable. What to do to resolve this problem?
|
|
|
|
|
You didn't answer my other questions
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Or you can use of CreateProcess.
|
|
|
|
|
Hi,
I am Writting a Windows GUI extension to a Dos program ..
With Help from people on the code project I am going about this by doing a CreateProcess for a WinMain Project part of the Dos Solution. I should have clarefied myself I am doing this under Visual Studio
My Question is There some Storage area I need to access in Dos project
Luckily for me its a structure which is a Exported DLL
My question is the following from What I understand under Windows 32 process has an address range 0 - FFFFFFFF
With OS code mapped in the Address Space/Process
The DLL that are in the DOS process Whether implictly limked or Dynamically linked (loadLibrary) are in the Common
Storage somewhere in the 0 - FFFFFFFF what ever addresd in that range are marked as Shared
All I have to do to Access them In My new Process is include the proper .Libs
Thankx
|
|
|
|
|
Can anyone explain how to use the CWnd::HtmlHelp(,) function? I'm using VS2008 and programming in MFC so I'd like to use the CWnd version rather than the API version. I've search MSDN and they show plenty of examples for the API version , but NONE for the CWnd version. Or at least I haven't found any. Can someone explain, by example the CWnd version's usage,Please.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: Can someone explain, by example the CWnd version's usage,Please.
You would use it like any other class method. Do you have a CWnd object?
http://msdn.microsoft.com/en-us/library/xtwk15xt(VS.80).aspx[^]
"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
|
|
|
|
|
In my windows based application i am getting an exception log
001B:7C16E14F Ordinal1028+7D,
001B:7C16E1B8 Ordinal1209+3B,
001B:7C16E1F6 Ordinal1209+79,
001B:20004EE3 KIVCZ05VmDialogProc+603,
001B:77D48734 GetDC+6D,
001B:77D48816 GetDC+14F,
001B:77D489CD GetWindowLongW+127,
001B:77D496C7 DispatchMessageA+F,
Plesae guide me generally how we resolve ordinal problems.
|
|
|
|
|
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]
|
|
|
|
|
Can you more explain about your program,please?
|
|
|
|
|
then what will be the following is true for that instance
1)all instances of the parent class will reference one variable and each instance of the child class
would reference its own separate variable
2)all instances of the parent class would reference one variable and all instance of the child class would reference another variable.
3)All instance of the parent and the child classes would reference the same variable.
4)Each instance of the parent and the child classes would reference its own separate variable.
5)None of the above
I want to know answer with some detail, if anybody could have .
Thanks in advance
|
|
|
|
|
Sometimes a little test is better than a thousand words:
(assuming 'parent' is base class and 'child' is derived one)
#include <iostream>
using namespace std;
class A
{
public:
static int alpha;
};
class AA: public A
{
public:
static int alpha;
};
int A::alpha = 1;
int AA::alpha = 5;
void main()
{
int i;
const int N=5;
A a[N];
AA aa[N];
for (i=0; i<n;> {
cout << "a[" << i << "].alpha = " << a[i].alpha << endl;
cout << "aa[" << i << "].alpha = " << aa[i].alpha << endl;
}
}
</iostream>
The output is:
a[0].alpha = 1
aa[0].alpha = 5
a[1].alpha = 1
aa[1].alpha = 5
a[2].alpha = 1
aa[2].alpha = 5
a[3].alpha = 1
aa[3].alpha = 5
a[4].alpha = 1
aa[4].alpha = 5
Personally, I'll bet on point (2).
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]
|
|
|
|
|
What is this? Actually writing code to see how C++ works? Why, that's revolutionary.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Joe Woodbury wrote: Why, that's revolutionary.
Yes, since about XVII century.
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]
|
|
|
|
|
Hello,
I am making a GUI on Visual Studio's (2005) Windows Form Application. I have set the radio buttons to a default value. But, I want to give the user the choice to choose another radio button. But since I have set the value of "Checked" in the event handler of the radio button, right now the default value is the only value that can be chosen (so its fixed). How do I make this changeable?
Thank you in advance,
jazz24
|
|
|
|
|
I'm not all that sure what you are asking.
If you have individual options, which can be on or off independently of each other, then you should be using checkboxes, not radio buttons.
If you have a choice of (eg) three things, only one of which can be selected, radio buttons are good.
They need to be one after each other in the tab order, the first one needs the group bit selected, and all after the first need it deselected.
I would also strongly recommend that the ID numbers are in the same order as the radio buttons.
Then you can use
CheckRadioButton (int nIDFirst, int nIDLast, int nIDSelect);
to programmatically select a radio button, and IsDlgButtonChecked to check whether a radio button is checked or not.
Or DDX_Radio (...) in your CDialog::DoDataExchange (...) function for MFC dialogs.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
My VC6.0 (win 2000 server) stopped responding to F1 and won’t do MSDN search either.
I get an hour glass and File Manager indicates that application is not responding.
I have reinstalled VC 6.0, with SP 6 and reinstalled my MSDN. Any other suggestions?
I am ready to do new install from scratch.
Please, no Vista / VS 200x “upgrades” suggestions , not an option!
Thanks for reading.
Vaclav
|
|
|
|
|
I am trying to create a dll from c++ to be used as a plugin for iTunes. Unfortunately I cannot find any documentation on this. The plugin I am trying to make will be pulling information from iTunes while running and display it in the taskbar as an icon with bubble notifications when the song changes, showing song title etc. Does anyone have any code from plugins they have made in the past? I am very new to this haha.
Thank you
|
|
|
|
|
|
How can you create a freestanding .exe that does not require the CLR using VS2008. The program is actually ANSI C code, no C++ except for // COMMENTARY.
|
|
|
|
|
Member 4194593 wrote: freestanding .exe
you mean a standalone ?
just statically link the required libraries in your linker settings...
|
|
|
|