how can I call into a csharp dll from delphi

I need to call a procedure in a c-sharp library from delphi.  Project compiles, but causes an Access Violation when executed, before the project code is run (during load).
Here is my external declaration in delphi:

procedure OpenRxEntryForm(iToken: Integer; Prescription_id: AnsiString ) stdcall; external 'RxTracker.dll';
TheMatrixDuckAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ephraim WangoyaCommented:
First get rid of the string


procedure OpenRxEntryForm(iToken: Integer; Prescription_id: PChar ) stdcall; external 'RxTracker.dll';
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TheMatrixDuckAuthor Commented:
sorry... got rerouted to another issue.  Please leave this question open, I shall return.
0
TheMatrixDuckAuthor Commented:
ReRouted to another project branch.  Haven't tested the solution yet, but the answer is at least a partial solution.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.