• In C++ how can I get the name of a text file and store it in a string?

    I honestly thought that this would be something easy to find but it has not been. So I am seeking help. Thanks in advance.
    I honestly thought that this would be something easy to find but it has not been. So I am seeking help. Thanks in advance.
    2 answers · Programming & Design · 1 week ago
  • Easy C++ MessageBox question?

    Hi guys! I know this is going to be one of those things where it turns out that it was something really small, simple and obvious but I am having trouble making a messagebox in C++ MFC application display a string. Here is what I have: string testVariable = " Testing."; AfxMessageBox(_T("Test message." + testVariable)); I... show more
    Hi guys! I know this is going to be one of those things where it turns out that it was something really small, simple and obvious but I am having trouble making a messagebox in C++ MFC application display a string. Here is what I have: string testVariable = " Testing."; AfxMessageBox(_T("Test message." + testVariable)); I want the messagebox to display both the text and the variable but it only displays the text right now. I know that this is going to be a facepalm moment when I get the answer, oh well. Thank you in advance.
    1 answer · Programming & Design · 2 weeks ago
  • Easy C++ MessageBox question?

    Hi guys! I know this is going to be one of those things where it turns out that it was something really small, simple and obvious but I am having trouble making a messagebox in C++ MFC application display a string. Here is what I have: string testVariable = " Testing."; AfxMessageBox(_T("Test message." + testVariable)); I... show more
    Hi guys! I know this is going to be one of those things where it turns out that it was something really small, simple and obvious but I am having trouble making a messagebox in C++ MFC application display a string. Here is what I have: string testVariable = " Testing."; AfxMessageBox(_T("Test message." + testVariable)); I want the messagebox to display both the text and the variable but it only displays the text right now. I know that this is going to be a facepalm moment when I get the answer, oh well. Thank you in advance.
    2 answers · Programming & Design · 2 weeks ago
  • C++ / MFC Dialog open assistance?

    Hi all. I am in the process of learning C++ / MFC right now and I am doing good but I have hit a snag. I am trying to have a dialog that I created come up on my screen when my program runs. My code builds fine and runs with no errors but the dialog does not appear and I can not figure out why. My setup: Visual Studio 2015 with update 1 Windows 10... show more
    Hi all. I am in the process of learning C++ / MFC right now and I am doing good but I have hit a snag. I am trying to have a dialog that I created come up on my screen when my program runs. My code builds fine and runs with no errors but the dialog does not appear and I can not figure out why. My setup: Visual Studio 2015 with update 1 Windows 10 64 bit Professional. My code:
    1 answer · Programming & Design · 3 weeks ago
  • C# Get; Set; question?

    Hi guys. Still getting my hands dirty with C#. Right now I am studying this statement: public class Department { public long Id { get; set; } public string Name { get; set; } public override string ToString() { return Name; } } Can someone give me a plain english explanation on what the get; set; stuff is and what it does exactly? My textbook... show more
    Hi guys. Still getting my hands dirty with C#. Right now I am studying this statement: public class Department { public long Id { get; set; } public string Name { get; set; } public override string ToString() { return Name; } } Can someone give me a plain english explanation on what the get; set; stuff is and what it does exactly? My textbook does not explain this in a clear way. Thank you.
    2 answers · Programming & Design · 3 months ago
  • C# Container how to add int variable?

    Hi guys. Still new to C#. I do now know how to create a container and add components to it. Is there a way to add a integer to a container? For example, I have: Component Item1 = new Component(); inventory inventoryObject = new inventory(); inventoryObject.iContainer.Add(Item1); This does add a component (Item1) successfully. Is there a way to... show more
    Hi guys. Still new to C#. I do now know how to create a container and add components to it. Is there a way to add a integer to a container? For example, I have: Component Item1 = new Component(); inventory inventoryObject = new inventory(); inventoryObject.iContainer.Add(Item1); This does add a component (Item1) successfully. Is there a way to add a integer though? Thank you in advance.
    2 answers · Programming & Design · 4 months ago
  • C# how to add items to a iContainer?

    Hi guys. I have: interface iContainer { } Is there a way to use a method to add items to it? I can not seem to find this in my textbook. Thank you in advance.
    Hi guys. I have: interface iContainer { } Is there a way to use a method to add items to it? I can not seem to find this in my textbook. Thank you in advance.
    2 answers · Programming & Design · 4 months ago
  • C# how do I change the amount of space between two lines of output?

    Lets say for example I have: Console.WriteLine("This is line 1.\n"); and Console.WriteLine("This is line 2.\n"); How would I increase or decrease the space between those two lines when they are output?
    Lets say for example I have: Console.WriteLine("This is line 1.\n"); and Console.WriteLine("This is line 2.\n"); How would I increase or decrease the space between those two lines when they are output?
    4 answers · Programming & Design · 4 months ago
  • In C# how can I change the color of certain parts of my code.?

    In C# how can I change the color of certain parts of my code. Not what I am outputting to screen when I run the program. The code itself in visual studio. I have posted a picture. In this picture I want to makes the A's yellow and the B's purple. How can I do this?
    In C# how can I change the color of certain parts of my code. Not what I am outputting to screen when I run the program. The code itself in visual studio. I have posted a picture. In this picture I want to makes the A's yellow and the B's purple. How can I do this?
    1 answer · Programming & Design · 4 months ago
  • C# how to access a method inside a object instance?

    Hi guys. I am having trouble figuring out how to access a method that exists inside a object instance in C#. How can this be done? I know that in C++ this can be done using -> but I can not see how to do this in C#. Assume I have a object called myObject and in that object there is a method called myMethod. How would I externally access... show more
    Hi guys. I am having trouble figuring out how to access a method that exists inside a object instance in C#. How can this be done? I know that in C++ this can be done using -> but I can not see how to do this in C#. Assume I have a object called myObject and in that object there is a method called myMethod. How would I externally access myMethod? Thank you in advance.
    2 answers · Programming & Design · 4 months ago
  • Question about the Android OS?

    Hi everyone. I am toying around with the idea of making a few apps for android. I have not worked with android much so I have some questions. I installed the Android 7 OS on my Laptop. Is it the same as the version that phones comes with? Or is it different. Essentially I am wondering if I would need to get something like a Android tablet or phone... show more
    Hi everyone. I am toying around with the idea of making a few apps for android. I have not worked with android much so I have some questions. I installed the Android 7 OS on my Laptop. Is it the same as the version that phones comes with? Or is it different. Essentially I am wondering if I would need to get something like a Android tablet or phone to try this out. Thank you in advance.
    1 answer · Cell Phones & Plans · 5 months ago
  • HTML help?

    HTML. Is there a way to change the src of a iframe by clicking a button with your mouse? I have been looking over my HTML book and searching online and I just can not figure this out. Can anyone give a basic example of how to do this? Thank you in advance.
    HTML. Is there a way to change the src of a iframe by clicking a button with your mouse? I have been looking over my HTML book and searching online and I just can not figure this out. Can anyone give a basic example of how to do this? Thank you in advance.
    3 answers · Programming & Design · 8 months ago
  • In HTML how do I make my text scroll with my scroll bars?

    Hi guys. I am having some trouble with getting text on a web page to scroll with my scrollbars. Essentially I have a <div> ... ... </div> I need the stuff in between to scroll with the web page when I use the side scroll bars. I am having trouble figuring out how to do this.
    Hi guys. I am having some trouble with getting text on a web page to scroll with my scrollbars. Essentially I have a <div> ... ... </div> I need the stuff in between to scroll with the web page when I use the side scroll bars. I am having trouble figuring out how to do this.
    2 answers · Programming & Design · 9 months ago
  • C++ how to execute a function on one cpp file from a different cpp file?

    Hi guys. The title says it all. I know that two CPP files can access the same header file but can I have one CPP file execute a function on a different CPP file? If so, how? Thanks in advance!
    Hi guys. The title says it all. I know that two CPP files can access the same header file but can I have one CPP file execute a function on a different CPP file? If so, how? Thanks in advance!
    3 answers · Programming & Design · 12 months ago
  • C++ header file help?

    Hi guys. I am having trouble with a small program that works with CodeBlocks but not with Visual Studio for whatever reason. In my project I have 2 CPP files and a header file that I am trying to use together. Here are the files: == main.cpp // Main.cpp : Defines the entry point for the console application. // #include... show more
    Hi guys. I am having trouble with a small program that works with CodeBlocks but not with Visual Studio for whatever reason. In my project I have 2 CPP files and a header file that I am trying to use together. Here are the files: == main.cpp // Main.cpp : Defines the entry point for the console application. // #include "Burrito.h" #include "stdafx.h" #include <iostream> using namespace std; int main() { Burrito bo; return 0; } === Burrito.cpp #include "Burrito.h" #include "stdafx.h" #include <iostream> using namespace std; Burrito::Burrito(){ cout << "I am a bananna." << endl; } === Burrito.h #indef BURRITO_H
    5 answers · Programming & Design · 12 months ago
  • C++ help.?

    Hi guys. More studying here. Example class statement: —- class c1 : public d1 { } —- In that example statement, what exactly is “public d1” doing? It looks like it is referencing another class. If that is the case, what can it do with that other class exactly?
    Hi guys. More studying here. Example class statement: —- class c1 : public d1 { } —- In that example statement, what exactly is “public d1” doing? It looks like it is referencing another class. If that is the case, what can it do with that other class exactly?
    1 answer · Programming & Design · 12 months ago