MikhailGol

Hi,

I keep getting compilier warnings like this:

Warning 12 At least one of the arguments for 'COWSplineCalc.CalcSpline' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate.

The warnings started after I moved the project to VS2005 running under Vista.

I've found no documentation on the warning. Can I suppress it somehow

Any input would be appreciated. Thanks.

Mikhail



Re: Visual C++ General Compiler Warning ""At least one of the arguments for ... can not be marshaled"

vito1281

You can suppress warnings by using:

#pragma warning disable 12





Re: Visual C++ General Compiler Warning ""At least one of the arguments for ... can not be marshaled"

MikhailGol

The problem is that that warning doesn't have a number... I can not suppress it using pragma. Of course I can suppress all warnings, but it's a bad-bad idea.

(sorry, in my message "12" was just the count number (I also have this same warning number 13,14, etc))

Mikhail





Re: Visual C++ General Compiler Warning ""At least one of the arguments for ... can not be marshaled"

MikhailGol

too bad....

nobody answers...





Re: Visual C++ General Compiler Warning ""At least one of the arguments for ... can not be marshaled"

Prasad Somwanshi

You can post some code of interface declaration in question.



Re: Visual C++ General Compiler Warning ""At least one of the arguments for ... can not be marshaled"

Damien Watkins - MSFT

Hello

Re: Compiler Warning ""At least one of the arguments for ... can not be marshaled"

I am going to mark this thread as answered since you have not followed up with any further information on your problem as requested - I assume you solved the problem yourself or one of the suggestions in this thread helped you solved the problem. If you have a solution you could post it so others can find it. If you do not have a solution then please submit further details and then mark the thread as unanswered.

Thanks

Damien