1,443 Posted Topics

Member Avatar for caltech
Member Avatar for M.Waqas Aslam

I find most IDEs for Java sluggish, so I use [URL="http://textpad.com/"]Textpad[/URL]. It has syntax highlighting and can run your compiler if configured properly. I still just use the SDK directly to compile (Java, Assembly, Ruby, Python and Perl). With that said: I am a complete Visual Studio junkie for C#, …

Member Avatar for M.Waqas Aslam
0
177
Member Avatar for JamesCherrill

Hmmm... I say they are the same. I think (in Java and C#) using the {} calls "new". ...testing... Well, I created two programs with the same variable names and same class names, compiled them and ran fc /b over them: "FC: no differences encountered" at the [B]byte[/B] level.

Member Avatar for JamesCherrill
0
183
Member Avatar for Mr Cluee
Member Avatar for sudheer2250
Member Avatar for maxmeier

Depending on how you query the database, your result will come back in an array or other collection anyway, so you will only need to inspect the number of columns returned. You can treat all results as strings, if necessary. How are you querying the database?

Member Avatar for maxmeier
0
147
Member Avatar for rickenjus
Member Avatar for thines01
0
376
Member Avatar for dilse4sk

Maybe a graphical representation of their confirmed location (in the plane, ship, theatre, etc.).

Member Avatar for thines01
0
149
Member Avatar for poojavb

Do you need () on the Read()? [url]http://msdn.microsoft.com/en-us/library/haa3afyz.aspx#Y608[/url]

Member Avatar for poojavb
0
493
Member Avatar for Sravanthi Ch

Do you have the source code for the DLL (dot net Assembly) that was built with 'v1.1.4322'? If so, can you re-compile THAT? If you change your target dot net level to 3.5 or lower, does it work?

Member Avatar for thines01
0
153
Member Avatar for Sravanthi Ch

Is this question in the right forum? Do you have the source code for the DLL (dot net Assembly) that was built with 'v1.1.4322'? If so, can you re-compile THAT? If you change your target dot net level to 3.5 or lower, does it work?

Member Avatar for thines01
0
134
Member Avatar for saneeha.nust

How you choose to store the data should really depend on what you're going to do with it when you get it out of the database. My code example would be pretty-much like ChrisHunter's example. I recommend custom classes for the data where you fill a collection of those classes …

Member Avatar for saneeha.nust
0
145
Member Avatar for Johan__
Member Avatar for huh
Member Avatar for thines01
0
97
Member Avatar for digiguy

I recommend ASP.NET with a C# back-end. If done with class-libraries (in assemblies), you can use ANY dot net language as long as your "stub" is in either VB or C#. ...but I still recommend C#.

Member Avatar for skatamatic
0
145
Member Avatar for jd2369

Depending on the structure of the page, you can load it with a WebClient or a HttpWebRequest methodology. Once you've loaded the page, you can search the HTML for the file name and download it. If the site does not require you to log in, you can use the WebClient's …

Member Avatar for thines01
0
361
Member Avatar for nonlinearly

Where did you put the DLL? Is it in the path of the program? What DLL did it say you were missing and what was the actual error given by the linker?

Member Avatar for nonlinearly
0
249
Member Avatar for matt209
Member Avatar for matt209
0
667
Member Avatar for uva1102

Assuming this is LINQ: It would [I]probably[/I] be something like: [CODE=C#] var lstOfRecords = ( from d in p.preventiveRecords.Where(d => d.Date_Done != null && p.preventiveRecords.Where( e =>e.VerifiedbySupervisor == null)) select new { d.ID, d.Date_Done, d.Date_Due, d.SME, d.Status, d.History_ID, d.Remark, d.Verifiedbysupervisor, d.Verifiedbymanager } ).ToList(); [/CODE] ...but if you're trying to actually …

Member Avatar for thines01
0
164
Member Avatar for notuserfriendly

Your code will be the best "tool" for this. Even if you could find some third-party software to do this: by the time you finish configuring it to work with your files, you could write something to take care of it. As ddanbe mentioned, so do I: I still do …

Member Avatar for thines01
0
305
Member Avatar for NCl

I would use the WebClient class. The OpenRead() method will let you open the web page like a file.

Member Avatar for thines01
0
300
Member Avatar for bhagawatshinde

You could do something like this: [CODE] using System.IO; using System.Net; namespace DW_413504_CS_CON { class Program { public static void DoWebClientExample(string strURI) { WebClient wc = new WebClient(); wc.DownloadFile(strURI, "c:\\install\\txpeng542.exe"); } static void Main(string[] args) { string strURI = "http://www.textpad.com/download/v54/txpeng542.exe"; DoWebClientExample(strURI); } } } [/CODE]

Member Avatar for bhagawatshinde
0
3K
Member Avatar for NPDA
Re: help

The only version of VS Professional I have seen for free (download) is [URL="http://www.microsoft.com/visualstudio/en-us/try"]the trial edition[/URL]. I [I]have[/I] seen the standard (2008 at a conference) and [URL="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express"]express editions (online) available (for free)[/URL], however

Member Avatar for skatamatic
0
110
Member Avatar for shean1488

I compiled this as-is and it compiled and ran with no problem. Maybe your path and/or CLASSPATH are not properly set up. [CODE=TEXT] C:\science\java\DaniWeb\413619>javac Example.java C:\science\java\DaniWeb\413619>java Example List : BLUE BLACK WHITE [/CODE]

Member Avatar for thines01
0
227
Member Avatar for codechrysalis

You have not called the other functions in your code FROM main. The only method you're calling is DisplayIntructions(); Also, how is the program supposed to detect the user has stopped entering values? Something like this might help: [CODE] using System; using System.Collections.Generic; using System.Linq; namespace DW_412384_CS_CON { class Program …

Member Avatar for codechrysalis
0
2K
Member Avatar for daydie

When you're not sure how the lines will be broken, it will be tricky. You could do it like this or just remove ALL whitespace and look between the closing span and opening span. I made a mock-up of the HTML and put it in a string array to simulate …

Member Avatar for thines01
0
130
Member Avatar for dwarvenassassin

A lot of this has to do with the technique of filling the controls at the same time you're reading from the database. The controls are not exactly the same and neither is the driver getting to the database. I *personally* would read the content into a collection then put …

Member Avatar for Momerath
0
195
Member Avatar for itsvineethpv

What do you mean? A web service is meant to process functions; not to render graphically. What type of methods are you talking about doing and do you have any experience with Web Services?

Member Avatar for thines01
0
126
Member Avatar for theking12

Here are some links: [url]http://www.cpp-home.com/tutorials/155_1.htm[/url] [url]http://tutorialsto.com/index.php/software/c/visual-c-in-the-odbc-programming.html[/url]

Member Avatar for thines01
0
52
Member Avatar for emmasmart

1) Learn to code something (using books, videos, audio, lectures) 2) Write code 3) Learn from your mistakes 4) Repeat

Member Avatar for Moschops
0
114
Member Avatar for itsvineethpv
Member Avatar for jackbauer24

I know this sounds antiquated, but I learned a lot by writing a text adventure game -- like a [URL="http://www.freearcade.com/Zplet.jav/Scottadams.html"]Scott Adams text adventure game[/URL] back in the early 1980s. Something like that would expand his knowledge of user interaction and could be great for learning code re-use. It could be …

Member Avatar for zeroliken
0
309
Member Avatar for catcit
Member Avatar for BasixDev

I've never seen a .sdf file opened with MFC. ( but ... ) Is it possible to set an ODBC entry to that file and hit it through ODBC? If so, can you see it when you use MS Query?

Member Avatar for BasixDev
0
215
Member Avatar for lancelot626

If you already know a little Java, you should probably use that. If you really WANT to learn a different language, the options are wide-open.

Member Avatar for dantinkakkar
0
166
Member Avatar for ogglock
Member Avatar for MrEARTHSHAcKER

Under dot net, it is very easy to mix languages (C++, F#, C#, VB). Others are also available. I have not done any [I]GUI[/I] programming outside of MFC or dot net, so I cannot answer for other operating systems or platforms.

Member Avatar for mike_2000_17
0
275
Member Avatar for KRUX17

Why would they need to wait for an hour? I must be missing something in the explanation. Are you having problems with timing in the code or ticket sales or not showing the menu for an hour or ???

Member Avatar for KRUX17
0
246
Member Avatar for VasquezPL

You can pass it as a referrence parameter in a function and have that function allocate it. You can also just use an empty List<string> lst_str = new List<string>(); and the function can populate it without having to call new on it. [CODE] using System.Collections.Generic; using System.Linq; namespace DW_413211_CS_CON { …

Member Avatar for VasquezPL
0
292
Member Avatar for mits28

I'm looking at [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/Statement.html"]the documentation[/URL] and I don't see a way to "executeScalar" -- which is what I think you're looking for. One technique you could use is to put that stuff in a function, get the count the hard way and return it as a long. That way, you …

Member Avatar for stultuske
0
459
Member Avatar for vivekanandaan
Member Avatar for jrosh

Are you getting a [URL="http://geekswithblogs.net/PsudoKnowledgeBase/archive/2011/09/01/nullreferenceexception-when-calling-the-retrieve-method-of-the-organizationserviceproxy-object.aspx"]NullReferenceException[/URL]?

Member Avatar for jrosh
0
101
Member Avatar for bhagawatshinde

The transaction will be bound to the connection and passed to each command. Issue .Commit() when you're ready and your commands have succeeded. You can set up a reference to the connection and to the transaction, so if the even fails, you can rollback in the Exception handler. [CODE] using …

Member Avatar for bhagawatshinde
0
515
Member Avatar for adamb0mb

Have you looked into [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html"]DecimalFormat[/URL]? [CODE] import java.util.*; import java.text.*; // ... DecimalFormat df=new DecimalFormat("$0.00"); // ... System.out.println(p.getCode() + "\t" + p.getDescription() + " @ " + df.format(p.getPrice())); // ... [/CODE]

Member Avatar for thines01
0
209
Member Avatar for jefferson9
Member Avatar for free2move
Member Avatar for free2move
0
2K
Member Avatar for darkelflemurian

Is it going to be used in a calculation after it reaches Excel? If not, can your template treat it as a string?

Member Avatar for darkelflemurian
0
476
Member Avatar for Hussam Alahmadi
Member Avatar for DavidKroukamp
-1
137
Member Avatar for dresdor

I also suggest that maybe you create a console app in C#. You will notice a familiarity when receiving input, looping, displaying and other output. You will also find that coding in C# will also make you a better C++ programmer (in some ways). I like videos. [url]http://DnrTV.com[/url] is a …

Member Avatar for darkelflemurian
0
235
Member Avatar for s_mostafa_h

You could also encrypt it and store it in the system registry. OR You could just set a value somewhere in the registry to let the program know the password was previously accepted.

Member Avatar for darkelflemurian
0
222

The End.