Click here to Skip to main content
15,891,821 members
Home / Discussions / C#
   

C#

 
QuestionProblem linking with C++ function Pin
Alan Balkany14-Apr-09 8:01
Alan Balkany14-Apr-09 8:01 
AnswerRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 8:12
Luc 64801114-Apr-09 8:12 
GeneralRe: Problem linking with C++ function Pin
Alan Balkany14-Apr-09 8:25
Alan Balkany14-Apr-09 8:25 
AnswerRe: Problem linking with C++ function Pin
Alan Balkany14-Apr-09 8:31
Alan Balkany14-Apr-09 8:31 
GeneralRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 8:42
Luc 64801114-Apr-09 8:42 
GeneralRe: Problem linking with C++ function Pin
Alan Balkany14-Apr-09 8:46
Alan Balkany14-Apr-09 8:46 
GeneralRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 9:36
Luc 64801114-Apr-09 9:36 
GeneralRe: Problem linking with C++ function Pin
Alan Balkany14-Apr-09 10:00
Alan Balkany14-Apr-09 10:00 
Thanks again for the help Luc! Your code looks perfect. This is what I tried to do with the ref parameter.

I've been experimenting, and taking out the EntryPoint clause allowed the linker to find the function:

[DllImport("vdrdll.dll")]
static unsafe extern void drawMarkupOnLine(int jobId, int lineNumber, short* line, int drawMode);

I don't understand why this worked. Now I'm getting a read/write-protected-memory exception, but this may just be a "normal" bug.
GeneralRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 10:19
Luc 64801114-Apr-09 10:19 
GeneralRe: Problem linking with C++ function Pin
Alan Balkany14-Apr-09 10:35
Alan Balkany14-Apr-09 10:35 
GeneralRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 10:57
Luc 64801114-Apr-09 10:57 
GeneralRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 11:10
Luc 64801114-Apr-09 11:10 
GeneralRe: Problem linking with C++ function Pin
Alan Balkany14-Apr-09 11:20
Alan Balkany14-Apr-09 11:20 
GeneralRe: Problem linking with C++ function Pin
Luc 64801114-Apr-09 11:22
Luc 64801114-Apr-09 11:22 
QuestionWindows Mobile USB Port Pin
Justin Talley14-Apr-09 6:57
Justin Talley14-Apr-09 6:57 
AnswerRe: Windows Mobile USB Port Pin
Giorgi Dalakishvili14-Apr-09 8:15
mentorGiorgi Dalakishvili14-Apr-09 8:15 
GeneralRe: Windows Mobile USB Port Pin
Justin Talley15-Apr-09 6:44
Justin Talley15-Apr-09 6:44 
Questionhow to write '&' in xml Pin
novhard14-Apr-09 6:46
novhard14-Apr-09 6:46 
AnswerRe: how to write '&' in xml Pin
0x3c014-Apr-09 6:53
0x3c014-Apr-09 6:53 
AnswerRe: how to write '&' in xml Pin
Jimmanuel14-Apr-09 8:12
Jimmanuel14-Apr-09 8:12 
GeneralRe: how to write '&' in xml Pin
0x3c014-Apr-09 10:17
0x3c014-Apr-09 10:17 
GeneralRe: how to write '&' in xml Pin
Jimmanuel14-Apr-09 10:40
Jimmanuel14-Apr-09 10:40 
GeneralRe: how to write '&' in xml Pin
novhard14-Apr-09 12:38
novhard14-Apr-09 12:38 
QuestionHow to develop a Addin for my own Application Pin
MartinMueller14-Apr-09 6:12
MartinMueller14-Apr-09 6:12 
AnswerRe: How to develop a Addin for my own Application Pin
PIEBALDconsult14-Apr-09 6:38
mvePIEBALDconsult14-Apr-09 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.