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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Query ??
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rlewis

Canada
253 Posts

Posted - 07/18/2005 :  5:12:36 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 ??

Iris_Bai

China
Posts

Posted - 07/26/2005 :  01:32:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000