User Profile

Collapse

Profile Sidebar

Collapse
gasfusion
gasfusion
Last Activity: Jan 13 '08, 07:27 PM
Joined: Sep 4 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gasfusion
    replied to Cannot iterate through an object collection.
    in PHP
    I've recoded all classes and got it to work. Have no clue what it was that was wrong.
    Thanks.
    See more | Go to post

    Leave a comment:


  • you can use object collections, a feature of PHP 5, to achieve this. This is something i am currently working on myself.
    See more | Go to post

    Leave a comment:


  • get rid of the @ in front of mysql commands. That suppresses any error messages you may have from sql. Then rerun the script and see what you get.
    In addition to that, you php script should probably execute when you get submit and not on reload.
    See more | Go to post

    Leave a comment:


  • gasfusion
    started a topic Cannot iterate through an object collection.
    in PHP

    Cannot iterate through an object collection.

    Hey guys.
    I'm building an object collection which will be a part of a Data Access Layer i am currently working on. However, i am having some issues iterating through a collection.
    This is what i've done so far
    1 - Create 'user' class which maps to the MySQL table. The class has basic setters and getters to set/get each field value.
    2 - Created a collection class with simple add/remove/get methods.
    3 - Created...
    See more | Go to post

  • gasfusion
    started a topic Deep cloning issue in C#.
    in .NET

    Deep cloning issue in C#.

    Hey guys. I have a little problem trying to clone my object, which is shown below. If you notice below, i am using a generic linked list structure to store byte arrays. The problem is when i use my Clone() method to clone this object, it doesn't clone the actual LinkedList. Any ideas on how to go about fixing this?
    Much appreciated.
    Code:
    using System;
    using System.Reflection;
    using System.Collections.Generic;
    ...
    See more | Go to post

  • You could have a group-based access. You can setup groups such as Administrator, Moderator, User and etc, where every single group would have it's own access level and permissions. You could also have an access list of some sort. Say, if you're designing this for an intranet web application, you could have a list of accessible pages which could be assigned to different groups. Something like this... shouldn't be hard to do. Most of it is properly...
    See more | Go to post

    Leave a comment:


  • Designing a language interpreter & compiler for a simple language

    Hey guys.
    I'm currently taking a course where everyone in the class will code a compiler for a simple C-like language. I'm doing mine in C# and have some general questions for efficiency and the actual architecture.
    I've coded a lexer which reads code and categorizes everything into groups.
    I'm using a hash table to store all of the lexems, where the key to the table is the order of appearance of a lexem in the code and the value...
    See more | Go to post

  • Thanks for the response!
    The actual project has command-line arguments saved in the properties of the project. During start-up, the command-line is parsed and the arguments are saved into 2 variables. What we did is just skipped the parsing and manually set the variables to what the user is passing through the command-line like so:
    Code:
    strEnvironment = "test"
    After more research, it doesn't even look like it has anything...
    See more | Go to post

    Leave a comment:


  • Class does not support Automation or does not support expected interface

    Hey guys!
    I'm having some issues with one of my installer packages i compiled with Microsoft Visual Studio 2005. (VB installer is buggy as hell and wouldn't work on half of our machines no matter what we did with it) The installer wraps a VB 6.0 application. When i install the package on my machine everything works flawlessly. When i installed it on the user's machine, once again, everything ran great. When we uninstalled it and installed...
    See more | Go to post

  • gasfusion
    replied to Creating ASP Wizard-style forms
    The data isn't going to go into a database of any kind while i process it. At least, that's not the part i should worry about. They just want to get rid of the PDF which is currently out there because for one thing it's huge as it includes loads of policy descriptions adn etc (it's for an insurance company). The other way they were getting this info is from an email which would get sent out whenever a user submits an application. An operator would...
    See more | Go to post

    Leave a comment:


  • gasfusion
    started a topic Creating ASP Wizard-style forms

    Creating ASP Wizard-style forms

    Hey guys!
    I have a series of very general programming questions for you. I am a windows developer so i'm a bit buffled as to how approach this web-based problem. I am given a project where i'm supposed to setup a wizard-type application where users can enter data, verify and edit it and finally process it (populates a PDF form, don't ask me why, i have no clue why a database isn't used. Apparently that's how some other system keeps track of...
    See more | Go to post

  • gasfusion
    replied to Game Programing. C++ or C# ?
    in C
    I'd write it in C++ just because C# requires the .net framework and all that other stuff to get it going. Look at the load time for an average C# application. I have a 40k program which loads for nearly 20 seconds just because it in turn loads the .net environment objects every time you start it. C# is powerful but damn slow (at least now). I'd do it in C++. At least you'll know it's going to be portable. Besides, there is a game dev. class at my...
    See more | Go to post

    Leave a comment:


  • gasfusion
    replied to help with game
    in C
    grab some openGL books. I've seen people come with some amazing 3D action games at my uni for their soft engineering final project.
    See more | Go to post

    Leave a comment:


  • gasfusion
    replied to Really weird strings problem.
    in C
    Ok i guess i can call this *RESOLVED*. The problem was not the == operator, it was comparing strings to NULL which returns the whole shibang of error messages. So i'm just comparing template args to string and compare it to "" if it's a string.
    Thanks for the help.
    See more | Go to post

    Leave a comment:


  • gasfusion
    replied to Really weird strings problem.
    in C
    Not a single clue. I've tried pretty much everything i could. The only thing left is to actually overload the equality operator (==), since that's where it seems to fail. I still don't fully understand what the heck's causing this and why the template args aren't passed. It's almost as if strings don't have == defined lol. Which is just bogus.
    See more | Go to post

    Leave a comment:


  • gasfusion
    replied to Really weird strings problem.
    in C
    I honestly don't understand what '_const Elem*' even means. I'm not passing any template argument pointers, neither do any of my functions return any. Apparently this problem has nothing to do with comparing strings to NULL. After doing some research, i found out that for some reason the compiler cannot determine the Type of a function so you have to pass it explicitly Like:
    foo<Type>(param 1, param2), which in turn says something like...
    See more | Go to post

    Leave a comment:


  • gasfusion
    started a topic Really weird strings problem.
    in C

    Really weird strings problem.

    I wrote a class Min-Max Heap Template Class which works perfectly fine with integers. As part of this data structure, i have to implement some sort of method to check for the smallest children/grandchildren of any given position in the Min-Max Heap array. Part of this method retrieves an item from my MinMaxHeap array at a specific position and then compare it to NULL. This works fine with integers. However i cannot(!) compare strings to NULL. I receive...
    See more | Go to post

  • gasfusion
    replied to help me. i need details about extern
    in C
    extern lets you use c in C++ code
    See more | Go to post

    Leave a comment:


  • gasfusion
    replied to problem overloading + operator
    in C
    errr... problem solved.
    I was passing parameters as constants in my + operator function in the declaration of the function in the header file.

    DateProcessorCl ass operator + (const DateProcessorCl ass& left, const DateProcessorCl ass& right);

    Duh...
    See more | Go to post

    Leave a comment:


  • gasfusion
    started a topic problem overloading + operator
    in C

    problem overloading + operator

    I'm coding a program which calculates time values in hh:mm:ss format.
    I'm reading times from a file containing 1 time string per line. After reading times, i continue reading operations on the time in the same file. operations are like this:
    167+234

    which basically means i take the 167th row in the file and add it with 234th.

    here is what i have so far. Note the >> operator is also overloaded....
    See more | Go to post
No activity results to display
Show More
Working...