473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VB to C++ Recreation - OLAP

Hey All,

I'm a Expert Programmer at VB6 and OLAP Systems but my C++ is Substandard. I've recently created a MOLAP (Multidimensionsal Online Analytical Processing) Database in VB and as we all know, when it comes to the VB vs. C++ debate C++ comes out on top no sweat. anywho I've rebuilt my VB processes into a C++ dll that allows for API calls. so The Strings etc can be managed by the VB side and the masses of indexing and Consolidations can be done by the C++ dll.

Now the C++ Dll has 5 or 6 Classes which is where I'm having my issues. being used to VB6 Collections I implemented a Template Collection Class using a Vector array in the background.

I load a Cube Class which has a Collection of Dimension Classes which Should consist of a Collection Class of Elements if you follow. and the Element Class has two more Collections of other Element Classes (Parent Elements and Children Elements).

What is happening is I'll create my Dimension Class and fill it with Elements then Create the Next Dimension and Fill it, then if I otput a count of the Element Classes in the Second Dimension its Dim1 elements + Dim2 Elements.

I dont seam to be Multi-instancing the Dimension and for that matter I'm not sure I'm doing the Same with the elements or not.

Extract from the Collection Class:
Expand|Select|Wrap|Line Numbers
  1. public:
  2.   int Add(void) 
  3.   {
  4.     //Create a new base item
  5.     TBase BaseItem;
  6.     //Add the item to the container
  7.     m_items.push_back(BaseItem); 
  8.     //Return the position of the item within the container. 
  9.     //Zero Based
  10.     return (m_items.size()-1); 
  11.   }
  12.  
  13.  
From hre you can Guess the Vector Variable and see how I'm creating a new Class Instance - if this was VB this would be where I'd find the error =S

but for oDim Header minus the Microsoft Blurbs...
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. class oDim  
  4. {
  5.  
  6. public:
  7.  
  8.     static Collection<oElm> Elements;
  9.  
  10.     long ID;
  11.     static long __stdcall AddElement(long weight) ;
  12.     static long __stdcall AddElementComponent(long index, long parindex) ;
  13.  
  14.     oDim();
  15.     virtual ~oDim();
  16.  
  17. };
  18.  
Can anyone explain what I'm likely doing wrong?
Please send me an reply if I am too vauge and I'll send you what I have developed so far.
Apr 20 '07 #1
0 1042

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else...
0
by: DD | last post by:
Hi Guys! Just would like to share with you my experiense in this matter. I was trying to evaluate how suitable Oracle OLAP for our applications. As probably you did, I have downloaded from OTN...
0
by: Philip Stoev | last post by:
Hi all, Please tell me if any of this makes sense. Any pointers to relevant projects/articles will be much appreciated. Philip Stoev http://www.stoev.org/pivot/manifest.htm ...
5
by: Framework fan | last post by:
Hello, If I wrote the next ebay (yes I know, yawn-snore) and I had a database with 5 million auction items in it, what would be a really good strategy to get a search done very quickly? Would...
2
by: Gadi Refaeli | last post by:
Hello All, We are currently considering DB purchases for a new system, we are looking at Cognos, Oracle, DB2 and Essbase. We came across some questions regarding Essbase and DB2 OLAP. 1. Are...
3
by: Eduardo Quiroz Salinas | last post by:
do someone knows where can i get a good tutorial or how to make OLAP cubes.???? thanx a lot -- Linux user number 344659 "...Los que no requieren de un dios para ser virtuosos, son la...
3
by: George Sakkis | last post by:
After a brief search, I didn't find any python package related to OLAP and pivot tables. Did I miss anything ? To be more precise, I'm not so interested in a full-blown OLAP server with an RDBMS...
0
by: YellowFin Announcements | last post by:
Yellowfin Reporting Announces Release 3 OLAP Connectivity New Features Including OLAP-to-Relational Drill Through Provide Customers with One Complete Web BI Tool for OLAP Analysis Yellowfin,...
0
by: YellowFin | last post by:
Yellowfin Announces Release 3 OLAP Connectivity New Features Including OLAP-to-Relational Drill Through Provide Customers with One Complete Web BI Tool for OLAP Analysis Yellowfin, today...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.