I simply wanted make me able to right click a file and say open with <My app name>
since I know some about editing class options from registry. making app open the file opened it with was last thing...
Type: Posts; User: Need_O2
I simply wanted make me able to right click a file and say open with <My app name>
since I know some about editing class options from registry. making app open the file opened it with was last thing...
you mean "Run a program from within a program"
hmm didnt see FAQs before
They seem much usefull
Thanks !!!
Start -> Run -> $My application path$ $File to open with Path$
so I opened the "File to open with" with my application
So I want to store $File to open with Path$ in a string to know what I opened...
I open it with a file for example you know
Like opening paint files with mspaint
I want to detect what I opened it with
Did I miss the no beginners allowed sign ?
Well I was looking for a way to detect command lines
and files opened with my application
Just a simple way if possible
or a header that does it easly
something like: string s =...
... so ???
string s = c_str(<LPSTR variable>) ?
how to convert it back to LPSTR then ?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string S = "lalala";
string B = S.substr(0,2);
cout << B << endl;
system("Pause");
first index is 0 okay thanks for the tip (so its substr(0,2))
well I have a iostream.h that includes iostream in it
but okay I'll use iostream
Anyway will it work or not
As I said I cant test...
#include <iostream.h>
#include <string>
using namespace std
int main()
{
string S = "lalala";
string B = S.substr(1,2);
cout << B;
return 0;
1-
#include <iostream.h>
#include <string>
string S = "lalala";
string B = S.substr(1,2);
cout << B;
This syntax error... I want to make it display "la" for example
1-
cout << "Hello EDM/2" << endl;
I didnt get what does this do
2- functions initialized like
int functionname(parameter1,parameter2)
{
Some actions using parameter1 and parameter2
nice !!!
Thanks
I dont know anything about C++ at the moment hope to learn some
Do you have good example applications that I can explore ? (games suggested)
I have Dev-C++, Visual C++ 2008 Express, DarkBasic...