win32 error no :267
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: win32 error no :267

  1. #1
    Join Date
    May 2002
    Posts
    49

    win32 error no :267

    Dear gurus,

    when i build my project the error called "Win32 error :267"
    appears and following that the error called "Can not execute
    program"..

    so what is the solution for this problem?
    pls help me its urgent..

    senthil.

  2. #2
    Join Date
    Mar 2002
    Location
    NY, USA
    Posts
    12,097
    Does this happen when you try to BUILD or when you try to RUN???
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009
    In theory, there is no difference between theory and paractice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    May 2002
    Posts
    49
    this happens when i try to run the program only.
    pls help me..
    senthil

  4. #4
    Join Date
    May 2002
    Posts
    49
    the exact error message is :

    Could not execute : Invalid directory(Win32 error : 267)

    when i click the ok button then the following message :

    "Cannot execute the program"

    so how to fix this problem?

    senthil.

  5. #5
    Join Date
    Mar 2002
    Location
    NY, USA
    Posts
    12,097
    Since it is happening when you RUN the program, use the Debugger!!!

    You are tring to access a file/directory which does not exist or to which you do not have the rights required.

    How to fix the problem is dependant on what the problem is?

    If the directory/file should exist, create it...

    If the program is looking in the wrong place...change where it is looking....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009
    In theory, there is no difference between theory and paractice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  6. #6
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Just out of curiosity...check that the path to the application is set correctly within the project settings (ALT + F7 -> Debug -> Application for debug session (or similar))...
    Ciao, Andreas

    "Software is like sex, it's better when it's free." - Linus Torvalds


    Article(s): Allocators (STL) Function Objects (STL)

  7. #7
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882
    have you changed the project settings ??

    And if this happens for all projects then must be Visual studio's problem , report to MS and install service pack 5.
    Regards,
    Ramkrishna Pawar

  8. #8
    Join Date
    Oct 2000
    Location
    India
    Posts
    4,620
    Win32 Error 267 is ERROR_DIRECTORY . It means that the
    the directory name is invalid. Did you play around with the
    project settings ??
    All luck and have a great day.

    Regards,
    V.Girish

    Visit www.geocities.com/contactgirish for Source code, Tutorials, FAQs and Downloads.

  9. #9
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882
    And i think this might caused when some directory spy are installed , they hook CreateProcess and dont allow to run/read etc , adn return invalid dir or some error like that.
    Regards,
    Ramkrishna Pawar

  10. #10
    Join Date
    Feb 2011
    Posts
    1

    Re: win32 error no :267

    I also encounter this problem, and don't know how to sove it.

  11. #11
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,359

    Re: win32 error no :267

    Quote Originally Posted by stonepan View Post
    I also encounter this problem, and don't know how to sove it.
    Well, since you post in that old thread then you already have to have understood that to get any reliable help you have to provide much more info about *your* problem, such as:
    • where, when and how it happens
    • the App type
    • Build type (debug/release, unicode/ansi)
    • IDE used
    • ...
    Victor Nijegorodov

  12. #12
    Join Date
    May 2012
    Posts
    2

    Re: win32 error no :267

    Old thread, -but just in case this could help someone:

    My problem was easily solved with the solution posted in the thread titled:

    "Could not execute: invalid directory (Win32 error 267) "

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center