Programming Microsoft Agents

This is a discussion on Programming Microsoft Agents within the Windows Programming forums, part of the Platform Specific Boards category; I was wondering if anyone here has coded Microsoft Agents before? ( www.microsoft.com/msagent ). I'm trying to code up one ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    Programming Microsoft Agents

    I was wondering if anyone here has coded Microsoft Agents before? (www.microsoft.com/msagent). I'm trying to code up one using c++ but i can't even get the sample code to run - i downloaded the header and include files and put them into the include folder. All i get is errors - 74 of them :

    d:\Dev-Cpp\include\AgtSvr_i.c conflicting types for `typedef struct _IID

    The rest say about the same thing - conflicting types etc.

    Can anyone help?

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    3
    ok thanks for that that seemed to work well - now i'm just getting one error -

    In file included from d:\agent\hello.cpp:24:
    d:\agent\AgtSvr.h:286: ocidl.h: No such file or directory


    now i'm guessing that it can find agtsvr.h but i had a look @ that file on line 286 and it is trying to call this ocidl.h file but can't find it. There wasn't this file in the downloads when i downloaded the example - is it supposed to be part of the library or something?

    As you no doubt can tell - i'm rather new to the world of c++, however i have a couple years java exp.

    Thank you again for your help.

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    From a quick Google search, it looks like ocidl.h is a WinAPI include. Check and see if it's in your Dev-Cpp/includes directory.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    3
    Ok i just had a look in dev-c++/include folder and sure enough ocidl.h was nowhere to be found. Just to be thorough I did a search on my hardrive for the file - and it didn't find it anywhere.

    Do i need to download this file? If so where could i get it from? I have already searched the web but haven't found anywhere that i could download this program from.

  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    What version of Dev-C++ are you using?
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  6. #6
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>Do i need to download this file? If so where could i get it from?<<

    You can get it from mingw cvs. But you would probably be better upgrading your dev-cpp to a version that comes with that header file, as XSquared has implied.

    Alternatively, if you want to keep your current version of dev-cpp then you could just update your win32api files (headers and libs) here:

    http://sourceforge.net/project/showf...?group_id=2435

    ('Current' section, 'Windows api' : 'w32api-2.3.tar.gz' ).
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Apps that act "differently" in XP SP2
    By Stan100 in forum Tech Board
    Replies: 6
    Last Post: 08-16-2004, 10:38 PM
  3. Another Microsoft joke
    By Panopticon in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 02-02-2003, 11:53 AM
  4. Microsoft rulling
    By Sentaku senshi in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-02-2002, 02:50 AM
  5. Retaliation towards witch king\microsoft
    By Koshare in forum Linux Programming
    Replies: 7
    Last Post: 10-19-2001, 04:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21