|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
calling C dll from VB.NETapplication make a call to C dll to establish a session and inturn the C dll returns a pointer to pointer. function declarations Declare Function C_sendData Lib "dataProcess" (ByRef ppControlArea as integer, ByRef data() as Byte) as integer Declare Function C_startSession Lib "dataProcess" (ByRef ppControlArea as integer) as integer 'first call dim ppControlAres as integer C_startsesion (ppControlArea) <- this call creates a session and returns ppControlArea (pointer to pointer) 'second call dim mydata () as byte 'initialize the mydata with some data C_SendData (ppControlArea, data) <- calling this function through an exception with error "Object reference not set to an instance of an object" I tried everything I know. Any help is appreciated... >I tried everything I know. Any help is appreciated... Can you post the C function signatures? Passing the mydata array ByRefis probably not the right thing to do. Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.
vb.net, so slow !!!???
How about: How do I attach a file to an email w/MailTo: ? Collections Access rights for a web application to read a text file on a different server strong reference between objects in different assemblies TCP send & Recieve How to display Printer Settings Dialogue? Creating Worksheets from Existing Excel Instances in VB.NET? Appending two data tables besides mailto: another way to launch mail program and populate fields? |
|||||||||||||||||||||||