ERROR
-
Hi I have an application running with 2 forms. however when i run it i get the following error: c:\.......\stdafx.obj': Possible cause If the message says "bad file number", the file may have been closing in the foreground while compiling in the background. it seams there is a problem with #include "StdAfx.h" at the begining of my plc.cpp class file. I have plc.h, and plc.cpp !!! can someone please help me?
Is this a compile error or run error? Where are you getting the error message from? John
-
Is this a compile error or run error? Where are you getting the error message from? John
it is a faltal error. it seams to be the run error.
-
it is a faltal error. it seams to be the run error.
Then a message box pops up with the error? The reason why I ask is I have seen this as a compile error and the fix was to do a clean build by deleting the release and debug folders and recompile however if it is a runtime error I am not sure if this could be the problem. John
-
it is a faltal error. it seams to be the run error.
You mean it compiles, runs and then you get this error ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Then a message box pops up with the error? The reason why I ask is I have seen this as a compile error and the fix was to do a clean build by deleting the release and debug folders and recompile however if it is a runtime error I am not sure if this could be the problem. John
I'm pretty sure he's getting a compile time error and does not understand what you're asking him. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
You mean it compiles, runs and then you get this error ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
no no it does not RUN... it is a compiler error. Sorry for the mistake.
-
no no it does not RUN... it is a compiler error. Sorry for the mistake.
OK - could you post the code that is causing the problem ? Can you comment any lines out of stdafx.h and cause it to compile ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
I'm pretty sure he's getting a compile time error and does not understand what you're asking him. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
I thought so. John
-
OK - could you post the code that is causing the problem ? Can you comment any lines out of stdafx.h and cause it to compile ? Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // C RunTime Header Files #include #include #include #include // TODO: reference additional headers your program requires here this is all the code i have in stdafx.h!!! I have not add anything to it!!!! This is the default file when you want to build a form.net application... and i dont undrestand the pupose of it entirlt.
-
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // C RunTime Header Files #include #include #include #include // TODO: reference additional headers your program requires here this is all the code i have in stdafx.h!!! I have not add anything to it!!!! This is the default file when you want to build a form.net application... and i dont undrestand the pupose of it entirlt.
hold on a sec the program will not run but in the comments it says: fatal error C1084: cannot read CLR runtime data file c:....stdafx.obj
-
hold on a sec the program will not run but in the comments it says: fatal error C1084: cannot read CLR runtime data file c:....stdafx.obj
I'd do a clean and rebuild all, it's compiling the individual files but cannot read one of them for some reason. And you should check the 'do not treat <'s as HTML tags' box below when you post anything that could be mistaken for a tag. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
I'd do a clean and rebuild all, it's compiling the individual files but cannot read one of them for some reason. And you should check the 'do not treat <'s as HTML tags' box below when you post anything that could be mistaken for a tag. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
Thanks Christan. I dont know why it happens sometimes but I copied another sdfxa.cpp file from another project and it works fine now ;);)