1,443 Posted Topics

Member Avatar for syd919

Can you convert the Table<Travel_MealDetails> to a List<Travel_MealDetails> before running the Linq? Also (after that), your linq can just return a List<Travel_MealDetails> [CODE] return (from c in lst_meals select new ... ).ToList(); [/CODE] ...you won't need to call .ToList() twice.

Member Avatar for thines01
0
161
Member Avatar for jjsmithy

Try a search [URL="http://www.bing.com/search?q=VB.NET+to+SQL+Server&qs=n&form=QBLH&pq=vb.net+to+sql+server&sc=0-14&sp=-1&sk="]like this[/URL]. There are lots of examples.

Member Avatar for thines01
0
105
Member Avatar for newbie1234

Look at the example on [URL="http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html#test"]testing the connection[/URL]. Just look at the code inside main() and you will see the pattern emerge.

Member Avatar for thines01
0
115
Member Avatar for shadachi
Member Avatar for thiemebr
Member Avatar for Momerath
0
443
Member Avatar for BCBTP
Member Avatar for eoop.org

@eoop.org: If you first learn how to make the text editor, you can move on to making more complex things like the word processor (WP). Yes, these things take time and you can enhance your programming skill with even the text editor example. What will be the difference between your …

Member Avatar for thines01
0
189
Member Avatar for ar2doq29
Member Avatar for WaltP
0
70
Member Avatar for Ribamar23

I compiled this with Visual Studio 2010 and ran it 10 times. I got the same result in debug and release modes. 100.000000 What compiler did you use?

Member Avatar for WaltP
0
87
Member Avatar for ahmadbakro

I would open a stream to the URI either using a WebClient .OpenRead() or using the HttpWebRequest. See [URL="http://www.daniweb.com/software-development/csharp/threads/407212"]this post[/URL] for the latter.

Member Avatar for thines01
0
331
Member Avatar for anthony143

Have you started [I]any[/I] of this? The rules don't allow us to post full solutions. When you say you don't know where to get started, do you mean with the design of the program or the actual syntax of C++?

Member Avatar for sawako
0
164
Member Avatar for dilse4sk

We would first need to know the name of the columns containing the employee information and the customer information. I assume the employee table has a customer column or vice-versa. ...or there is a third table containg customer and employee IDs. ( ? )

Member Avatar for dilse4sk
0
141
Member Avatar for tontano
Member Avatar for syd919

If you're trying to connect a SQL database to a Silverlight app, it's my understanding that can't be done. Am I off-base? What I've [I]heard[/I] is that you would need to call to WCF or Web Services to get the data.

Member Avatar for thines01
0
252
Member Avatar for linezero

Have you seen [URL="http://www.c.happycodings.com/Sorting_Searching/code5.html"]this[/URL]?

Member Avatar for thines01
0
185
Member Avatar for google2011

Although this is not [I]really[/I] spam, the site at the link is full of banner ads. The content is [B]hard to read[/B] and [B]outdated[/B]. Do you have an updated version of something like this?

Member Avatar for thines01
0
380
Member Avatar for daydie

You might just need to push the individual characters as their [URL="http://www.w3schools.com/tags/ref_ascii.asp"]HTML ASCII[/URL] equivalent.

Member Avatar for daydie
0
129
Member Avatar for jodzjcm

What if the [URL="http://www.cplusplus.com/reference/clibrary/cstring/strcmp/"]return value[/URL] from strcmp is -1?

Member Avatar for Ab000dy_85
0
94
Member Avatar for cmcmurugan
Member Avatar for johnpaul22
Member Avatar for SAM2012

I tried it like this; where I converted a managed string through MFC to native to STL and back to managed. [CODE] #include "stdafx.h" #include <iostream> #include "DW_414826_CPP_MIXED.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // The one and only application object CWinApp theApp; using namespace std; using namespace System; int …

Member Avatar for SAM2012
0
691
Member Avatar for minghags

Did you see this?: [url]http://www.daniweb.com/software-development/cpp/code/216820/968600#post968600[/url]

Member Avatar for stereomatching
0
392
Member Avatar for skatamatic

Have you tried this as a stored proc? It seems as if it should run better than 13 seconds -- especially since the other runs quickly. I would also want to know if you ran each half as a separate query, which one would take longer. I also assume the …

Member Avatar for Ketsuekiame
0
187
Member Avatar for Galindo

MessageBox.Show(); You can convert your numbers to one giant string to concatenate them into something that will show in a MessageBox.

Member Avatar for skatamatic
0
263
Member Avatar for shakthi1512

SQL Server comes with an Import/Export wizard, would that help? Is this going to be a one-time thing?

Member Avatar for thines01
0
29
Member Avatar for ticktock

I first have to ask if it is necessary for you to work at such a low level. It has been a long time since I worked at the network level to perform database operations and I've never thought to do this in C#. Do you control both the client …

Member Avatar for Ketsuekiame
0
238
Member Avatar for danthevan

Is that control a label or a Rich Text Box? Do you have some other type of character set in use? Did you loop through all of the characters and show the ASCII values of what it [I]did[/I] find? I just tried this and it worked (with a Rich Text …

Member Avatar for Mitja Bonca
0
100
Member Avatar for theking12
Member Avatar for theking12
0
223
Member Avatar for Tobyjug2222

How about?: [CODE]While (RandomOutput3.Equals(RandomOutput) Or RamdomOutput3.Equals(RandomOutput2))[/CODE]

Member Avatar for Tobyjug2222
0
234
Member Avatar for EkoX
Member Avatar for EkoX
0
279
Member Avatar for renzlo

I'm confused. You want to change the name of the variable based on the contents of the variable?

Member Avatar for renzlo
0
286
Member Avatar for easygi
Member Avatar for syd919

[QUOTE=syd919;1769113]I really need someone to show me how to call the method that returns a string list[/QUOTE] To get a list of strings, change this: [CODE]public List<Contact> getNames()[/CODE] to [CODE]public List<string> getNames()[/CODE] ...or am I missing the point? but you don't need to call ToList() twice [CODE] public List<string> getNames() …

Member Avatar for syd919
0
136
Member Avatar for kmlilo

Where is the question (or question mark)? Since it is not expected for us to deliver full homework solutions, what question did you have about this? Which part is giving you a problem?

Member Avatar for DeanMSands3
0
197
Member Avatar for Gobble45

Do you know anything about Regular expressions (Regex) or substrings? [CODE] Module Module1 Sub Main() Dim strThingToFind = "abc" Dim strData As String = "there once was an abcklm in the basement" Dim intOffset = strData.IndexOf(strThingToFind) If (Not (intOffset = -1)) Then If (strData.Length > ((intOffset + strThingToFind.Length) + 3)) …

Member Avatar for thines01
0
1K
Member Avatar for manhthaodn

If you're talking about the open-with-list, it's in the System Registry. \HKEY_LOCAL_MACHINE\Software\Classes\*\OpenWithList If you're familiar with Registry Editing, you can make the addition of the key there.

Member Avatar for manhthaodn
0
179
Member Avatar for MastAvalons

There are a few tools to do that, but the first thing you should do is see that you are deleting any dynamically created variables when they are no longer necessary.

Member Avatar for mike_2000_17
0
170
Member Avatar for daydie

[CODE] Dim Regex As New Regex("\w+:\w+")[/CODE] First: Regex is a reserved word, so it should not be the name of the variable. Also, if you're going to use "Split", you do not [I]need[/I] to use a Regex. If you are going to use Regex, you do not need to use …

Member Avatar for daydie
0
177
Member Avatar for kearwood
Member Avatar for jxj123
Member Avatar for rithish

[CODE]if(big>pdata[n])[/CODE] Are you saying here: if "big" is greater than the number in the array, then [B]replace it[/B]? [After that] Are you going to free the data allocated on line 10?

Member Avatar for deceptikon
0
127
Member Avatar for Labdabeta
Member Avatar for Labdabeta
0
421
Member Avatar for koricha

[url]http://en.wikipedia.org/wiki/Sparse_array[/url] If you read that definition, do you consider [B]half[/B] as [B]most[/B]? If so, the answer is obvious.

Member Avatar for histrungalot
0
94
Member Avatar for Sarwat Zodiac

Standard current best programming practices now suggest we break up code into "chunks of functionality" -- grouping sections of code by action into separate functions. Surely in 48k of code, you can see certain: 1) cepeating groups of commands 2) pieces of code that can operate independently 3) code that …

Member Avatar for Sarwat Zodiac
0
230
Member Avatar for selman555
Member Avatar for Eragah
Member Avatar for PutingPanday

Be sure to check the length of the string to make sure it's at least 3 characters (or whatever size of the substring).

Member Avatar for thines01
0
135
Member Avatar for cheekangteh

Are there any spaces or anything that keeps it from being just "1"? Did you .Trim() it? Also, did you look at the value that was returned [B]in the debugger[/B]?

Member Avatar for thines01
0
218
Member Avatar for vuquanghoang
Member Avatar for Eniekko
Member Avatar for Eniekko
0
174

The End.