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 7594063
In Process

The Archive Base Latest Questions

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

I got a friend who made some cool functions dealing with encryption and security

  • 0

I got a friend who made some cool functions dealing with encryption and security that he made me in C++. He then used themidia to make it more secure and such.

He gave me the DLL and I used a function finder to find all the functions. But here is the problem.

All functions have an @ symbol in them, and when in C# I use a DLL important it says can’t compile code for it is a syntax error on the @. For example a function name might be “CheckPassword_@12” which is weird, but C# wont allow me to have that.

Is there something I am missing, he wont give me a unsecured DLL for he does not want people if they crack my application to be able to modify his DLL. I checked multiple applications and did stuff my self but all the functions names are coming up with a @.

Thanks!

  • 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:19:16+00:00Added an answer on May 30, 2026 at 9:19 pm
    [DllImport("security.dll", CallingConvention=CallingConvention.StdCall, ExactSpelling=true)]
    private static extern IntPtr _passwordValid@8(string string_0, string string_1);
    

    That makes more sense than your question. The StdCall calling convention puts an underscore before the identifier, a @n after the identifier. This name decoration helps to catch declaration errors in a C program. You simply omit them, the pinvoke marshaller can reverse-engineer the property export name. StdCall is the default so this is good enough:

    [DllImport("security.dll")]
    private static extern IntPtr passwordValid(string string_0, string string_1);
    

    Btw, I meant to say EntryPoint instead of ExactSpelling in my comment.

    One more detail, you may need to use the CharSet property in the declaration. Whether you need it depends on the string type that the DLL author used. A DLL writer normally also supplies a .h file with the function declarations. Such an .h file would also say passwordValid and not _passwordValid@8. Do make sure you have the legal right to use this DLL, not having such a header file is very unusual.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
I've got a little game that a friend and I are writing in Java.
I got a old used picdem board for free from my friend and I
A friend of mine got bitten by the all too famous 'anonymous functions in
I've got friends who's telling me to change some code. One of them is
I have a friend who works at a job that has no planned upgrade
I got a request from my friend to write a php booking system module
Got a class that serializes into xml with XMLEncoder nicely with all the variables
I just got referred to stackoverflow by a friend here to help with a
I got a Windows Phone 7 application project from a friend. Now I downloaded

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.