Click here to Skip to main content
15,911,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: API Hooking Pin
Stefan Troschuetz2-Oct-06 3:29
Stefan Troschuetz2-Oct-06 3:29 
QuestionWierd resource disposal? Pin
asator2-Oct-06 3:09
asator2-Oct-06 3:09 
AnswerRe: Wierd resource disposal? Pin
Stefan Troschuetz2-Oct-06 3:27
Stefan Troschuetz2-Oct-06 3:27 
GeneralRe: Wierd resource disposal? Pin
asator2-Oct-06 4:04
asator2-Oct-06 4:04 
GeneralRe: Wierd resource disposal? Pin
Stefan Troschuetz2-Oct-06 5:04
Stefan Troschuetz2-Oct-06 5:04 
GeneralRe: Wierd resource disposal? Pin
asator2-Oct-06 5:40
asator2-Oct-06 5:40 
GeneralRe: Wierd resource disposal? Pin
Stefan Troschuetz2-Oct-06 5:59
Stefan Troschuetz2-Oct-06 5:59 
GeneralRe: Wierd resource disposal? Pin
asator2-Oct-06 6:25
asator2-Oct-06 6:25 
QuestionRe: Wierd resource disposal? Pin
asator2-Oct-06 4:09
asator2-Oct-06 4:09 
AnswerRe: Wierd resource disposal? Pin
Ranjan Banerji2-Oct-06 4:16
Ranjan Banerji2-Oct-06 4:16 
GeneralRe: Wierd resource disposal? Pin
asator2-Oct-06 4:20
asator2-Oct-06 4:20 
GeneralRefreshing... Pin
asator5-Oct-06 6:48
asator5-Oct-06 6:48 
QuestionUsing C# how to strore image in sql2005? Pin
jeya chandran2-Oct-06 3:08
jeya chandran2-Oct-06 3:08 
AnswerRe: Using C# how to strore image in sql2005? Pin
sottos2-Oct-06 3:15
sottos2-Oct-06 3:15 
QuestionNeed help on console application Pin
samaan822-Oct-06 2:37
samaan822-Oct-06 2:37 
AnswerRe: Need help on console application Pin
leppie2-Oct-06 2:39
leppie2-Oct-06 2:39 
GeneralRe: Need help on console application Pin
samaan822-Oct-06 3:34
samaan822-Oct-06 3:34 
Questionadd namespace names to a dropdownlist Pin
playout2-Oct-06 2:26
playout2-Oct-06 2:26 
AnswerRe: add namespace names to a dropdownlist Pin
leppie2-Oct-06 2:38
leppie2-Oct-06 2:38 
GeneralRe: add namespace names to a dropdownlist Pin
playout2-Oct-06 2:57
playout2-Oct-06 2:57 
GeneralRe: add namespace names to a dropdownlist Pin
Stefan Troschuetz2-Oct-06 3:25
Stefan Troschuetz2-Oct-06 3:25 
QuestionSearch Infos in Text File [modified] Pin
sottos2-Oct-06 2:20
sottos2-Oct-06 2:20 
Questionrecognising db errors Pin
honeyman_can2-Oct-06 0:43
honeyman_can2-Oct-06 0:43 
AnswerRe: recognising db errors Pin
Colin Angus Mackay2-Oct-06 2:06
Colin Angus Mackay2-Oct-06 2:06 
QuestionIntegrate C and C# Codes Pin
Cassiopeiaxy2-Oct-06 0:31
Cassiopeiaxy2-Oct-06 0:31 
Hi,

I can current move the cursor to the position by doing in a c# application:

Cursor.Position = new Point(Cursor.Position.X - 0, Cursor.Position.Y - 80);

However, if i run the above codes in a C application, it will give errors. I am developing a C application which is compile and run by using visual studio.net 2005, i cannot add the "using System.Windows.Forms;" to the C application too.

Is there any other method they can perform the above cursor.position function in a C application?

A short sample of the coding:

#include "cv.h"

#include "highgui.h"



#include <ctype.h>

#ifdef _EiC

#define WIN32

#endif

using namespace System::Windows::Forms; <--- when i try to add the namespace, the program have alot of error upon compilation

static CvMemStorage* storage = 0;

static CvHaarClassifierCascade* cascade = 0;

void detect_and_draw( IplImage* image );

Errors Encounter:

error C2061: syntax error : identifier 'namespace'

error C2143: syntax error : ';'

error C2143: syntax error : missing '{' before ':'

error C2059: syntax error: ':'

I can't figure out the problems behind. Can anyone help?


Thanks

Jas

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.