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
User Profile
Collapse
-
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);
Anybody remember what this means? -
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?Leave a comment:
-
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.Leave a comment:
-
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.Leave a comment:
-
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
-
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.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")
Leave a comment:
-
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);
Leave a comment:
-
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 15Leave a comment:
-
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.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 ...
...Leave a comment:
-
How are you using the Trim function?
Are you using it like this...
Code:Dim myString as string myString = Trim(myString)
Leave a comment:
-
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 " }
Leave a comment:
-
hype261 replied to Can I have an unbound field that will retain the date entered in it until changed?in AccessAs 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.Leave a comment:
-
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.Leave a comment:
-
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...Leave a comment:
-
Code:DynamicVector v(5), t(7); v=t;
To call the copy constructor use...
Code:DynamicVector t(7); DynamicVector v = t;
Leave a comment:
-
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.Leave a comment:
-
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);
Code:
No activity results to display
Show More
Leave a comment: