Elecard
June 20, 2013, 09:15:20 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compile .NET SDK G4 1.3.1.91015 in Visual Studio 2010  (Read 545 times)
videoam
Newbie
*
Posts: 1


View Profile
« on: June 28, 2012, 06:12:51 pm »

Hi,

Has anyone ever converted the VS2008 projects for the .Net SDK (I have 1.3.1.91015) to be used in VS2010?

I can happily compile them in VS2008 but once the conversion wizard has finished in VS2010, I get 200+ errors for the C++ component.  I am converting my app to .Net 4.0 and this is my last stumbling block.  I can use the .net 2.0 dll's in my app with the appropriate app.config settings but I don't have an app.config at the moment, and I don't want my app to rely on one.

Any help appreciated!

Thanks!
Logged
OlgaM
Elecard Team
*
Posts: 47


View Profile
« Reply #1 on: July 02, 2012, 06:33:27 am »

Dear Steve,
 
The current version: Elecard Codec .NET SDK G4 v. 1.4.111027 has project for VS 2010 as well.
You can purchase it from site or get it free under purchases technical support program.

If you stays on v. 1.3.1.91015 we can recommend you to check the following:
- You should have Windows SDK 7.1 installed on your machine
- Please also make sure that 'Windows SDK 7.1' is set in 'General' tab in project settings for all projects(in DS BaseClasses, Elecard BaseClasses and Sample Applications)
- You should use Debug_MBCS or Release_MBCS in DS BaseClasses to create streambasd.lib and streambase.lib under VS2010.
- You should set the file path to these libraries for each project( Elecard BaseClasses and Sample Applications Projects) and make sure that these projects use exactly these version of libraries.
- 'Character set' should be 'Use Multi-byte character set' in 'General' tab in project settings in all projects(in DS BaseClasses, Elecard BaseClasses and Sample Applications)
- 'Treat wchar_t as built-in type' should be set 'Yes' in 'C/C++'->'Language' tab in project settings in all projects(in DS BaseClasses, Elecard BaseClasses and Sample Applications)
- 'Runtime libraries' should be set to 'MT'(for release) or MTD(for debug) in 'C/C++'->'Code generation' tab in project settings in all projects(in DS BaseClasses, Elecard BaseClasses and Sample Applications)
- Please check that 'Calling Convention' in 'c/c++'->'Advanced' tab is set to 'cdecl'(/GD).

Also check that the following paths is set in VS directories for each project:
Include:
"..\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses"
"..\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\common"
"..\Microsoft SDKs\Windows\v7.1\Include"
Libraries:
"..\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\debug"
"..\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\release"
"..\Microsoft SDKs\Windows\v7.1\Lib"

Also please make the following changes in profile.cpp file:
 change this row: m_KeyName.insert(TMKeyName::value_type(index, NULL));
 
to the following construction:

#if _MSC_VER >= 1600

m_KeyName.insert(TMKeyName::value_type(index, nullptr));

#else

m_KeyName.insert(TMKeyName::value_type(index, NULL));

#endif


If after all these steps you still get problem with compile SDK under VS2010 please write to our technical support(tsup@elecard.ru) and describe what exactly project do you build and what errors do you get.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!