Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7594297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:22:52+00:00 2026-05-30T21:22:52+00:00

I am trying to implement watershed image segmentation as said by former programmer in

  • 0

I am trying to implement watershed image segmentation as said by former programmer in :

Watershed using c# or c++

I tried adding FilterGrayToGray.cs code too but i got error of win32.memcpy

The error shows: “The name win32 doesn’t exists in this context”

if we convert Win32.memcpy to Microsoft.Win32.memcpy then it says “memcpy doesn’t exists in the namespace”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:22:53+00:00Added an answer on May 30, 2026 at 9:22 pm

    memcpy isn’t part of the .NET Framework – memcpy is an unmanaged native API that needs to have a p/Invoke definition created. The defination for memcpy must be in a different file.

    See the example below:

    /// <summary>
    /// Windows API functions and structures.
    /// </summary>
    internal static class Win32
    {
        /// <summary>
        /// Copy a block of memory.
        /// </summary>
        ///
        /// <param name="dst">Destination pointer.</param>
        /// <param name="src">Source pointer.</param>
        /// <param name="count">Memory block's length to copy.</param>
        ///
        /// <returns>Return's the value of <b>dst</b> - pointer to destination.</returns>
        ///
        [DllImport( "ntdll.dll", CallingConvention = CallingConvention.Cdecl )]
        public static extern IntPtr memcpy(
            IntPtr dst,
            IntPtr src,
            UIntPtr count );
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying implement the Data transformation using Reflection 1 example in my code.
Trying to implement Piwik using REST API over http but need a little help.
Iam trying to implement a simple JMS(traditional not using springs) code in eclipse using
trying to implement a dialog-box style behaviour using a separate div section with all
Ok well I'm trying implement something similar to the 'undo' function in many image
Found a really nice code for Accordion nav and am trying implement on our
Trying to implement simple error handling without adding buku try / except statements to
Trying to implement the decorator pattern in C# from the code in the Head
I am trying implement Unblock me Puzzle. i want to change image position from
Trying to implement search with Sunspot Gem wich is using Solr.Fulltext search works fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.