Re: Help writing a new filter



emetress wrote:

I'm just saying that I'm having errors that I can't fix. And when I fix
it some days later then I get another error and I have to ask here
again and for have a minimum possibility for an easy piece of code
working I have to be writing and fixing 1 month ... I think that maybe
someone in 5 minutes can fix all the errors I get and I don't know how
to solve.

The problem with this approach is that if you rely on someone else to fix all your errors you havent learnt how to fix them yourself. Its vital you learn how to overcome these problems yourself or you will always be limited by them. Consider your problem below, if we just told you the correct syntax for the array declaration you require and you didnt bother to learn about c# syntax then every single c# syntax error you ever got would result in a newsgroup post. This would be completely tedious for both you and the newsgroup.

But if you find that not allright it's ok.
I have the following errors:

D:\Alex\curro\Directshow\entender
filtros\CsSobelV2\MySobelV2\MySobel.cs(193,21): error CS0650: Syntax
error, bad array declarator. To declare a managed array the rank
specifier precedes the variable's identifier. To declare a fixed size
buffer field, use the fixed keyword before the field type.

in this line (I want to declare an array of 9 elements of type int):

int* buffer_mdn [9];


When I fix this I will post more errors.
Thank you


The answer is right there in the error message. Your syntax is wrong. One place to learn the correct syntax would be the the c# programming reference or maybe a book on c# within that you can learn how to declare your array using the correct syntax.

Bunny

PS: this newsgroup is about DirectShow programming not about c# syntax, learning to post problems in the appropriate newsgroup would be sensible to.

.



Relevant Pages

  • Re: Declare an array parameter to be const?
    ... As long as you are using this syntax, it can't be done in C++. ... that what you declare in this case is not an array but a mere ... and then add const qualifications as you please ...
    (comp.lang.cpp)
  • Re: Newbie: Creating a multi-dimensional array, whose bounds are set by variables
    ... > You should declare your array as: ... Microsoft MVP -- ASP/ASP.NET ... Please reply to the newsgroup. ...
    (microsoft.public.scripting.vbscript)
  • Re: Sytax Error
    ... > You cannot declare a sub with a parameter that's an array element. ... > quicker response by posting to the newsgroup. ...
    (microsoft.public.scripting.vbscript)
  • Simple Question - Passing Arrays to Functions
    ... My knowledge of managed C++ syntax is ... This needs to be a reference parameter so the ... function can change the contents of the array and give it back to the ... How should I declare this array parameter in the managed C++ function? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: find closest item in keyed collection
    ... Why would you declare an array of strings with that syntax? ...
    (microsoft.public.dotnet.languages.csharp)

Loading