|
i get an error like this shown below......
fatal error C1010: unexpected end of file while looking for precompiled header directive
i dont seem to find the error.....
help....
|
|
|
|
|
Maybe you can try add:
#include "stdafx.h"
at head of your file if there didn't have one.
i met that problem before,but i don't know whether it's the same as yours?
Best wishes,
---------------------------
You will when you believe!
------------------------
|
|
|
|
|
aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!)
the #include<stdafx.h> is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more.....
sob.....any other ideas.....
thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....
|
|
|
|
|
You have one reply for every one ?!?!?
-prakash
|
|
|
|
|
yes.....everyone has given the same solution!!!!!
|
|
|
|
|
I think if you provide more info then someone could give a different solution to ur problem .
-prakash
|
|
|
|
|
thank you MR prkash for ur time and help.....I found my mistake......
i got a linker errorz(the 20 errorz),but when i linked the lib (which i hadnt )these were gone!!!!!
thank u very much for ur time and help.....
Happy programmin.....
cheerz.....
|
|
|
|
|
wow! so actually turning off the precompiled header i.e. the solution most of them were giving you were actually working but you started getting different error coz you did not link the required lib which turned out to be more no of errors then before, so you thought that these solutions were wrong!
Cool man.
-prakash
|
|
|
|
|
Hi,
Seems that you have deleted some of the needed headers/endif statement.Have a look @ the msdn with the error code C1010
Sujan
|
|
|
|
|
Hi,
It seems that, this error is beacause of precompiled header file,
you can do one thing change the project settings from
setting tab->c++ tab->Category->Precompiled headers->Check not using precompiled headers.
Now build project, it should work !
Best Regards,
Vishal
|
|
|
|
|
aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!)
the #include<stdafx.h> is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more.....
sob.....any other ideas.....
thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....
|
|
|
|
|
or turn off precompiled header files in the project settings.
-prakash
|
|
|
|
|
aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!)
the #include<stdafx.h> is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more.....
sob.....any other ideas.....
thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....
|
|
|
|
|
|
aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!)
the #include<stdafx.h> is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more.....
sob.....any other ideas.....
thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....
|
|
|
|
|
Hi,
It seems that, this error is beacause of precompiled header file,
you can do one thing change the project settings from
setting tab->c++ tab->Category->Precompiled headers->Check not using precompiled headers.
Now build project, it should work !
Best Regards,
Vishal
|
|
|
|
|
aaaaaah.....but that doesnt work....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!)
by the way the #include<stdafx.h> is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....
sob.....any other ideas.....
thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....
|
|
|
|
|
i find this
fatal error C1010: unexpected end of file while looking for precompiled header directive
For solve this common problem You need to use automatic use of precompliled headers. Select project/settings (or ALT+F7) then, in the Project Settings Dialog, select the C/C++ tab, then select the Precompiled Headers item in the combo box, and select the Automatic use of precompliled headers option.
here:
http://www.codeproject.com/database/caaadoclass1.asp[^]
hope it can help
-------------------------
Best Wishes sehsiW tseB
-------------------------
You will when you believe!
-------------------------
|
|
|
|
|
well.....the link that u gave me has to do with databases!!!!!
i guess u have put up the wrong link!!!!!
i selected the "Automatic use of precomplied headers" option,but what do i put in the through header box??
thankz for ur reply.....
|
|
|
|
|
hi,
i am trying to provide an interface to a webcam in
vc++/sdk please help me........Please help me if anyone
knows about the api's used to capture a webcam
in vc++..Please reply as soon as possible...
|
|
|
|
|
Hello
There is an SDK available from Microsoft Research called "Vision SDK". With this SDK you can connect to your webcam and capture images in a variety of formats. I have worked on a project using this SDK in my 3rd year project in BS. Tell me if you want any additional help.
PS. Oh and i just learned that Microsoft has sold its Vision SDK product to some german company which might make it commercial so it might not be publicly available. Fortunately i found a website for you that allows you to download the microsoft version visit http://www.cs.ualberta.ca/~jiayuan/414/
Regards
Ahmed Ajmal
|
|
|
|
|
Ahmed,
Thanks for the info,
I have a query ? Does the version of DIrectX (9.0c) which i have matter
to run the VisSDK application bcoz, when i started compiling am getting errors
in files "mmstream.h" and "strmif.h" ?
for the SDK to compile - what is the version of Direct X i should use...
Thanks,
Pramod
|
|
|
|
|
The most effective way to use an installed webcam is to use DirectShow, which comes with DirectX 9.
The webcam driver, when it was installed and loaded, created a DirectShow filter for the video stream and pictures available from the camera. This filter offers one or more interfaces, depending on what services the camera has. If you build and operate a 'capture chain' (DirectShow term), you can capture live data from the camera into a Windows window, a file or a network stream.
To use DirectShow in your programs, you must download and install the latest DirectX SDK available freely from Microsoft. The DirectX Documentation accompaning this SDK has a few examples and code samples on how to create capture chains. The process of creating a chain is similar everytime: the filters that join the chain determine the nature, purpose and features of the chain.
For example, to use a webcam to get live data from the camera to a Windows window, create a capture chain with the webcam filter and a Video Rendering Mixer filter. VRM filter can render video data into a window you create and specify with a HWND parameter. Remember that the VRM filter creates an auxilary window which is a child of the HWND you specify. The auxilary window has no title bar, system menu or anything else. It's just a blank square which is constantly redrawn with video data. Thus you need an actual top-level window which allows you to control the video display. You can't create a program and just put a video window over the desktop, as you would then have no way of closing the program without CTRL+ALT+DEL.
-Antti Keskinen
----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"
-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
|
|
|
|
|
Well VisionSDK doesnt have any dependencies that is you do not require a version of DirectX for that. Run the samples that come with the installation and do read in the documentation too This will clarify a lot of things. Basically VisionSDK supports Webcams that support Video for Windows(VFW) which virtually everybody webcam supports. If you are more comfortable with the COM style architecture than I suggest you go for DirectShow as Keskinen has suggested. Any more queries are welcome. I can help with implementation of Webcam interface
Regards
Ahmed Ajmal
|
|
|
|
|
It's true that DirectX has it's dependencies, but facing reality, how many Windows machines there are in the world which don't have DirectX (any version) installed ?
DirectShow is also a lot easier to program once you grasp the basics. I don't know how flexible or effective the VisionSDK is, though. Both are valid solutions (DirectX and VisionSDK), the choice is up to the designer..
-Antti Keskinen
----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"
-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
|
|
|
|