Click here to Skip to main content
14,638,401 members
Home » Discussions » Managed C++/CLI
   

Managed C++/CLI

 
QuestionRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan4-Mar-19 21:51
mveRichard MacCutchan4-Mar-19 21:51 
AnswerRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__12-Mar-19 20:45
MemberAnurag__12-Mar-19 20:45 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan12-Mar-19 22:20
mveRichard MacCutchan12-Mar-19 22:20 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__14-Mar-19 21:13
MemberAnurag__14-Mar-19 21:13 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan14-Mar-19 23:05
mveRichard MacCutchan14-Mar-19 23:05 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__14-Mar-19 23:26
MemberAnurag__14-Mar-19 23:26 
NewsC++/CLI + /std:c++latest is broken in VS 2017 15.9.6 Pin
John Schroedl14-Feb-19 4:22
professionalJohn Schroedl14-Feb-19 4:22 
Questionwhere to include new class in c# , windows forms, visual studio Pin
Member 1412466126-Jan-19 5:50
MemberMember 1412466126-Jan-19 5:50 
Hi,
I am working on some examples of my own and now looking to include a new class for my Banking transactions.

Seems like I am doing something in the wrong place etc.
I typed in the new code ahead of the standard code created by Visual Studio (17) (I didn't add an item). The information I wanted to create appears in the right hand window CLASS VIEW but I get the errors.
using System.Windows.Forms;
public class transactiondata
{
    public DateTime transDT;
    public string transtext;
    public double transRECD;
    public double transPAID;
    public string transFlag;
}
//parameterised Constructor
public transactiondata(DateTime transDT, string transtext, double transRECD, double transPAID, string transFlag)
{
    this.transDT = transDT;
    this.transtext = transtext;
    this.transRECD = transRECD;
    this.transPAID = transPAID;
    this.transFlag = transFlag;
    return;
}
namespace Santander01
{  
    public partial class Form1 : Form
    {
        public Form1()


CLASS VIEW
shows the class and items above
THE ERROR
1>------ Build started: Project: Santander01, Configuration: Debug Any CPU ------
1>C:\Users\HOME\Documents\Visual Studio 2017\Projects\Santander01\Santander01\Form1.cs(19,8,19,23): error CS0116: A namespace cannot directly contain members such as fields or methods
1>C:\Users\HOME\Documents\Visual Studio 2017\Projects\Santander01\Santander01\For

Any help appreciated
AnswerRe: where to include new class in c# , windows forms, visual studio Pin
Richard MacCutchan8-Feb-19 3:03
mveRichard MacCutchan8-Feb-19 3:03 
SuggestionRe: where to include new class in c# , windows forms, visual studio Pin
Richard Deeming8-Feb-19 6:15
mveRichard Deeming8-Feb-19 6:15 
GeneralRe: where to include new class in c# , windows forms, visual studio Pin
Richard MacCutchan8-Feb-19 22:40
mveRichard MacCutchan8-Feb-19 22:40 
QuestionHow to format DATETIME Pin
Member 1412466121-Jan-19 0:56
MemberMember 1412466121-Jan-19 0:56 
AnswerRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 1:57
mveRichard MacCutchan21-Jan-19 1:57 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 2:42
MemberMember 1412466121-Jan-19 2:42 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 2:44
mveRichard MacCutchan21-Jan-19 2:44 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:30
MemberMember 1412466121-Jan-19 3:30 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 3:48
mveRichard MacCutchan21-Jan-19 3:48 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:57
MemberMember 1412466121-Jan-19 3:57 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 4:52
mveRichard MacCutchan21-Jan-19 4:52 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 6:08
MemberMember 1412466121-Jan-19 6:08 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 6:24
mveRichard MacCutchan21-Jan-19 6:24 
Questionserial port, threads, events Pin
jeff rhodes 1240020410-Jan-19 20:30
Memberjeff rhodes 1240020410-Jan-19 20:30 
AnswerRe: serial port, threads, events Pin
Victor Nijegorodov11-Jan-19 3:28
MemberVictor Nijegorodov11-Jan-19 3:28 
GeneralRe: serial port, threads, events Pin
jeff rhodes 1240020411-Jan-19 16:51
Memberjeff rhodes 1240020411-Jan-19 16:51 
GeneralPlease Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
John Schroedl3-Jan-19 2:13
professionalJohn Schroedl3-Jan-19 2:13 

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.