The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Query ??

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rlewis Posted - 07/18/2005 : 5:12:36 PM
Origin Version (Originpro 7.5-SR5):
Operating System:Win XP-Pro

I created a column class using code such as ...

#ifndef _RNAH_COLUMN_CLASS_
#define _RNAH_COLUMN_CLASS_
class rnColumn : public Column
{
rnColumn (DataObject& colOriginal) : Column(colOriginal)
{
}

rnColumn () : Column()
{
}

rnColumn (LPCTSTR lpcszWksName, UINT iColNum) : COlumn(lpcszWksName,iColNum)
{
}

rnColumn (Worksheet &wks, UINT iColNum) : Column(&wks,iColNum)
{
}

public:
int MyFunc()
{
if(IsValid()==true)
{

Dataset dS(*this); // This line causes problems at execution time
// More code ...
}
// More Code
}


};
#endif


Although the function MyFunc seems to execute as deigned, the line flagged above generates various warnings at execution time ... Is there a problem here ??
1   L A T E S T    R E P L I E S    (Newest First)
Iris_Bai Posted - 07/26/2005 : 01:32:49 AM

class rnColumn : public Column
{
public:
rnColumn (DataObject& colOriginal) : Column(colOriginal)
{
}

rnColumn () : Column()
{
}

rnColumn (LPCTSTR lpcszWksName, UINT iColNum) : Column (lpcszWksName,iColNum)//change COlumn to Column
{
}

rnColumn (Worksheet &wks, UINT iColNum) : Column(&wks,iColNum)
{
}

public:
void MyFunc()
{
if(IsValid()==true)
{

Dataset dS(*this); // This line causes problems at execution time
// More code ...
}
// More Code
}

};

This code can run without error in v7.5 -SR5.Operating System is Win XP-Pro .

Iris

Edited by - iris_bai on 07/26/2005 02:04:41 AM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000