Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3698422
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:58:46+00:00 2026-05-19T04:58:46+00:00

A causal VC++ user here. I have started a ‘Windows Forms Application’ project in

  • 0

A causal VC++ user here.

I have started a ‘Windows Forms Application’ project in VC 2010 express. When I double clicked on a dummy button on a form, it takes me to an editor windows and jumps right into this piece of code:

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
            // do excel
         }
};

Question:

1) I wonder what does the “^” here means?

2) Why does this piece of code live in a header file (.h)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:58:46+00:00Added an answer on May 19, 2026 at 4:58 am

    This is C++/CLI. This allow accessing .NET (CLI) object from C++.

    1. The ^ means this is a object handle (the usual way of passing data in C#). See the wikipedia page for some brief idea.

    2. Why in a .h file? In C/C++, you can put code in header file. Just putting prototype is just a matter of style. There are no syntax enforcement of this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems rather common (around here, at least) for people to recommend SVN to
I wrote a little (like 40 lines little) Winforms application with VB.net in Visual
In Snow Leopard, I want to trigger a script/code whenever a user duplicates a
Current versions of MediaWiki have the front page accessible via http://www.example.com/wiki/index.php/Main_Page Instead of the
Please help me solve my big problem. in my on-line shopping project i created
I'm working on a casual game on XNA with the intention of deploying to
Do we create services when we write programs, or are they commodities? Are we
Preface : I'm honestly not sure if this should be on StackOverflow, SuperUser or
Excuse me for my poor English, that is not my native language. I'm a
I'm looking for a WPF Gradient Picker example and source code. The goal is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.