harshdeep

I'm facing some problems in moving my DirectShow code to VS8. It was building and running fine with VS7. I've also migrated to the latest Platform SDK (Windows Server 2003 R2) and DirectX SDK(April 2006)

In tchar.h, I get the error "Need to include strsafe.h after tchar.h" even though I've included strsafe.h. I commented the following lines from tchar.h to make it compile. I know it's an ugly solution - what should I do

#ifdef _STRSAFE_H_INCLUDED_
#error Need to include strsafe.h after tchar.h
#endif

Even after doing this, I get some "unresolved external symbol" linker errors for functions that are clearly defined in Baseclasses (I'm linking to strmbase.lib), namely,

CSource::FindPin(unsigned short const *,struct IPin * *)
long CBaseFilter::JoinFilterGraph(struct IFilterGraph *,unsigned short const *)
long CBaseFilter::QueryVendorInfo(unsigned short * *) CSourceStream::CSourceStream(char *,long *,class CSource *,unsigned short const *) FireWireSourceStream::FireWireSourceStream(long *,class FireWireSourceFilter *,unsigned short const *)
long CSourceStream::QueryId(unsigned short * *)

Has anyone else faced the same problems during migration to VS8


Re: DirectShow Development Problems with moving DirectShow code to VS8

LGS

The two most common problems are:

1) Compiling the filter unicode and the filter ansi (or vice versa)

2) In vs 8, MS changed a default for "Treat wchar_t as Built-In Type". Make sure this setting matches for your filter and the baseclasses as well. Note that the command line and the ui apparently have different defaults!

You might also find this link useful:

http://blogs.msdn.com/mikewasson/archive/2005/05/23/421116.aspx





Re: DirectShow Development Problems with moving DirectShow code to VS8

AshishBhatt_sys

Hi ,

I am Ashish, I have download the source code TightVNC, and I am traying to change some code in that on my pwn pc, then also it doesn't affact the code. It runs as it is as it runs. so, I want to trace the code how it runs and from which class to class flow is moving. So Please help me.






Re: DirectShow Development Problems with moving DirectShow code to VS8

Chris P.

Ashish, you should probably start by asking in an appropriate forum and by starting a new thread. From what I can determine you question has:

a) nothing to do with this thread

b) nothing to do with DirectShow

c) nothing to do with any Microsoft technology






Re: DirectShow Development Problems with moving DirectShow code to VS8

diwakar_pal11

hi
Ashish,from where you got the code, could you give me that link.