User Profile

Collapse

Profile Sidebar

Collapse
jmcpeak
jmcpeak
Last Activity: Dec 14 '09, 05:49 PM
Joined: Mar 14 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jmcpeak
    replied to PInvoke void * parameter
    I got it working, needed to change a setting - set the trigger mode to internal. Using fixed worked great.
    See more | Go to post

    Leave a comment:


  • jmcpeak
    replied to PInvoke void * parameter
    Please use
    Code:
     ...
    tags

    The real issue I can't solve is how to pass a void * as a parameter to the dll.
    Code:
    [DllImport( "DCamLIB.dll" )]
    private unsafe static extern bool DcamCapture( int* imageBuffer, Int32 bufferSize );
    
    public unsafe void CaptureReverseX( Int32 bufferSize )
    {
    	fixed ( int* buf = new int[ bufferSize ] )
    	{
    		if ( !DcamCapture( ImageBuffer, bufferSize
    ...
    See more | Go to post
    Last edited by tlhintoq; Mar 14 '09, 07:22 PM. Reason: [CODE] ... [/CODE] tags

    Leave a comment:


  • jmcpeak
    replied to PInvoke void * parameter
    > What kind of camera is this?
    X-Ray

    > Are you receiving a buffersize from the above function that makes sense for the size of the image you are expecting?
    Yes, it is is returning the correct width and height variables - 1000 x 1500
    See more | Go to post

    Leave a comment:


  • jmcpeak
    started a topic PInvoke void * parameter

    PInvoke void * parameter

    Here is the unmanged definition:
    Code:
    //============================================================================
    // DcamCapture()
    // Start to acquire one image from the camera.
    // ---------------------------------------------------------------------------
    // [Argument]
    // pImageBuff : /O: Specify the start address in the buffer where image
    // data is to be stored.
    // nBuffSize :I/ : Specify
    ...
    See more | Go to post
    Last edited by tlhintoq; Mar 14 '09, 04:48 PM. Reason: Please use [CODE] ... [/CODE] tags
No activity results to display
Show More
Working...