948 Posted Topics

Member Avatar for AngelicOne

Without know the rest I can't say for sure, but usually the way to go is to have a "Permissions" table. With the permissions table you can add a row for each user which the permissions set that you require. So you could add a field for "Read Access", "Write …

Member Avatar for AngelicOne
0
140
Member Avatar for Mr.BunyRabit

Maybe some details of an error you're getting would be beneficial to figuring out the cause of your problem?

Member Avatar for Mitja Bonca
0
131
Member Avatar for larry_d1990

I'm still not quite sure what you mean. Could you give an example please?

Member Avatar for Ketsuekiame
0
63
Member Avatar for charlybones

As far as I am aware you cannot alter this file from inside the application to which it belongs. You would be able to use a separate XML config file though, but you would obviously need to write the parsing algorithm yourself.

Member Avatar for charlybones
0
700
Member Avatar for jlivvers

You need to set the Culture setting in the String.Format method. It seems to use en-us by default. You would need to use something along the lines of: [icode]String.Format(System.Globalization.CultureInfo.CurrentCulture, "{0:C}", 12.99);[/icode] This will set the format template to whatever system regional settings are for this format command.

Member Avatar for Ketsuekiame
0
176
Member Avatar for Tellalca

You haven't initialised your List. Also, there is a pre-defined collection for this called "Dictionary" [icode]Dictionary<String, ConsoleColor> colorList = new Dictionary<String, ConsoleColor>();[/icode]

Member Avatar for Ketsuekiame
0
111
Member Avatar for revjim44

None of you seem to have read the assignment properly ;) Let me highlight a section for you... [b]All digits are sent back through parameters by reference.[/b] This is an assignment to teach the students how to use reference variables =) There is a keyword called "ref" you can attach …

Member Avatar for Ketsuekiame
0
381
Member Avatar for becool007

[quote]I find it easy to avoid .NET because I don't see any purpose for it in my own projects (and I don't program with Microsoft products anyways). It is clear that for all basic programming purposes, .NET is not needed. Just stick to the C++ standard libraries (and no managed …

Member Avatar for jonsca
0
117
Member Avatar for revjim44

Also, please remember that "q" != "Q". It may be wise to convert your input to upper case for the comparison.

Member Avatar for rohand
0
161
Member Avatar for JannuBl22t

What you're looking for is how to create a [URL="http://www.codeproject.com/KB/cs/c__plugin_architecture.aspx"]Plugin Architecture[/URL]

Member Avatar for JannuBl22t
0
81
Member Avatar for 5ophie2012

[QUOTE=dcyphert;1461279]I still haven't figured out how to write the method CountIt()..... I need to be able to count words and lines...I know that i need a bool to check and see if it's on a character or white space in order to distinguish words, and a counter for both words …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for GAME

HostMonster restricts access to the DB by IP address. Localhost is always allowed. In order to add your IP address you need to go into the MySQL Control panel on the control panel front page and goto remote connections. But you will only be able to put in a static …

Member Avatar for Ketsuekiame
0
155
Member Avatar for Jesi523

You can only pass in an array of type "char" not string. Change your string[] to char[] and instead of using "" use '' Also you're creating a new empty string array? Why? You don't even touch the argument you just passed in. A string array is an array like …

Member Avatar for ddanbe
0
878
Member Avatar for aaronmk2

[URL="http://msdn.microsoft.com/en-us/library/dd783499.aspx"]Enum.TryParse()[/URL] Come on man, took me 10 seconds to Google ;)

Member Avatar for aaronmk2
0
126
Member Avatar for Arjun_Sarankulu

You need to be a bit more specific here. What do you mean by polling? What restrictions do you have? What are you going to be polling?

Member Avatar for Ketsuekiame
0
63
Member Avatar for murtaza1234

How about you don't take jobs you can't do? Put some effort in, then come back with a specific problem. Or, for a small fee, I'll do it for you. =)

Member Avatar for kvprajapati
-3
151
Member Avatar for NewOrder

I don't understand what you mean by send the serialised object to the current user? The serialised object should be represented as a byte stream. In answer to the title of the thread, to send it over the send, you simply send these bytes over a Socket connection. [URL="http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx"]MSDN Article[/URL]

Member Avatar for NewOrder
0
1K
Member Avatar for shredder2794

[URL="http://www.lmgtfy.com/?q=WPF+UI+automation"]WPF UI Automation[/URL] Wasn't so hard to find..

Member Avatar for Ketsuekiame
0
81
Member Avatar for nndung179

Make sure that "number" is actually a number greater than 0. Your number may actually be 0. In which case you would have a zero length array, or null.

Member Avatar for Ketsuekiame
0
106
Member Avatar for arjunpk

Please come back when you have tried something yourself and can give an example of what you tried, along with a specific problem you're having. Thanks.

Member Avatar for arjunpk
0
123
Member Avatar for ctsmith84

You could use [icode]String.Format(System.Globalization.Culture.CurrentCulture, "{0:C}", Math.Round(amount / 100.0, 2));[/icode] The format command sets the string conversion culture to your current culture, it then says, "My first parameter is of type currency", and then you round the amount / 100 to two decimal places. Please take care with rounding errors =) …

Member Avatar for ctsmith84
0
201
Member Avatar for Arjun_Sarankulu

[code]while ((strline = sr.ReadLine()) != null) { strline = sr.ReadLine(); /* Code and stuff... */ } [/code] These are lines 46 to 50 in your code. Now I've pointed it out, it should be easy to see why it only reads lines 2 and 4 from your csv file.

Member Avatar for Ketsuekiame
0
171
Member Avatar for p90pts
Member Avatar for Ketsuekiame
0
107
Member Avatar for JOSheaIV

Please read the information at the above link first to give you an idea of what static classes are. Hopefully this has allowed you to realise that static classes in abundance are also bad ;) The reason that you won't be able to make them work is probably because you're …

Member Avatar for Ketsuekiame
0
254
Member Avatar for JannuBl22t

There are two things you can do to check. 1. If the delegate is "crashing" then it's generally something in the method that's throwing the exception. Place a breakpoint on line 192 of the code you pasted above and follow the code execution. See if any exceptions are thrown. 2. …

Member Avatar for lolafuertes
0
128
Member Avatar for ctsmith84

Well... Unfortunately I can't recommend any books on .net at all. I learnt through doing. I decided on a project, then tried to make it. I encounter all sorts of problems on the way and not knowing how to do anything, but with the help of logic and the internet, …

Member Avatar for ctsmith84
0
205
Member Avatar for moni94
Member Avatar for moni94
0
116
Member Avatar for sling blade

Unfortunately I don't know any "quick" utilities to do such things. However, in VS there is an option when you right click on a method or variable called "Find All References" This will show you where this method/variable has been referenced. It's a bit long winded but will help you …

Member Avatar for ddanbe
0
110
Member Avatar for JannuBl22t

This appears to be close to what you want to do. [URL="http://social.msdn.microsoft.com/Forums/en/regexp/thread/7e4ad101-3f53-48f8-b7fe-45b6f2197715"]Regex to get href="#"[/URL]

Member Avatar for Ketsuekiame
0
139
Member Avatar for braveheart_sb

What data type is your key? The easiest way to solve this is to have an integer key type and have it auto_increment. Then you don't have to worry about duplicate keys. Otherwise I guess the only way is to generate your key, perform a select on the database and …

Member Avatar for Ketsuekiame
0
103
Member Avatar for cyph3r x3r0

You say you want to use XML for communication? In what sense? What you send over the socket needs to be converted into bytes. So build your XML in memory, then convert that into a byte array and send it over your socket and rebuild it at the other end. …

Member Avatar for Ketsuekiame
0
141
Member Avatar for maii_18
Member Avatar for midimatt
Member Avatar for Ketsuekiame
0
107
Member Avatar for manugm_1987

You will need to copy the database along with it. You're effectively asking it to rain without water. You cannot connect to something that doesn't exist.

Member Avatar for kvprajapati
0
165
Member Avatar for MrCapuchino

You should be storing any user related data in the Users' AppData folder. You can get the Parent path from the variable [icode]Environment.SpecialFolder.ApplicationData[/icode] which is used in the following way [icode]String appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);[/icode] In there you can create a folder for your application and store/modify any files you wish.

Member Avatar for Ketsuekiame
0
152
Member Avatar for tjm6f4

If you take Jonsca's idea and sodomise it slightly... On your form, keep a list of the selected items. (As in [icode]List<String> MySelectedItemNames;[/icode]) Every time you make a selection, clear this list and re-add all selected items again. Every time you make a selection, clear each box apart from the …

Member Avatar for Ketsuekiame
0
159
Member Avatar for ziggy981

Anything that creates or deletes random/small files that seem to have no purpose. Process execution code. Anything that alters the registry. Come on, think about what malware does and then look for that ^^

Member Avatar for Ketsuekiame
0
202
Member Avatar for onlinessp

I don't think the problem is regarding his calling object. I [I]believe[/I] what is happening, is that when you disable the button, the events for that button are also disabled. So when you disable the button, you are no longer processing the MouseEnter event. A quick way to test this, …

Member Avatar for ddanbe
0
104
Member Avatar for justin3085

[QUOTE=ddanbe;1450848]First put the lines of your file in a List like this: [CODE=c#]// Read in all lines in the file, and then convert to List with LINQ. List<string> fileLines = File.ReadAllLines("file.txt").ToList();[/CODE] then select a random line by indexing the list. See here: [url]http://msdn.microsoft.com/en-us/library/0ebtbkkc.aspx[/url][/QUOTE] This is the thirst method I also …

Member Avatar for justin3085
0
421
Member Avatar for jas2010

Have you plugged it in and turned it on? On a serious note, without any information regarding the device you will not succeed. Unless you have some software that already works with the device and a packet sniffer to inspect what data is being communicated between the device and the …

Member Avatar for Ketsuekiame
0
129
Member Avatar for cbsinc

Surely, your best bet for tutoring, if you want a PhD, is to take the course? In the UK at least, this takes around 6 years and so doesn't fit into your 1-2 year time scale. The fact also remains is, it's all well saying "I want a PhD in …

Member Avatar for Ancient Dragon
0
101
Member Avatar for Ketsuekiame

A while ago, I had a piece of XML you put in the application config file which made .net write all exceptions and traces into a log file, without any modifications to the code. (i.e. I didn't have any trace listeners or manual log files) I cannot for the life …

Member Avatar for Ketsuekiame
0
103
Member Avatar for +_+man

A 10 year old on a computer programming course and their task is to create an operating system for children... 1. If he is indeed 10 years old and on a computer programming course and part of that course is the creation of Operating Systems, congratulations you have a genius …

Member Avatar for Goalatio
0
156
Member Avatar for mmavipc

You will need to look into an Audio engine. There is no specific functionality to *create* a sound as far as I'm aware.

Member Avatar for mmavipc
0
89
Member Avatar for svatstika
Member Avatar for Jazerix

If all you need is the Computer name, I suggest you use [icode]Environment.MachineName[/icode] As for your error, when you try and open a registry key, if null is returned it means that it couldn't open the key. This could be due to the fact it couldn't find the key or …

Member Avatar for Momerath
0
115
Member Avatar for wazzer225

The "end" of the vector is not actually a value you've inserted but more of a marker. This is why you would use, for example, [icode]for(myIterator = vector.begin(); myIterator != vector.end(); ++myIterator)[/icode] The "begin" points to the first item in the vector, however, the "end" does not point to any …

Member Avatar for mitrmkar
0
112
Member Avatar for DioRani

Have you tried inserting break points? Does the code get run at all? As with DiamondDrake, we need more information about what your playlist and playlist2 are and how they interact and why.

Member Avatar for Ketsuekiame
0
1K
Member Avatar for Obelisk4

You need to use an additional SDL Library. [url]http://www.ferzkopp.net/joomla/content/view/19/14/[/url] Build that library (in release mode) and it will generate a DLL file and a lib file. You need to link those in your project.

Member Avatar for shijobaby
0
225
Member Avatar for Chalson

You should return EXIT_SUCCESS or EXIT_FAILURE which are in the stdlib.h file. C99 defines that if left without a return statement it will return 0, but you should not get in the habit of doing so. What happens if one day, all hell breaks loose and EXIT_SUCCESS changes to 1 …

Member Avatar for PsychoLogic
0
201

The End.