|
Okay I just saw your other question and if you are using C++\CLI then you have to install .Net framework on user's computer.
-Saurabh
|
|
|
|
|
Hello guys, this is my first post ok so here is my problem/question I would like it so when a user enters a URL into a text box and then hits the go button that it will open the URL in the default browser, here is what i got
private: System::Void GO_Click(System::Object^ sender, System::EventArgs^ e)
{
int GetWindowText(HWND urlgo,LPTSTR textout,int nMaxCount);
System::Diagnostics::Process::Start(/*start the url entered*/);
}
Oh and here is the Text box
private: System::Void urlgo_TextChanged(System::Object^ sender, System::EventArgs^ e)
{
}
any help would be much appreciated Thanks, Brock
|
|
|
|
|
|
"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/xml>
|
|
|
|
|
Hi,
Use the following statement in your code :
ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
Good Luck..
|
|
|
|
|
I get error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
|
|
|
|
|
Might be its happening due to ur unmanaged code...
|
|
|
|
|
That's a Unicode problem. It's expecting "wide" chars. Try this: L"open"
|
|
|
|
|
Hello
Can Anybody suggest me that how to use this SaferGetLevelInformation Function to get the information about policy level......
Thankx!!!!
|
|
|
|
|
|
hi
In my application we want to make phone dialling option , so i have used tapiRequestMakeCall function and i included #include <astdtapi.h> file.
But the error shows that "unresolved external symbol tapiRequestMakeCall referenced in function ....".
Can any one help me to solve this problem
k.guru moorthy
|
|
|
|
|
You have to link your program with Tapi32.lib
-Saurabh
|
|
|
|
|
thanks ,
may i know how to link Tapi32.lib with our program.because i new to this
k.guru moorthy
|
|
|
|
|
|
Are you sure we should do #import for tapi32.lib? I thought #import is for type libraries or something to do with COM components. I haven't used TAPI myself so I am just curious.
-Saurabh
|
|
|
|
|
|
If you dont know such basic things then I would recommend stop coding right now. Buy a good book on VC++ read it first.
-Saurabh
|
|
|
|
|
ok thanks , what is the author name for good vc++ book
k.guru moorthy
|
|
|
|
|
yaiii,
i am asking seriously ,otherwise do u have written good book on VC++
. tell me
k.guru moorthy
|
|
|
|
|
|
|
It seems that you need to import lib file.
|
|
|
|
|
Dear All,
I want to know that how an "Exe" was started. That is whether the exe is launched by "Double clicking It" or "Using
right click Menu and Select Run" or "From Command Prompt" or "Invoking From Other Process"
Is there is any way in VC++ MFC to know this Exe launching details?
Expecting your valuable answers.
Thanks in advance.
Regards,
R Hariharan
Hariharan R
|
|
|
|
|
I am not sure if windows stores such information for each process. If you want you can get the command line with which the process was run. Just out of curiosity why do you need this information?
-Saurabh
|
|
|
|
|
Thanks.
I am developing an dialog Based MFC application whic has two mode of operation. One is Configuration mode another one is Execution mode. Configuration mode is used by the Administrator where as Execution mode is used in the client. In configuration mode user admin is shown with configuration dialog but in execution mode the exe will run as a background process so the client user will not be provided with any interface.
In Configuration mode the admin has to explicitly run the exe by "Double click/ Right click and select ". But in execution mode exe will be invoked from the scheduler.
So if i know the Startup mode of an exe i can able to launch the application according to that. That is if the start up mode is "double click on exe " i will run the exe in configuration mode and show the dialog to the admin. If the startup mode is "Invoking from other process" then i will just run the exe as a background process.
Hope u might have understood my requirement.
Now pls tell me how can i go about it? Or tell me some other method in which i can meet my requirement.
Thanks in advance.
Hariharan R
|
|
|
|