User Profile

Collapse

Profile Sidebar

Collapse
hype261
hype261
Last Activity: Apr 3 '12, 02:40 PM
Joined: Apr 20 '10
Location: Port Orchard, WA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hype261
    replied to C internal keyword
    in C
    Crap,

    After looking at it more turns out internal is a function. Intellisense was highlighting it for me because of C# and C++ CLI.

    James
    See more | Go to post

    Leave a comment:


  • hype261
    started a topic C internal keyword
    in C

    C internal keyword

    So I am looking at some old C code for a database and I am finding some syntax I am not familiar with basically the internal keyword.

    Code:
    node_traverse(internal(cthis,child1), parent_tree,traverse,userdata);
    Google searches all come back referencing C# internal (damn you Microsoft)

    Anybody remember what this means?
    See more | Go to post

  • What do you mean by entered an idle state? Does that mean the computer has gone into sleep or hibernate mode or does it just mean that the user hasn't typed anything on the keyboard or moved the mouse recently?
    See more | Go to post

    Leave a comment:


  • hype261
    replied to C++ union equality
    in C
    Banfa,

    Thanks for trying it out. I ended up doing another enum to track which type of data is loaded into the struct so I can do the comparison correctly.
    See more | Go to post

    Leave a comment:


  • hype261
    replied to C++ union equality
    in C
    Donbock,

    That is true, but at run time I won't know what type of information is stored in the union when I do my comparisons. I suppose I could make another enum to track which type got written to, but in that case I probably should make this a class with getters and setters.
    See more | Go to post

    Leave a comment:


  • hype261
    started a topic C++ union equality
    in C

    C++ union equality

    I don't have a C++ compiler with me right now and can't find an answer on the net and I keep on going back and forth in my head on whether this would be legal or not.

    So here is my struct in question...

    Code:
    struct WorldProperty
    {
    WORLD_PROP_KEY eKey;
    
    	union value
    	{
    		bool bValue;
    		float fValue;
    		int nValue;
    	};
    
    	bool operator==(const
    ...
    See more | Go to post

  • T-SQL doesn't work with access (I really wish it would). Also on my list would be stored procedures, but none the less.

    I suppose you could do a combination of a VBA function inside the SQL.
    See more | Go to post

    Leave a comment:


  • So basically you are going to have to run some VBA to get this to work, but it shouldn't be that hard.


    First you are going to have to open a recordset to get all the emails. Then you are going to have to loop through the recordset.

    Code:
    dim rcd as DAO.recordset
    dim emailAddress as string
    
    set rcd = CurrentDB.OpenRecordset("SELECT EmailAddress FROM SomeTable")
    ...
    See more | Go to post

    Leave a comment:


  • hype261
    replied to Error in reading fom a binary file!
    in C
    First you are not going back to the begining of the file after you figure out the file size.

    Code:
    file.seekg (0, ios::beg);
    Secondly I am not entirely sure that the file.read code is going to work correcly. Generally when I do file manipulation I use getline and stringstreams to make sure the data is good.
    See more | Go to post

    Leave a comment:


  • hype261
    replied to Error in reading fom a binary file!
    in C
    Are you sure you are including the right header file for the ifstream?

    I believe it is defined in <fstream>

    Also you need to replace file with pBinaryFile at line 15
    See more | Go to post

    Leave a comment:


  • hype261
    replied to How to move with components that i create.
    What you want to do is create a container of Controls. When you create a new control you need to add it to the Forms controls, but you also need to add it to the container. In your tick event you just cycle through all the controls in the container and individually move them left.
    See more | Go to post

    Leave a comment:


  • I just read that you didn't want to do another Wrapper for performance reasons so I don't think the method I list below would work. Sorry.

    I believe the Decorator design pattern solves this problem. The Decorator design pattern has two purposes: To dynamically add responsibilitie s to an object and to add client specified embellishment of a core object by recursively wrapping it.

    So instead of ...

    ...
    See more | Go to post

    Leave a comment:


  • hype261
    replied to Trim function not removing trailing spaces?
    How are you using the Trim function?

    Are you using it like this...

    Code:
    Dim myString as string
    
    myString = Trim(myString)
    I suspect you just have the statement Trim(myString) with no assignment operator.
    See more | Go to post

    Leave a comment:


  • hype261
    replied to How can I phrase this SQL command?
    In these situations I just dynamically create the SQL command to execute. So for 4 check boxes you would do something like this.

    Code:
    string sql = "Select * FROM SomeTable ";
    string where = "WHERE "
    
    if(a)
    {
    where = where + " Something = true AND "
    }
    
    if(b)
    {
    where = where + " SomethingElse = true AND "
    }
    ...
    See more | Go to post

    Leave a comment:


  • As far as I know this is not possible. One of my apps has a date time stamp when the app last connected to the master server. All I do is store this value in a table and update it when the user connects. Unbound fields lose there value when access closes.
    See more | Go to post

    Leave a comment:


  • hype261
    replied to windows forms
    WPF stands for Windows Presentation Foundation and came out with Visual Studio 2008. It is the "newer" way to build C# applications. Basically all your design of the forms is in xaml which is very similar to xml. With WPF it is a lot easier to design very visually interesting forms. With WinForms you could probably do the same thing, but you are going to have to program it all yourself.
    See more | Go to post

    Leave a comment:


  • hype261
    replied to windows forms
    Windows forms or WPF currently is the standard for writing a commercial project using C#. I have never heard of any limitations on the number of controls you can have on your forms, but I believe it would be limited to the amount of memory and processing speed your target computer.

    That being said in OO programming there is a term called the Single Responsibility Principal and I believe this principal also applies to any forms you...
    See more | Go to post

    Leave a comment:


  • hype261
    replied to copy constructor issues
    in C
    Code:
    DynamicVector v(5), t(7); 
    v=t;
    This code right here will call the assignment operator not the copy constructor.

    To call the copy constructor use...

    Code:
    DynamicVector t(7);
    DynamicVector v = t;
    See more | Go to post

    Leave a comment:


  • hype261
    replied to SQL Data Type Mismatch
    I just figured it out. I had used the function before it a different app so I was pretty sure it worked. The difference between the two was that in my other app the date field was marked as required where in this one the date field is not marked as required. This allowed Access to mark my Date as a Nullable Date where my function is looking for a Non Null Date.
    See more | Go to post

    Leave a comment:


  • hype261
    started a topic SQL Data Type Mismatch

    SQL Data Type Mismatch

    So I have a SQL Query I am trying to author and it keeps giving me a Data Type mismatch error which I can't seem to see. Exact error message is Data type mismatch in criteria expression.

    Here is the SQL...

    Code:
    SELECT Count(*) AS NumTests, ConvertDate(IssuedDate)
    FROM ItasWithCancelledTests
    GROUP BY ConvertDate(IssuedDate);
    Here is my Function Convert Date

    Code:
    
    
    ...
    See more | Go to post
No activity results to display
Show More
Working...