Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C++ Programming

VC++ ("include" problemand directx,platform SDK


i included the following line to VC++ after i installed the directx
SDK and platform SDK.
#include "DShow.h"

i configured c directories for the include and lib to both directx SDX
and platform SDK.
now just after i added the above line i got this messages:

D:\Program\Microsoft DirectX SDK (April 2007)\Include\strsafe.h(221) :
error C3641: 'StringCchCopyA' : invalid calling convention '__stdcall
' for function compiled with /clr:pure or /clr:safe
D:\Program\Microsoft DirectX SDK (April 2007)\Include\strsafe.h(222) :
error C3641: 'StringCchCopyW' : invalid calling convention '__stdcall
' for function compiled with /clr:pure or /clr:safe
D:\Program\Microsoft DirectX SDK (April 2007)\Include\strsafe.h(333) :
error C3641: 'StringCbCopyA' : invalid calling convention '__stdcall '
for function compiled with /clr:pure or /clr:safe

actually i got lots of them but i copied-pasted only three.

what is the problem?

On 2007-06-03 22:57, untitled wrote:

Your question is off topic since it does not deal with anything
concerning the C++ language, in the future try a group dedicated to your
platform/library (VC++ and DirectX) for better answers. For some
suggestions of which groups might be right take a look in the FAQ:
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9 some
quick searching in the microsoft.public.* groups should give you some
more options.

Back to your question: Your problem is that you have created a managed
project (or changed some options manually) and this have the /clr:pure
or /clr:safe switch passed to the compiler. This means that any code
declared as using the stdcall calling convection (about all C++ code out
there) will not be allowed. Create a new, native project or turn of the
switch and it should work.

--
Erik Wikstrm

On Jun 3, 11:25 pm, Erik Wikstrm <Erik-wikst@telia.com> wrote:

thanks alot! really appriciate it, here is the link about the walk
through to fix it:
http://msdn2.microsoft.com/en-us/library/ms235211(VS.80).aspx

you saved the day :)

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc