Advertisement

07.19.2007 at 05:58AM PDT, ID: 22706757
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Clarion dll gives a "Attempted to read or write protected memory" error

Tags: protected, read, write, memory, attempted
Hi,
I've a .DLL file that's made with Clarion. This DLL file does some things and returns a string value.
I want to use some methods of this DLL in my C# program. So I used dllimport with the methods I want to use.
So far so good, but sometimes I get a "Attempted to read or write protected memory" error. Not all the time.

I am not sure if I'm using the DLL import right in this case.
This is my dllimport syntax:
[DllImport("C:\\callcw.dll", EntryPoint = "getKlantbyID")]
public static extern string getKlantbyID(string companyid, string klantid);

and this is the way i call this method:
string xmlPath = getKlantbyID(companyid, klantnummer).ToString();
companyid and klantnummer are both of the type 'string'.

This is the function prototype in Clarion:
getKlantbyID(Long, Long),String,Pascal
The variable it returns is of the type 'CString(500)'

I'm not sure but I think the error has to do with the way I'm using the DLL in C#.
Start your free trial to view this solution
Question Stats
Zone: Database
Question Asked By: rveede
Solution Provided By: Computer101
Participating Experts: 2
Solution Grade: A
Views: 44
Translate:
Loading Advertisement...
07.19.2007 at 06:36AM PDT, ID: 19521711

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.19.2007 at 06:46AM PDT, ID: 19521812

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.19.2007 at 06:51AM PDT, ID: 19521849

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.19.2007 at 06:53AM PDT, ID: 19521868

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.19.2007 at 06:59AM PDT, ID: 19521920

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.19.2007 at 07:06AM PDT, ID: 19521998

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.19.2007 at 07:47AM PDT, ID: 19522435

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.20.2007 at 12:40AM PDT, ID: 19529310

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.20.2007 at 07:25AM PDT, ID: 19531269

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.22.2007 at 11:49PM PDT, ID: 19545446

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 06:24AM PDT, ID: 19547098

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 06:55AM PDT, ID: 19547382

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 07:23AM PDT, ID: 19547648

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.15.2007 at 03:07AM PDT, ID: 20076805

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.21.2007 at 06:10PM PDT, ID: 20119913

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29