Search:
Type: Posts; User: crisdeveloper
Search:
Search took 0.01 seconds.
-
moved to this thread
http://forums.codeguru.com/showthread.php?537041-RESOLVED-Creating-Method-with-parameters
-
Resolved!
i spelled wrong the name of class
before: ProgressBar
now the right form
Progress_bar p;
p.set_Progress(ProgressBar1,LabelBar1 ,timer1);
-
i fixed this errors, for now i need to know how i can call the class ProgressBar to access the method set_Progress() in Person.h.
i tried
ProgressBar p;
ProgressBar* p;
still wrong...
-
and i have only 3 errors
Error 1 error C3265: cannot declare a managed 'ProgressBar1' in an unmanaged 'Progress_bar'
Error 2 error C3265: cannot declare a managed 'LabelBar1' in an...
-
my code now is this:
class Progress_bar{
public:
-
i forget to call this way:
ProgressBar increment;
increment.set_Progress(toolStripProgressBar1,toolStripStatusLabel1 ,timer1);
and include the header:
-
thanks for advice me. this thread will be close or something like this?
-
I am wanting to separate the logic from the visual, but I'm having problems when calling the method that controls the actions of the progress bar timer.
ifndef PROGRESS_BAR
define...
-
I am wanting to separate the logic from the visual, but I'm having problems when calling the method that controls the actions of the progress bar timer.
ifndef PROGRESS_BAR
define...
-
i found more errors in this project for example: the data was overwriting the last information typed, but i fitted this errors.
i´ve made a lot of modifications in this project before i leave...
-
thanks for these links, both are very helpfull for me!
-
you can close this topic, because i´m newbie in this forum and i don´t know how i can do it.
-
in the reality i took this code from a forum to study c++, maybe it seems not a good idea but i´ve learned a lot is these 2 days trying to solve the code from another person.
give me a good...
-
the program works well, saves, edit, and display the data.
but i would like to know how i can optmize my code.
-
when i retire the namespace from .h it no works!
-
obs.: namespace are in cpp and .h
-
finally we make this program works well!! thanks for every one that spend time to help me.
the program works fine with namespace in Person.h, but if i try
std::string getName ()const {...
-
if i don´t put namespace in Person.h it not works because the strings types. what the best way to do it?
-
no errors on output
but i think the logic is wrong because the program is not saving data, and neither displaying.
:|
-
code updated:
Person.H
#ifndef PERSON_H
#define PERSON_H
using namespace std;
-
-
the problem now is:
one or more multiply defined symbols found!
-
i can´t understand this message
this is the central problem
'one or more multiply defined symbols found'
-
okay, also complete the erros is ess then before
Error 1 error LNK2005: "public: void __thiscall Person::createPerson(void)" (?createPerson@Person@@QAEXXZ) already defined in...
-
i forget to put namespace std, then i fix the error with 'cout´s'. i also should to put stdafx.h in Person.h? or not?
|
Click Here to Expand Forum to Full Width
|