Warning C4793 and #pragma unmanaged

Hi Flap!

cite="mid3d543237-1d18-4c39-b3c4-f498b8df37da@discussions.microsoft.com"

type="cite">

I'm getting the following warning in an header file included

within a #pragma unmanaged block:

1>c:\devel\DXSDK\SAMPLES\C++\DirectShow\BaseClasses\wxutil.h(384)

: warning C4793: '__asm' : causes native code generation for function

'void *memchrInternal(const void *,int,size_t)'

1>

c:\devel\DXSDK\SAMPLES\C++\DirectShow\BaseClasses\wxutil.h(379) : see

declaration of 'memchrInternal'
Given that no managed code should be generated because

of the #pragma unmanaged directive I shouldn't get this warning, right?

It makes me think that somehow the compiler is trying to generate

managed code for code that I would want to stay native.

It seems to be a bug...

Because the warning should never be displayed! (in the documentation it

is stated that it is "off by default".

And the second bug is that it should not be displayed, because you

explicit said that you want unmanged code!

Please report it athttp://lab.msdn.microsoft.com/ProductFeedback/

And the post the link to the bug-report here in this thread (and mark

it as answered).

--

Greetings

Jochen
My blog about Win32 and .NET

http://blog.kalmbachnet.de/

[1836 byte] By [MVPUser] at [2007-12-16]
# 1

I'm getting the following warning in an header file included within a #pragma unmanaged block:

1>c:\devel\DXSDK\SAMPLES\C++\DirectShow\BaseClasses\wxutil.h(384) : warning C4793: '__asm' : causes native code generation for function 'void *memchrInternal(const void *,int,size_t)'

1> c:\devel\DXSDK\SAMPLES\C++\DirectShow\BaseClasses\wxutil.h(379) : see declaration of 'memchrInternal'

Given that no managed code should be generated because of the #pragma unmanaged directive I shouldn't get this warning, right? It makes me think that somehow the compiler is trying to generate managed code for code that I would want to stay native.

Thanks,
Flavio.

Flap at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

I've posted bug report FDBK25930.

Thanks,
Flavio.

Flap at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...