Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Database connection in c# Pin
Ed K22-Apr-03 5:12
Ed K22-Apr-03 5:12 
GeneralRe: Database connection in c# Pin
nthomson22-Apr-03 5:24
nthomson22-Apr-03 5:24 
GeneralRe: Database connection in c# Pin
Ray Cassick22-Apr-03 5:35
Ray Cassick22-Apr-03 5:35 
GeneralRe: Database connection in c# Pin
nthomson22-Apr-03 6:35
nthomson22-Apr-03 6:35 
QuestionAny converters for C++? Pin
Kant22-Apr-03 3:31
Kant22-Apr-03 3:31 
AnswerRe: Any converters for C++? Pin
Stephane Rodriguez.22-Apr-03 4:40
Stephane Rodriguez.22-Apr-03 4:40 
GeneralRe: Any converters for C++? Pin
Kant22-Apr-03 5:09
Kant22-Apr-03 5:09 
GeneralRe: Any converters for C++? Pin
Stephane Rodriguez.22-Apr-03 5:36
Stephane Rodriguez.22-Apr-03 5:36 
Kant wrote:
Yes. Actually I need to convert the existing VC++ project to C#.NET
As I am newbie to C#, it's giving me lot of headaches.


It's good to learn, but unless it's real work, you might uselessly have to cope with structures that in C++ world are tightly coupled with memory and buffers, while .NET and C# in particular provides less access to it. (in practice, you can do anything you want, just like with C++, but you need to go pretty much hardcore and doing so there is no point in doing C# at all).

In case you want to go on with brutal code conversion, don't hesitate to have a look in MSDN first. There are a few interesting type mapping tables to learn.




Kant wrote:
Any samples?

There are simple steps.
- start VS.NET, create a MC++ user library project. Add your code. Get the assembly compiled. Let's call it Assembly1.
- create a C# project, for instance using the Windows Application template. Add a reference to Assembly1, and add using Assembly1; in your code. Doing so, automagically intellisense brings you all types from the Assembly1 metadata. Add code, compile, run. You've got your first language interoped sample! Wink | ;)

A sample of MC++ mix mode ? Nish has one[^] for you.
GeneralRe: Any converters for C++? Pin
Kant22-Apr-03 6:01
Kant22-Apr-03 6:01 
GeneralRe: Any converters for C++? Pin
Alvaro Mendez22-Apr-03 6:10
Alvaro Mendez22-Apr-03 6:10 
GeneralRe: Any converters for C++? Pin
Stephane Rodriguez.22-Apr-03 6:41
Stephane Rodriguez.22-Apr-03 6:41 
GeneralVS .NET Startpage only shows "My Profile" Pin
STW22-Apr-03 0:24
STW22-Apr-03 0:24 
GeneralRe: VS .NET Startpage only shows "My Profile" Pin
Dire_st22-Apr-03 7:40
Dire_st22-Apr-03 7:40 
GeneralExcel 2000 Pin
Marix21-Apr-03 21:06
Marix21-Apr-03 21:06 
GeneralRe: Excel 2000 Pin
Philip Fitzsimons22-Apr-03 2:15
Philip Fitzsimons22-Apr-03 2:15 
GeneralRe: Excel 2000 Pin
Eric Gunnerson (msft)22-Apr-03 11:39
Eric Gunnerson (msft)22-Apr-03 11:39 
GeneralRe: Excel 2000 Pin
Philip Fitzsimons22-Apr-03 11:42
Philip Fitzsimons22-Apr-03 11:42 
GeneralRe: Excel 2000 Pin
Eric Gunnerson (msft)23-Apr-03 11:24
Eric Gunnerson (msft)23-Apr-03 11:24 
GeneralRe: Excel 2000 Pin
Philip Fitzsimons23-Apr-03 23:35
Philip Fitzsimons23-Apr-03 23:35 
QuestionFocusless button? Pin
Steven Behnke21-Apr-03 14:18
Steven Behnke21-Apr-03 14:18 
AnswerRe: Focusless button? Pin
Steven Behnke22-Apr-03 7:02
Steven Behnke22-Apr-03 7:02 
General.config Pin
Kant21-Apr-03 11:48
Kant21-Apr-03 11:48 
GeneralRe: .config Pin
Paresh Gheewala21-Apr-03 12:32
Paresh Gheewala21-Apr-03 12:32 
QuestionWhat does "event" do to a delegate member? Pin
Alvaro Mendez21-Apr-03 11:38
Alvaro Mendez21-Apr-03 11:38 
AnswerRe: What does "event" do to a delegate member? Pin
Eric Gunnerson (msft)21-Apr-03 13:18
Eric Gunnerson (msft)21-Apr-03 13:18 

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.