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

I have an SQL Express file with a single table People. People has six
When trying to download SQL Server to learn database development on Windows, the user
I would like an application which is not readily apparent to casual perusal of
First I have a pretty casual problem, vertically centering an image inside a list.
I'm trying to run an application with java 1.7.2 and its complaining it needs
I have a question about the listings package . Do you know how to
I wrote a little (like 40 lines little) Winforms application with VB.net in Visual
I'm looking for advice on good options to deploy Java applications on end user
i'm looking for a customized RBAC solution for an application i am making. The
Current versions of MediaWiki have the front page accessible via http://www.example.com/wiki/index.php/Main_Page Instead of the

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.