Search Result

Collapse
5 results in 0.0040 seconds.
Keywords
Members
Tags
dllimport
  •  

  • GigaKatowice
    started a topic Using C++ library in C#

    Using C++ library in C#

    Hi.

    I need help with my code.
    I'm trying to run unmanaged code from my C# code.


    C++ Code
    Code:
    Result_t oemGetImage(PBYTE pImageBuffer,
                         PDWORD pdwSize, WORD nTop,
                         WORD nLeft, WORD nRight,
                         WORD nBottom, WORD nSkip,
                         WORD nBits, FileFormat_t nFormat,
                         WORD nWhiteValue,
    ...
    See more | Go to post

  • Great Difficulty calling c++ dll from c#

    I am using c# 2010 and need to call a method in an old c++ dll

    It keeps giving me the following error:
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

    The function I am trying to call in the dll is

    void handle_str_ni(L PCSTR lpcstrCommandLi ne);

    So far this is my code :
    Code:
    [DllImport((@"c:\Mydll.dll"),
    ...
    See more | Go to post

  • rorybr
    started a topic import unmanaged dll into c sharp

    import unmanaged dll into c sharp

    hi,
    i'm trying to import an unmanaged dll into a c# application. The dll is given to me but i'm new with dll import thing and having some troubles importing it. Dll comes with a pdf file which describes the functions but all parameters and types are c++ type and i need to write them as c# types. i tried "Dllimport" but i think i couldn't write the correct parameter types. Functions use handles and pointers which doesn't make it easier...
    See more | Go to post
    Last edited by tlhintoq; Apr 25 '10, 04:41 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • afmfpt
    started a topic How to import a C# DLL using the ctypes module?

    How to import a C# DLL using the ctypes module?

    Hello,

    I've a C# DLL named SoundLogDLL.dll



    I used this code to call the function run() from my dll but it gives this error:


    What do I need to do for the methods of my dll became visible in python?...
    See more | Go to post

  • alag20
    started a topic Calling C# Callbacks from C++ dll?

    Calling C# Callbacks from C++ dll?

    Hi Guys,
    I have a C++ third party dll which does some algorithms for us and seldomly passes data back. Now we were wanting to use DLLIMPORT from c# to utilize these functions from C++ but are having some issues.

    Here are the function declaration in C++.

    Code:
    int DoWSUpdate(LPSTR lpName,LPSTR lpPath,LPSTR lpBinPath,MyCallBack pMyCallBack) 
    
    void (CALLBACK *MyCallBack)(DWORD dStatus,LPSTR
    ...
    See more | Go to post
Working...