|
::system("Programname") or ShellExecute
can do that.
You might want to use CreateProcess for added control.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Petra wrote: I need to run a C++ program from another
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hai,
I have an popupwiindow created using MFC, now i want to move the window..,like our regular overlappedwindow.
How to do this ?
Please do reply me
Thanks,
Mani
Born to win...!
|
|
|
|
|
MoveWindow( ) may be? Or SetWindowPos() ?
|
|
|
|
|
I have no idea what you mean by a pop-up window. Do you mean a floating control bar? In which case, you need to get the window you created, and you may need to call GetDockingFrame to get the window you actually move.
Good luck,
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
Hi ,
I am new to windows mobile 2003 SDK and eMbadded VC++ 4. So don't mind me if this is sound big deal for me
I Install the SDK and eMbadded VC++ 4 in my machine which is running on windows XP.
When I try to start a new project in eMbadded VC++ 4 and after naming the project and all the other thing, I get to the stage when I press " Finish". At that time it show at the bottom right corner ( status bar) " loading class information" and it seem the eMbadded VC++ 4 is freeze in the way that it not responding.
Any idea why and how to resolve the problem.
I really appreciate any input.
Many thanks
a.almon1
|
|
|
|
|
Have you tried reinstalling Embedded VC++. I have been using it for years without any problems.
You might want to download a fresh copy and install that, just incase your download was corrupted or something.
AliR.
Visual C++ MVP
|
|
|
|
|
Hello
I want to add System Tray menu in activex control, but i dont know how to do it?
Any body tell me is it possible to do it?
And possible then let me know how to do it?
Thanks in advance
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
See in MSDN the following:
NOTIFYICONDATA
Shell_NotifyIcon ()
Come online at:-
jubinc@skype
|
|
|
|
|
Thanks for your reply.
Now another problem is how to get HINSTANCE in activex control?
I can get it in win32 application but how to get it in activex control?
Please help me out
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Hi
you can use AfxGetInstanceHandle() if u r using MFC or if it is Win32 HANDLE hModule in dllmain function is the HINSTANCE.
|
|
|
|
|
Thank you for reply
i am not getting your reply.
I want to handle all mouse events that are occuring in windows(out side of activex control also).
Is it possible? if it then how can i do it?
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
your Question : "Now another problem is how to get HINSTANCE in activex control?
I can get it in win32 application but how to get it in activex control?
Please help me out"
Answer:
To get the instance of an activex control you can use AfxGetInstanceHandle() in MFC.
eg: g_hInstance = AfxGetInstanceHandle();
or if u are developing a Win32 ActiveX Control you can use HANDLE hModule in dllmain function is the HINSTANCE.
like this way -
int Dllmain(HMODULE hModule...)
{
g_hInstance = (HINSTANCE) hModule;
......................
......................
}
i think now u got what i mean?
|
|
|
|
|
just wanted to know how do i set the progress bar.. i am creating a media player.. a simple player where in we can play and stop the song. now i need to add more functionalites.. i want to implemeny a progress bar which moves as the songs goes on... or rather synchonizes with the song.. some leads.. if sombody has done is then please help me in doing this.
|
|
|
|
|
CProgressCtrl::SetRange()
CProgressCtrl::SetStep()
CProgressCtrl::StepIt ()
CProgressCtrl::SetPos ()
CProgressCtrl::GetPos ()
Use any of the above given methods.
Come online at:-
jubinc@skype
|
|
|
|
|
If you are using MFC, see here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
I have string like this.
First name: name
I want to get the string after the ':'. What is the easiest way.
I'm wired with my way, find the length, find the place where : sign include and stuck...
I appreciate your help all the time...
Eranga
|
|
|
|
|
If you're using MFC, it'd be easily done with the CString::Mid() function:
CString str = _T("Name: Rajesh");
int iPos = str.Find(_T(":"),0);
AfxMessageBox(str.Mid(iPos+1));
Or, if you aren't using MFC, then perhaps this helps you:
TCHAR *tch = new TCHAR(20);
tch = _T("Name:Rajesh");
while(tch++)
{
if(*tch == ':')
{
::MessageBox(NULL, (tch+1), _T("Message"), MB_ICONINFORMATION);
break;
}
}delete tch;
Last modified: 15mins after originally posted --
Rajesh.
|
|
|
|
|
And what is the purpose of heap allocated memory?
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 bad mood perhaps? Seriously, just typed it out fast, tried and pasted here. Shouldn't have been fragmenting the precious heap though. Will take care of this in the future, my lord.
|
|
|
|
|
Rajesh R Subramanian wrote: my lord
Wasn't Dunn?
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
|
|
|
|
|
CPallini wrote: Wasn't Dunn?
Opph korse he izz.
|
|
|
|
|
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
|
|
|
|
|
If CString is used, write
CString str;
str.Mid (str.Find (':'));
If not using CString, write
char* pszName = strstr (variable, ":");
if (pszName != NULL)
{
pszName is valid pointer.
}
Come online at:-
jubinc@skype
|
|
|
|
|
Thanks, actually I'm trying this on standard C++ pal
I appreciate your help all the time...
Eranga
|
|
|
|