Click here to Skip to main content
15,921,530 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralEmbed Exectuable Pin
zx2c46-May-05 15:16
zx2c46-May-05 15:16 
GeneralOutput Atl Variant Function under Excel Pin
Member 18924296-May-05 4:51
Member 18924296-May-05 4:51 
GeneralImplement WTL application as a static library Pin
marcpolo3-May-05 22:50
marcpolo3-May-05 22:50 
GeneralUpdateAllViews Pin
act_x3-May-05 11:22
act_x3-May-05 11:22 
GeneralRe: UpdateAllViews Pin
Michael Dunn4-May-05 16:40
sitebuilderMichael Dunn4-May-05 16:40 
Generaloops Pin
knapak29-Apr-05 9:28
knapak29-Apr-05 9:28 
GeneralRe: oops Pin
toxcct18-May-05 3:08
toxcct18-May-05 3:08 
QuestionPointers to vectors? Pin
knapak29-Apr-05 9:25
knapak29-Apr-05 9:25 
Hi guys

Before my question I remind you I'm an amateur... so be kind in your response Smile | :)

Why is it that the following code works fine if I use a regular array and not a vector container... Mad | :mad: How do I make the function return a pointer to the beginning of the vector and use it on the call from another function...??? Confused | :confused:

Thanks a lot for all your help, you guys are great! Cool | :cool:

double *TakeThisVector::CreateVector(double such)
{
vector<double> A_vector;
double *pt_tovector = 0;
int max=2;
for(int i=0; i<= max; i++)
{
A_vector.push_back(such);
such++;
}
pt_tovector = A_vector;
return pt_tovector;
}

void GimmeTheVector::ShowVector()
{
TakeThisVector TTV;
double A0, A1;
double *Recover = 0;
Recover = TTV.CreateVector(Lat, Lon);
A0 = *Recover++;
A1 = *Recover;
}
AnswerRe: Pointers to vectors? Pin
Stuart Dootson29-Apr-05 9:52
professionalStuart Dootson29-Apr-05 9:52 
GeneralRe: Pointers to vectors? Pin
knapak29-Apr-05 10:04
knapak29-Apr-05 10:04 
GeneralRe: Pointers to vectors? Pin
markkuk29-Apr-05 10:46
markkuk29-Apr-05 10:46 
GeneralRe: Pointers to vectors? Pin
knapak29-Apr-05 10:54
knapak29-Apr-05 10:54 
GeneralRe: Pointers to vectors? Pin
knapak29-Apr-05 12:45
knapak29-Apr-05 12:45 
GeneralRe: Pointers to vectors? Pin
Stuart Dootson29-Apr-05 22:25
professionalStuart Dootson29-Apr-05 22:25 
GeneralRe: Pointers to vectors? Pin
knapak2-May-05 9:55
knapak2-May-05 9:55 
GeneralRe: Pointers to vectors? Pin
markkuk30-Apr-05 11:56
markkuk30-Apr-05 11:56 
GeneralRe: Pointers to vectors? Pin
knapak2-May-05 9:57
knapak2-May-05 9:57 
QuestionHow do I save/load STL data (map &amp; vector) Pin
Larry Mills Sr26-Apr-05 15:33
Larry Mills Sr26-Apr-05 15:33 
AnswerRe: How do I save/load STL data (map &amp; vector) Pin
Alexandru Savescu28-Apr-05 1:27
Alexandru Savescu28-Apr-05 1:27 
AnswerRe: How do I save/load STL data (map &amp; vector) Pin
CP Visitor2-May-05 23:00
CP Visitor2-May-05 23:00 
GeneralBHO: Getting the title of the page loaded Pin
alanwolfen25-Apr-05 22:41
alanwolfen25-Apr-05 22:41 
GeneralRe: BHO: Getting the title of the page loaded Pin
ThatsAlok25-Apr-05 23:28
ThatsAlok25-Apr-05 23:28 
GeneralRe: BHO: Getting the title of the page loaded Pin
alanwolfen26-Apr-05 14:13
alanwolfen26-Apr-05 14:13 
GeneralUse science for programs Pin
Member 191102425-Apr-05 9:45
Member 191102425-Apr-05 9:45 
GeneralRe: Use science for programs Pin
abecedarian25-Apr-05 10:35
abecedarian25-Apr-05 10:35 

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.