948 Posted Topics

Member Avatar for sundog1

I think the easiest way to approach this is to give your application knowledge of what columns contain which data. Simply keep track of what row you're dealing with and increment through each iteration of your export.

Member Avatar for Ketsuekiame
0
380
Member Avatar for joshfizzle

What we know as the internet now will disappear, eventually. The internet from back in the 90's has already vanished. It will probably end up the way of many other things and sold to you in packages. It will become a forum for big businesses and professionals. Amateur websites will …

Member Avatar for Ketsuekiame
0
237
Member Avatar for otengkwaku

> There is only one time I will turn to StackOverflow over DaniWeb and that is for XSLT problems because I know the forum is not the most active compared to the SO one and work issues generally need to be resolved quickly. Argh! XSLT *runs and hides* I've just …

Member Avatar for Ketsuekiame
3
665
Member Avatar for xNeverLetGo
Member Avatar for Ketsuekiame

Before I start, I'm afraid I have to say I cannot reliably reproduce this, but it has happened to me twice today. When replying to a post I press the button to confirm, the button disappears, replaced by the "Watch This Thread" button, however, the post is not submitted. The …

Member Avatar for Ketsuekiame
0
252
Member Avatar for sbharani

What have you done so far? What specifically do you need help with? Did you read any of the stickies or the posting rules?

Member Avatar for pitic
0
304
Member Avatar for sundog1
Member Avatar for Ketsuekiame
0
379
Member Avatar for sahilkharidia

Rather than trying to work with strings, place it into a data structure. It will be much easier to work with. eg. public class Weather { public String Outlook {get;set;} public String Temperature {get;set;} public String Humidity {get;set;} public String Windy {get;set;} public Boolean PlayTennis {get;set;} } Then you can …

Member Avatar for Ketsuekiame
0
197
Member Avatar for jangojan

Are the dll files being copied to the correct directory by the installer? They will need to be in the same folder as the executable. Also make sure that any dependencies that MySql.Data has are also included in the installer and get installed into the same directory as MySql.Data.

Member Avatar for jangojan
0
523
Member Avatar for sundog1
Member Avatar for sundog1
0
189
Member Avatar for NidhiSree

You don't need to put the cursor back into the text box. Simply intercept the key being pressed in your keydown/up and update the string in your textbox with the new character. You may need to call refresh on your textbox control afterwards.

Member Avatar for Ketsuekiame
0
160
Member Avatar for IT_Techno

Try executing the stored procedure in SQL Studio and see if it gives you the same result. It could be that; A) You created the Users table on a different schema to `dbo`. (Kind of unlikely because you'd know about it...) B) Your SQL connection string hasn't selected an initial …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for silvercats

Your 0 is an integer not a string, which you are trying to concatenate to and send to a method which accepts String. You just need to put quotes around the 0 :)

Member Avatar for JOSheaIV
0
426
Member Avatar for csss

The problem arises that he also needs to decrypt it with the same key. So unless he transmitted the timestamp across so that the psuedorandom generator could generate the same number, this would not work. If the timestamp were transmitted, then you've just given away your key... Also, I have …

Member Avatar for JOSheaIV
0
2K
Member Avatar for csss

If you're wanting to do what I *think* you want to do; you want to split your power by units of ten and the remainder? If so let's take your 33 as an example; public void Method() { int value = 6; int power = 33; int iterations = (int)Math.Floor(power …

Member Avatar for tinstaafl
0
170
Member Avatar for sumitrapaul123

I'm not entirely sure what you're asking, sorry. Is it possible for you to put a code example of what you'd *like* to do? The code doesn't have to work, it's just to explain exactly what you want.

Member Avatar for TnTinMN
0
276
Member Avatar for mohan564

Please show some attempt to solve this yourself. We can answer specific queries, but we aren't really into doing other peoples work/assignments/coursework for them, especially when they put no effort in themselves.

Member Avatar for Ketsuekiame
0
134
Member Avatar for killer88

A spam filter, at its basic level, is simply a set of rules applied to your data and it scores points based on those rules. For example; 1. Does this address exist in the CBL = 1000 points 2. Does the subject contain "$1,000,000" = 20 points 3. Does the …

Member Avatar for killer88
0
596
Member Avatar for Ketsuekiame

So, in answering another thread on this forum, I decided to do some performance testing on String. Mainly because a friend of mine said "You should always use `new String` it's the fastest!". I wasn't convinced and argued in favour of StringBuilder, at which point I was directed to some …

Member Avatar for TnTinMN
0
252
Member Avatar for ryan311
Member Avatar for cooldude1988

Effectively...yes. You need to add a service reference to the WCF service in question. This will generate a "client" class for you. Use this client class to connect with the service. It will have the same methods on that your service does and you can call them normally just like …

Member Avatar for Ketsuekiame
0
167
Member Avatar for riahc3

`new String(stringVariable.Where(c => !char.IsWhiteSpace(c) || c.Equals(' ').ToArray());` Substitute `stringVariable` for the actual variable of your existing string. This will return you a string with all whitespace except for spacebar removed. In ddanbe's defense, he replied with appropriately the right information given what you had posted. However, seeing your other post …

Member Avatar for Ketsuekiame
0
151
Member Avatar for i_tec

Well firstly, you didn't include any kind of punctuation. Secondly, your expression is extremely vague. I cannot really continue this evaluation as I do not know what the intent of your expression is. In light of the above information, I evaluate your expression at 2 out of 5. Try harder. …

Member Avatar for Ketsuekiame
-1
63
Member Avatar for sundog1

Have you tried using XPath? It will allow you to "query" XML. For example; XPathNavigator rootNav = testXML.CreateNavigator(); foreach(XPathNavigator databaseNav in rootNav.Select("/DataBase/Connection")) Connection.Add(databaseNav.Value); or if you really want to use LINQ XPathNavigator rootNav = testXML.CreateNavigator(); var connection = from nodeSelector in rootNav.Select("/DataBase/Connection") select nodeSelector.Value;

Member Avatar for Ketsuekiame
0
259
Member Avatar for satnav_8

`string dFileName = String.Format(@"{0}", fileName);` What are you trying to acheive with this line? Also, I can't see anything wrong with your code in particular. Could you provide the code for your RenderConsoleProgress method so that I can test the code? Thanks.

Member Avatar for satnav_8
0
5K
Member Avatar for smitha_aa
Member Avatar for prateek29chandra

You need to subscribe to a C# code event. Maybe have a class called "EventManager" which contains a subscribable event called "EventCreated". When an event is created, the event manager will fire the event to all the subscribers and so you know a new event has been created. How you …

Member Avatar for Ketsuekiame
0
151
Member Avatar for sundog1

When executing SQL, to be safe, you should use parameters. Otherwise someone could quite easily perform an SQL Injection attack. More on parameters [Here](http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbparameter.aspx)

Member Avatar for sundog1
0
170
Member Avatar for sundog1

Where you assign the header text, call the array by column name rather than position number. So `dataGridView1.Columns["CashAccRef"].HeadText = "Account";` You've mis-counted your array indeces. I'm making the presumption that the naming below, is also the index position they have in the array. In which case you should be using …

Member Avatar for sundog1
0
190
Member Avatar for cyberdaemon

I think he means that the Workbook contains many Worksheets and he needs to delete the first worksheet before uploading it to the database. (Maybe for privacy concerns?) Unfortunately I don't know anything about using Excel in C# so beyond my interpretation I can't offer anything else ^^

Member Avatar for cyberdaemon
0
391
Member Avatar for chandnigandhi

Google for Text-To-Speech libraries. Rolling your own will be very difficult. If you can limit your app to Windows, I think Microsoft has a speech library.

Member Avatar for nova37
0
217
Member Avatar for 9tontruck

I'm sure it will be optimised this way anyway, but you might want to hint to your compiler that your `char*` are constants. `const char* s = "123";` Also, your vector, unless given a fixed size, will dynamically allocate memory on the heap internally. This is where your fragmentation may …

Member Avatar for Ketsuekiame
1
215
Member Avatar for amitkumarmailid

You could use a `Dictionary<String, Object>`, but unless you write some really crazy reflection you can't just instantiate a named type from the database unless that type is already named in code. So if your database contains the String "Int32" you can use reflection to create a variable of this …

Member Avatar for Ketsuekiame
0
271
Member Avatar for AquaNut

You're creating a new array each time and overwriting the previous value. This way, the array will always only contain the last value you parsed. Try using a `List` and `Add`ing to it instead.

Member Avatar for AquaNut
0
126
Member Avatar for jorge.carmonajr

argv will only be available from your main and contains the command arguments you start your application with. Example: `C:\>myProgram.exe input.txt` In this case `argv[0]` would be 'input.txt' You can then pass this around your application to the code that needs it. Otherwise, just use `std::cin` to fetch the user …

Member Avatar for Ketsuekiame
0
166
Member Avatar for Sandy20

You need to make a new socket object again (after calling close). Avoid calling shutdown on the socket until you've truly finished with it as there is no method to re-enable send/receive on it after they have been disabled. If you wish to use the socket again, call DisconnectEx on …

Member Avatar for Sandy20
0
839
Member Avatar for shah.harsh.m

What is the last available date? At the moment you're requesting the hard-coded date of the 15th Jan, 2013. You realise that this site only stores data up to December 2012?

Member Avatar for shah.harsh.m
0
275
Member Avatar for Labdabeta
Member Avatar for Ketsuekiame
0
269
Member Avatar for vuyiswamb
Member Avatar for nesa24casa

You could do this using the WMI. However, your batch file would be the easiest way to do things. Why do you want to change it?

Member Avatar for nesa24casa
0
181
Member Avatar for notconfirmed

/Agree Your best option is to re-write and re-compile using the C++ language and gcc compiler for Linux. Mono *might* just work, so it's worth a try, but don't hold your breath. Ensure your client understands that there will be porting work involved as you're switching operating systems. Make sure …

Member Avatar for deceptikon
0
1K
Member Avatar for JOSheaIV

The threads should manage and maintain their own resources. Also, please don't call `Thread.Abort` to end threads as this could cause *bad things* to happen (Memory Management issues and such) :P You can signal thread closure easily by shared memory, a simple `Boolean CloseThread;` and check for this. Personally, I'd …

Member Avatar for JOSheaIV
0
871
Member Avatar for nakibzaman88

To expand on Chris's post, to retrieve all the information at once, you will need to do an inner join on the two tables, using EmpId as your matching criteria. As you haven't posted any of your work, it's difficult to help you any further.

Member Avatar for prashant9928
0
138
Member Avatar for Tortura

Unfortunately, if the object you want to serialize isn't marked as serializable and you can't make it such, then you can't automatically serialise it the way you're trying. However! You can serialise it yourself manually, you just need to remember to deserialise it at the other end. A good way …

Member Avatar for skatamatic
0
185
Member Avatar for WDrago

As a preference to formatting I would also nest it all, but that's just me ;) **deceptikon**: A dispose method should be coded so that it cannot throw an exception, or, if it does, bin out of the application. The only exception to this rule is ObjectDisposedException, which means you …

Member Avatar for WDrago
0
243
Member Avatar for andika.kurniawan.121

Doesn't look like picture boxes are involved at all, instead painting directly on the form. Also, you're giving the form multiple paint events. So everytime your form goes to pain, it will call all three (including the built-in one that draws all your controls) The order these are called in, …

Member Avatar for ChrisHunter
0
122
Member Avatar for numbplum

There I was typing up all the benefits of `std:vector` until I re-read your prof. requires you to write a Linked List. Linked lists are quite simple. They are classes that hold the data and the position to the next class in the list, they may also hold a link …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for silvera

Visual Studio: CTRL+A, CTRL+K, CTRL+F On the off-chance it might be a simple solution I put it into Visual Studio myself. I added brackets to the end to make them match, but the problem goes WAY beyond that. Intellisense actually gave up trying to make sense of the code =/ …

Member Avatar for Ketsuekiame
-2
216
Member Avatar for c_learner

Your question looks very..."coursework" related and then you also ask what programming language to learn, even though you already said it has to be "Microsoft Visual C#" Hmmm... :P I suspect, in this case, the programming language you wish to learn is C#... If you Google for Object Oriented Programming, …

Member Avatar for soethandar
0
208
Member Avatar for TheDocterd

Hello Jordan, Daniweb has a section specifically for VB.NET. You can find it by hovering over the "Software Development" button and then selecting VB.NET. Also, if you cannot find a thread that is currently under discussion that pertains to or solves your issue, please start a new thread :)

Member Avatar for Ketsuekiame
0
2K

The End.