Re: [Dev-C++] How to use ShellExecute?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-06-29 20:09:20
|
When responding to the list - remember to respond to all, or your posts won't reach the list... Anyway, while you seem to have a build error, your post only shows a warning about missing declaration of ShellExecute. If you do: grep --recursive ShellExecute in your include directories, you will notice the file shellapi.h. It might be an idea to make sure that you have a line: #include <shellapi.h> somewhere at the start of your source file. /Per W On Wed, 29 Jun 2005, Zac North wrote: > " C:\Dev-C++\ZMOffice\main.cpp > [Warning] In function `class string > ExecMainCommand(basic_string<char,string_char_traits<char>,__default_alloc_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 these > > out and post to this list. > > > > If your code doesn't link, the linker will emit error messages. Cut 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 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 it. > > So > > > far, I think Dev C++ is a great, free compiler and am enjoying using it, > > > but, for whatever reason, the command "ShellExecute()" is not 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 be a > > > compile error with the ShellExecute or something, because it compiled > > fine > > > before that. I don't know why it's like this, because I did everything > > > correctly, there is no possible reason. > > > > > > Could someone tell me what could be wrong? > > > > > > Thanks, > > > > > > -Zac > > > > > > > > |