small programming job VCPP / Object Oriented Programming

This is a discussion on small programming job VCPP / Object Oriented Programming within the Projects and Job Recruitment forums, part of the Community Boards category; Hello, Here I offer a little programming job, with payment of course. It is a framework of classes with with ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    5

    Exclamation small programming job VCPP / Object Oriented Programming

    Hello,

    Here I offer a little programming job, with payment of course.

    It is a framework of classes with with I can save data in my program. The structures must be flexible and being able to be loaded and saved. All in MS-Visual-C++6. If you are interested, you will get a complete description of the task.

    Who has time and likes to do it?

    Christian from Germany,
    Last edited by Salem; 12-27-2005 at 07:11 AM. Reason: Snip email address away from the trawlbots.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Sounds like cake to me. More info please.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    5

    Post

    Hi Bubba,

    I hope you like sweets. Somehow I cant see your profile nor send you an email. I dotn want to post the whole concept.

    Can you tell me your email or write me a short msg?

    Chris

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Use a PM to send me the info. I'm not saying I will do this, but it sounds quite easy since I've already implemented this type of code before.

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    5

    Unhappy how send PNs

    How can I do this?

    (account registered, activated and logged in...) when I click on you profile / icon I get this:

    calgonite, you do not have permission to access this page. This could be due to one of several reasons:
    Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

    So what can I do to send PNs?

    Chris

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Did you try clicking on the "User CP" like I told you to do in a PM to you?
    It should say under your name at the top that you have waiting messages.

  7. #7
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Users under a certain number of posts can not send PMs (can they respond?). This was done to prevent spamming of PMs.

  8. #8
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Well the message sent to me did not make sense. A clearer explanation of the task at hand would be nice. Don't tell me the structure or how to do it since you clearly do not know either of these, moreso give me the goals or the intended outcome of the code and then I will choose the design and class structure.

    What you sent me both did not make sense or seem correct from a programming perspective.

    I normally do not do this but for sake of discussion here is the PM I was sent.

    The basic of it all is called CONTAINER. It is a class / struct which can contain any data, of course also CONTAINERs. Examples are CONTAINERs which keep a bitmap, strings or just pointer to other CONTAINERs.

    The solution I intend to create with all this is: several effect-programs called FX are called from main() in different times which are defined in a script. For example at time 0200 to 1480 there is FX1(with certain start parameters) called every Frame and from 0330 to 0900 FX2(with other start parameters), etc. It can happen that in a single frame the same FX (so teh same graphic function) is called two times, but those two FX/effects have a different state of variables. For that we must create something like our "stack", a CONTAINER which will keep all relevant data of a special FX for the next call.

    An init of an FX (setting-up-everything-for-start) is called init_FX. It needs a special CONTAINER which contains only the relevant data for setting up an FX, that is called PRESET.

    When my Screensaver-System starts up, there will be included alot FX (meaning functions which create graphical content) and for every such FX many different parameter-sets, the PRESETs. [I still think in detail about how to manage all that PRESET-data, so you dont need to think about it now.] When init_FX is called, it gets all needed data to start the FX in the PRESET(-container). The function init_FX is called only once for every new FX and it creates a new CONTAINER, the UNIT with all relevant data to save for that FX. A UNIT is a CONTAINER whcih saves all needed variables of a graphical function FX.

    Regards,

    Chris
    First line of PM removed due to OP's email being included in it's text.

    If this is an animation container then I already have one coded but it uses bitmaps based on their ID in memory. Your system would need to use my texture/bitmap manager as well.
    Last edited by VirtualAce; 12-27-2005 at 01:55 AM.

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Proscriptive solutions (you must do it this way) usually mean one thing - homework.

    Seems to me storing all the settings for each FX in a map would work.
    Say something like this?

    Code:
    typedef std::map< std::string key, std::string value > setmap;
    typedef void (*fxfn)( setmap & );
    
    setmap settings[10];  // 10 settings
    fxfn fxFuncs[10];
    
    // Then say
    settings[0]["speed"] = "1";
    settings[0]["colour"] = "blue";
    fxFuncs[0] = fooFX;
    
    settings[1]["shape"] = "square";
    fxFunc[1] = barFX;
    
    // Then sometime later, do this to make a call
    fxFunc[0](settings[0]);
    You could read the settings directly out of a text file, much like an old-style windows INI file.

  10. #10
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    You could do it that way Salem or encapsulate an FX in a class and create a container class to act as a go-between for the user and the actual class implementation.

    The pointer idea is good, but if you use classes the pointer idea will run into a lot of issues. It is possible to have a class function pointer point to a non-member function and vice versa, however, it is a pain in the arse. Using functors is the only way I know of to properly accomplish this.

    But, yes, this does 'smell' like homework of some type.

  11. #11
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    You guys must be detectives seems like an ill concieved idea (analysis/requirements) for a basic data structure class.

    Why do this with a "Container" class, useing the STL seems like the simplest step wise solution like Salem suggests.

    (Functor - class that acts like a function, correct (never used one curious))

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using this as synchronization object
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 03-22-2008, 07:49 AM
  2. object oriented paridigm??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 12-09-2005, 07:34 PM
  3. Object oriented job questions
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-28-2004, 04:06 AM
  4. How would you do this (object interlinking)
    By darksaidin in forum C++ Programming
    Replies: 7
    Last Post: 08-30-2003, 12:08 AM
  5. I can't find a job.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 06-29-2003, 08:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21