Click here to Skip to main content
16,004,887 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I create a var that doesn't get destroyed after exiting the method? Pin
Nader Elshehabi20-Jul-06 22:33
Nader Elshehabi20-Jul-06 22:33 
QuestionC# to Excel Pin
aaraaayen20-Jul-06 19:56
aaraaayen20-Jul-06 19:56 
AnswerRe: C# to Excel Pin
WillemM20-Jul-06 20:58
WillemM20-Jul-06 20:58 
AnswerRe: C# to Excel Pin
Nader Elshehabi20-Jul-06 22:46
Nader Elshehabi20-Jul-06 22:46 
GeneralRe: C# to Excel Pin
aaraaayen20-Jul-06 23:49
aaraaayen20-Jul-06 23:49 
GeneralRe: C# to Excel Pin
Nader Elshehabi21-Jul-06 3:26
Nader Elshehabi21-Jul-06 3:26 
AnswerRe: C# to Excel Pin
stancrm21-Jul-06 1:38
stancrm21-Jul-06 1:38 
QuestionIn C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx20-Jul-06 17:43
dfbx20-Jul-06 17:43 
i have a .h file like below.
how can i use it in C#?
//---------------------------------------------------------------

// AVEControl.h: interface for the AVEControl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AVECONTROL_H__4E171B4B_A11B_49F1_B41C_5F4A31B5CF08__INCLUDED_)
#define AFX_AVECONTROL_H__4E171B4B_A11B_49F1_B41C_5F4A31B5CF08__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifdef DEVICECONTROL_EXPORTS
#define DEVICECONTROL_API __declspec(dllexport)
#else
#define DEVICECONTROL_API __declspec(dllimport)
#endif

typedef HRESULT (*AVECALLBACK) (PBYTE pbData, LONG lDataLength);

#define E_DEVICE_NOT_READY 0xB0004001L

class DEVICECONTROL_API AVEControl
{
public:
HRESULT StartRecordWithoutPreview(HWND hWndCap, CString FileName, __int64 pFileLength, UINT pFileMessage, BOOL pShowSetting = TRUE);
HRESULT StartRecordWithPreview(HWND hWndCap, RECT rc, CString FileName, __int64 pFileLength, UINT pFileMessage, BOOL pShowSetting = TRUE);
HRESULT StartPreview(HWND hWndCap, RECT rc);
HRESULT SetVideoClippingWindow(HWND hwnd);
HRESULT SetCallback(AVECALLBACK Callback);
HRESULT GetVideoStatus(PUCHAR pSta);
HRESULT SetVideoPosition(LPRECT lpSRCRect, LPRECT lpDSTRect);
void GetCurrentImage(CString BmpFileFullName);
BOOL IsGraphRunning(void);
HRESULT StopGraph(void);
HRESULT ApplySettings(CString IniFileFullName);
HRESULT SetVideoProcAmp(long Property, long Value);
HRESULT GetVideoProcAmp(long Property, long* Value);
HRESULT GetEvent(long* EventCode, LONG_PTR* Param1, LONG_PTR* Param2, long msTimeout);
HRESULT SetNotifyWindow(OAHWND hwnd, long lMsg, LONG_PTR lInstanceData);
HRESULT InitDeviceControl(void);
AVEControl();
virtual ~AVEControl();

};

#endif // !defined(AFX_AVECONTROL_H__4E171B4B_A11B_49F1_B41C_5F4A31B5CF08__INCLUDED_)

AnswerRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
Andrei Ungureanu20-Jul-06 19:47
Andrei Ungureanu20-Jul-06 19:47 
GeneralRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx20-Jul-06 20:37
dfbx20-Jul-06 20:37 
AnswerRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
Andrei Ungureanu20-Jul-06 22:35
Andrei Ungureanu20-Jul-06 22:35 
GeneralRe: In C# ,How can i use a C++ DLL with a class being defined in head file. Pin
dfbx23-Jul-06 16:21
dfbx23-Jul-06 16:21 
QuestionHow to support right-click *on* WinForms context menu items? Pin
cpeterso20-Jul-06 15:07
cpeterso20-Jul-06 15:07 
AnswerRe: How to support right-click *on* WinForms context menu items? Pin
Judah Gabriel Himango20-Jul-06 16:12
sponsorJudah Gabriel Himango20-Jul-06 16:12 
AnswerRe: How to support right-click *on* WinForms context menu items? Pin
Nader Elshehabi20-Jul-06 22:40
Nader Elshehabi20-Jul-06 22:40 
QuestionMy ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1320-Jul-06 14:17
tedhill1320-Jul-06 14:17 
AnswerRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
Andrei Ungureanu20-Jul-06 19:52
Andrei Ungureanu20-Jul-06 19:52 
GeneralRe: My ASP.NET 2.0 Web Pages do not run inside IIS Pin
tedhill1323-Jul-06 9:23
tedhill1323-Jul-06 9:23 
QuestionPictureBox in mdi form Pin
Saamir20-Jul-06 11:32
Saamir20-Jul-06 11:32 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 12:50
Ed.Poore20-Jul-06 12:50 
QuestionRe: PictureBox in mdi form Pin
Saamir20-Jul-06 16:45
Saamir20-Jul-06 16:45 
AnswerRe: PictureBox in mdi form Pin
Ed.Poore20-Jul-06 21:07
Ed.Poore20-Jul-06 21:07 
Question.insert is inserting 2 entries instead of one... please help. Pin
jaman4dbz20-Jul-06 11:02
jaman4dbz20-Jul-06 11:02 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
Ed.Poore20-Jul-06 12:48
Ed.Poore20-Jul-06 12:48 
AnswerRe: .insert is inserting 2 entries instead of one... please help. Pin
Alexander Wiseman20-Jul-06 13:33
Alexander Wiseman20-Jul-06 13:33 

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.