Click here to Skip to main content
15,919,422 members
Home / Discussions / C#
   

C#

 
GeneralRe: changing the background colour for specific ListBox Item Pin
Guinness4Strength10-Mar-05 7:35
Guinness4Strength10-Mar-05 7:35 
GeneralRe: changing the background colour for specific ListBox Item Pin
fors4ken14-Mar-05 2:31
fors4ken14-Mar-05 2:31 
Generalat my wit's end: http auth Pin
sharkfish9-Mar-05 19:53
sharkfish9-Mar-05 19:53 
QuestionHow to retrive word under the mouse? Pin
poklag9-Mar-05 19:51
poklag9-Mar-05 19:51 
GeneralC# Button Shortcut Problems Pin
raosundar9-Mar-05 18:14
raosundar9-Mar-05 18:14 
GeneralJoystick Pin
Christian Graus9-Mar-05 16:57
protectorChristian Graus9-Mar-05 16:57 
GeneralRe: Joystick Pin
mav.northwind9-Mar-05 21:45
mav.northwind9-Mar-05 21:45 
GeneralPlatform Invoke (pinvoke) Pin
gmhanna9-Mar-05 16:32
gmhanna9-Mar-05 16:32 
Hi,

I'm trying to call a method that resides in a .DLL that was built with the Watcom C/C++ 10.6 compiler. The method was exported and the compiler gave it the modifies my name with an underscore and stack length. IE: ProcAuthorizationWeb becomes _ProcAuthorizationWeb@4 because it accepts a 4 byte pointer.

I have the following code setup:

[DllImport("mcp.dll")]<br />
		public static extern bool _ProcAuthorizationWeb(ref CreditCardStruct CreditCardStruct);<br />
.....<br />
_ProcAuthorizationWeb(ref CreditCardStruct);<br />


But I get the following error: [EntryPointNotFoundException: Unable to find an entry point named _ProcAuthorizationWeb in DLL mcp.dll.]

The compiler is exporting it as _ProcAuthorizationWeb@4 so I thought I might create an export alias via: '_ProcAuthorizationWeb'='_ProcAuthorizationWeb@4' in the Linker/Binder, but that gave the same error. If I put the @4 at the end of the exported name, the .NET compiler gives me an error.

Any ideas on how to call the method within the .DLL? Is there a way to see the actual exported names in the .DLL?

Thank you,



Glenn
GeneralRe: Platform Invoke (pinvoke) Pin
Chua Wen Ching9-Mar-05 16:47
Chua Wen Ching9-Mar-05 16:47 
GeneralHandle pressing Enter or Tab key in DataGridTextBox Pin
Anonymous9-Mar-05 16:24
Anonymous9-Mar-05 16:24 
GeneralRe: Handle pressing Enter or Tab key in DataGridTextBox Pin
DougW489-Mar-05 17:30
DougW489-Mar-05 17:30 
GeneralRe: Handle pressing Enter or Tab key in DataGridTextBox Pin
Anonymous9-Mar-05 18:01
Anonymous9-Mar-05 18:01 
GeneralHandle pressing Enter or Tab key in DataGridTextBox Pin
Anonymous9-Mar-05 16:23
Anonymous9-Mar-05 16:23 
GeneralVisitors counter Pin
ABBASI_RA9-Mar-05 15:56
ABBASI_RA9-Mar-05 15:56 
GeneralRe: Visitors counter Pin
Christian Graus9-Mar-05 16:53
protectorChristian Graus9-Mar-05 16:53 
GeneralRe: Visitors counter Pin
ABBASI_RA9-Mar-05 17:21
ABBASI_RA9-Mar-05 17:21 
GeneralRe: Visitors counter Pin
Christian Graus9-Mar-05 17:58
protectorChristian Graus9-Mar-05 17:58 
Generaloutlook automation Pin
ppp0019-Mar-05 14:59
ppp0019-Mar-05 14:59 
GeneralRe: outlook automation Pin
Corinna John9-Mar-05 19:49
Corinna John9-Mar-05 19:49 
GeneralRe: outlook automation Pin
ppp0019-Mar-05 20:55
ppp0019-Mar-05 20:55 
Generalhelp in changing background color in listview column Pin
ekynox9-Mar-05 14:59
ekynox9-Mar-05 14:59 
QuestionHow to refresh scroll bar of PrintPreviewControl Pin
sachinkalse9-Mar-05 13:56
sachinkalse9-Mar-05 13:56 
QuestionFill a dataset from different resource? Pin
Anonymous9-Mar-05 13:44
Anonymous9-Mar-05 13:44 
AnswerRe: Fill a dataset from different resource? Pin
Kodanda Pani9-Mar-05 22:52
Kodanda Pani9-Mar-05 22:52 
Questiondata set file list if exist???? Pin
Anonymous9-Mar-05 13:03
Anonymous9-Mar-05 13:03 

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.