BeginPaint ,End Paint functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Every Body,

i try to developin C# application in CASIO IT-500 device. TO make image
capture i need BeginPaint EndPaint functions. Anybody has idea how can we
user this functions.

thanks in advance.
 
What would these functions do? Control (and some derivatives) support
overriding OnPaint, so at the top would likely be "begin" and the bottom
"end".
 
hi, i wantto use this functions capture pictures on device camera. now i'm
try to run Evc++ sample application, in the Camera.h

INT CAMSingleCapture( const TCHAR *, INT, INT); // Captures a single image

function is defined, and i try to use this function like this;

CAMSingleCapture(TEXT(\\My Documents\\Picture.jpg),CAM_JPEG,CAM_VGA);

but evc encountered error like below

error C2664: 'CAMSingleCapture' : cannot convert parameter 1 from 'char
[26]' to 'const unsigned short *'

why, why ???? :)

thanks.
 
Hi ,
thank you for help, in weekend i try to implemet come c# code for beginpaint
functions.

public struct PAINTSTRUCT
{

public IntPtr hdc;
public int fErase;
public System.Drawing.Rectangle rcpaint;
public int fRestore;
public int fIncUpdate;
public Byte[] rgbReserved;
};

[DllImport("coredll", EntryPoint="BeginPaint", CharSet=CharSet.Unicode,
CallingConvention=CallingConvention.Winapi,SetLastError=false)]
public extern static IntPtr BeginPaint(IntPtr hwnd, ref PAINTSTRUCT pps);

[DllImport("coredll", EntryPoint="EndPaint", CharSet=CharSet.Unicode,
CallingConvention=CallingConvention.Winapi,SetLastError=false)]
public extern static IntPtr EndPaint(IntPtr hwnd, ref PAINTSTRUCT pps);

but when try this functions in form Paint evet it gives Not
supportedexception.

thanks in advance.
 
AZlright, now I see the function you were trying to call. I think at this
point it's better to ask what you're trying to achieve overall rather than
trying to debug your P/Invoke call. Exactly what behavior are you trying to
achieve? It may be possible without the call.

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top