|
|
|
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
|
|
|
|