Re: [Dev-C++] How to use ShellExecute?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Zac N. <zn...@gm...> - 2005-06-29 21:31:03
|
Oh, sorry, the other mailing lists I'm on have that set up automatically. I'm sorry, but I don't know what grep-recursive-ShellExecute-whatever is.= =20 Could you please explain simply? -Zac On 6/29/05, Per Westermark <pw...@ia...> wrote: >=20 > When responding to the list - remember to respond to all, or your posts > won't reach the list... >=20 > Anyway, while you seem to have a build error, your post only shows a > warning about missing declaration of ShellExecute. >=20 > If you do: > grep --recursive ShellExecute > in your include directories, you will notice the file shellapi.h. >=20 > It might be an idea to make sure that you have a line: > #include <shellapi.h> > somewhere at the start of your source file. >=20 > /Per W >=20 > On Wed, 29 Jun 2005, Zac North wrote: >=20 > > " C:\Dev-C++\ZMOffice\main.cpp > > [Warning] In function `class string > >=20 > ExecMainCommand(basic_string<char,string_char_traits<char>,__default_allo= c_template<false,0> > > >)': > > 73 - C:\Dev-C++\ZMOffice\main.cpp > > implicit declaration of function `int ShellExecute(...)' > > C:\Dev-C++\ZMOffice\Makefile.win > > [Build Error] [main.o] Error 1" > > > > Those are my errors, though I get different ones for no reason. > > > > -Zac > > > > On 6/29/05, Per Westermark <pw...@ia...> wrote: > > > > > > Recommendation: > > > > > > If your code doesn't compile, the compiler emits error messages. Cut= =20 > these > > > out and post to this list. > > > > > > If your code doesn't link, the linker will emit error messages. Cut= =20 > these > > > out and post to this list. > > > > > > Just about always when someone have done everything correct, there is > > > still something done wrong. The MinGW compiler (DevC++ is just=20 > graphical > > > environment - MinGW is the compiler) is not know to regularly fail to > > > compile valid code. > > > > > > /Per W > > > > > > On Wed, 29 Jun 2005, Zac North wrote: > > > > > > > Hi, > > > > > > > > I am new to C++, and am using a "For Dummies," large book to learn= =20 > it. > > > So > > > > far, I think Dev C++ is a great, free compiler and am enjoying usin= g=20 > it, > > > > but, for whatever reason, the command "ShellExecute()" is not=20 > working. > > > > > > > > I have all the parameters set correctly (I got mine from several > > > different > > > > online examples), but the script simply will not compile. It must b= e=20 > a > > > > compile error with the ShellExecute or something, because it=20 > compiled > > > fine > > > > before that. I don't know why it's like this, because I did=20 > everything > > > > correctly, there is no possible reason. > > > > > > > > Could someone tell me what could be wrong? > > > > > > > > Thanks, > > > > > > > > -Zac > > > > > > > > > > > > >=20 > |