1,443 Posted Topics
Re: You [I]could[/I] do it this way, but this makes some assumptions: [CODE] using System; using System.Collections.Generic; using System.Linq; namespace DW_406156_CS_CON { class Program { static void Main(string[] args) { List<string> lst_strInput = new List<string>() { "www.test.com", "test.com", "mytest.com" }; lst_strInput .Select(s => s.Replace("www.", "")) .Distinct() .ToList() .ForEach(s => Console.WriteLine(s)); } … | |
Re: [URL="http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/32eed283-9af9-4077-8330-8ffc02d9891b/"]This link[/URL] shows one being populated with simple values, but I would imagine if you looped the results of multiple sources, it would work. Also, if you use LINQ and combine the sources into one output with a select new {}, you could probably do the same trick without the … | |
| |
Re: Check out [URL="http://www.daniweb.com/software-development/assembly/threads/375810"]this thread[/URL] mentioning DosBox. Yes, learning assembly anytime as a programmer can be helpful. What you truly learn is an alternative form of [I]thinking[/I] that will be useful when dealing with other languages, creating your own Domain Specific Language, debugging code in any language, solving complicated problems of … | |
Re: @capton: Why would you want to do that? The language is arranged for a particular flow that you will be interrupting. Would it be possible for your design to adhere to the natural flow? Just return control to main -- maybe with a flag that tells main() it's time to … | |
Re: I'm sure there are some systems written in [URL="http://en.wikipedia.org/wiki/Pascal_(programming_language)"]Pascal[/URL], but they are probably legacy apps. Pascal in the modern age has been usurped by [URL="http://en.wikipedia.org/wiki/Embarcadero_Delphi"]Delphi[/URL], and yes, [URL="http://en.wikipedia.org/wiki/Skypecast#Skypecasts"]Skype[/URL] was written in Delphi. | |
Re: Here check out some of these links on the same subject: [url]http://www.daniweb.com/software-development/cpp/threads/405379[/url] [url]http://www.daniweb.com/software-development/cpp/threads/369511[/url] [url]http://www.daniweb.com/software-development/cpp/threads/405316[/url] | |
Re: Unfortunately, I think it's more than a permissions issue based on what I saw at [URL="http://www.techspot.com/guides/264-change-wallpaper-on-windows-7-starter/"]this link[/URL] and [URL="http://www.bing.com/search?q=windows+7+starter+wallpaper+workaround&qs=AS&sk=AS2&pq=windows%25207%2520starter%2520wallp&sp=3&sc=8-23&form=QBLH"]this search[/URL] | |
Re: The data to delete should be determined before the actual delete action is taking place. 1) Read the original file 2) Ask for stuff to be deleted (pass that list to the function to delete) 3) Write temp file omitting the deleted names 4) Delete original file, rename temp file … | |
Re: They are called format specifiers. [url]http://sharkysoft.com/archive/printf/docs/javadocs/lava/clib/stdio/doc-files/introduction.htm[/url] | |
Re: 1) What are your includes? 2) Have you tried to write to a different directory on the production machine? 3) Have you tried just writing a comment into the production file? | |
Re: Depending on which version of C++ you're using... Borland will allow you to easily set the cursor position and then overwrite what you need. You can also just KEEP all of the data in an array or list and rewrite just the part you want when the screen is fully … | |
Re: That's pretty vague. With no more instruction than that, I would do something like this: [CODE] mov al, '*' ; call myRoutine int 20h myRoutine: mov ah, 09h ; function mov bl, 07h ; color mov cx, 0a ; number of times int 10h ; execute ret [/CODE] | |
Re: The TotalDays, TotalHours, TotalMinutes, TotalSecond, TotalMilliseconds are all doubles that can be displayed as floating point numbers. [CODE]using System; namespace DW_405765_CS_CON { class Program { static void Main(string[] args) { TimeSpan ts = new TimeSpan(1, 1, 1, 1); Console.WriteLine(ts.TotalMilliseconds.ToString("F02")); } } }[/CODE] | |
Re: One of the benefits of java was that it kept (former C++) developers from making memory allocation and other mistakes. Programmers got lazy, so someone took advantage of that and created a language that gained a lot of notariety in the development world. With that said, I think you should … | |
Re: Also, get involved in a real app that you want to use yourself. There is nothing like using your own software. | |
Re: Does "delete" actually get set to true? | |
Re: Remove the semi-colons at the ends of those if/else statements. [CODE] if( fred < bill) { DoSomething(); } else if (bill < sam) { DoSomethingElse(); } [/CODE] | |
Re: [url]http://csharp.net-tutorials.com/file-handling/reading-and-writing/[/url] | |
Re: Yes, downloading the Express edition is legal. Yes, downloading someone's public domain code is legal. All forms of C++ can be compiled with the Express edition. If the product is available in some type of library form (DLL, OCX, LIB, etc), go ahead and use that [I]if[/I] you don't need … | |
Re: If I understand correctly: You want to call a function and trigger an event at the same time from a user control. If that's correct (and you're using Visual Studio): Double-click the user control in design mode. It will create the button_click handler. If you already have that, put the … | |
Re: Are you talking about the Console? ...or do you really want text to appear across the desktop? Console = : [CODE] using System; namespace DW_405628_CS_CON { class Program { static void Main(string[] args) { Console.WriteLine("Hello, World"); } } } [/CODE] | |
Re: From what I understand [URL="http://en.wikipedia.org/wiki/Microsoft_XNA"]XNA[/URL] is what consumers use to create professional games for XBOX (and PC and more), but Microsoft uses something slightly different that consumers will not be able to get. I believe I heard that on [URL="http://dotnetrocks.com/default.aspx?showNum=635"]DNR Podcast #635[/URL] or [URL="http://dotnetrocks.com/default.aspx?showNum=501"]DNR Podcast 501[/URL]. | |
Re: If you are using Vista or Windows 7, you should have an exception when trying to create a file on the root of C. Choose a different directory. | |
Re: Will your input be a time_t or some other time structure? Will it be a string that is input by the user? | |
Re: This isn't ListView code, but it will help: While quickly looking into this, I noticed ONE difference between running applications and running processes is that the applications have Window Titles. There is probably some other quality, but that's the first thing I saw. So, looping through the processes that have … | |
Re: void means a function (either) does not return a result or take parameters ...depending on where it's placed [CODE] //Takes a string; returns nothing public static void DoSomething(string strData) { //...code goes here return; //optional } //returns a string; takes no parameters public static string DoSomething(/*implied void*/) { //...code goes … | |
Re: You have way too many things going on at once. This code should not even compile. Start with the first error. Also figure out what the includes do. [CODE]#include "stdafx.h" #include <iostream> #include<stdlib.h> //#using <System.dll> #include <math.h> #include <time.h> //#include<List> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq;[/CODE] | |
Re: Always start with the first error and ignore the rest for now. Where is [B]eigenVectArr[/B] actgually declared? | |
Re: What did you try? | |
Re: The problem might be something foul in your project files (instead of your code). Can you create a new project then move the code over to it? | |
Re: Well, if you want to download the [URL="http://msdn.microsoft.com/en-us/library/dd871305(v=PROT.13).aspx"]document that exsplains the layout/format[/URL] of a .lnk file, you can parse it and get the root file name from it and check for existence. There might be a project on sourceforge for this. [B]OR[/B] Check out [URL="http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/b3500fe4-f4c0-46e7-883c-0964037a9fa9"]this suggestion[/URL] that says to use … | |
Re: If you are really just after the length, try this and the length will be stored in DI: [CODE] mov si,offset src mov di,offset len sub di, si int 20h src DB 'abcdefghi' len DB '$' [/CODE] | |
Re: What do you mean "Binary files on the database"? Do you mean the filenames are in the database? | |
Re: Well: 1) Make a backup of your project 2) change the .NET level in the project properties 3) Re-compile You won't know how much there is to fix until you try. If you used any LINQ, that will need to change. Everything else is subjective depending on what was done … | |
Re: What columns are "actually" pulled by the SQL? | |
Re: Since this is your first post, I'll explain. The expectation is for you to show [I]some[/I] effort and we will help you where you get stuck. I could possibly help you with the code, but I know NOTHING about Cricket except the look of the bat. If you know in … | |
Re: It depends on your agreement, but traditionally, it will belong to the customer. ...if it was their idea to have it done. Will you always be their developer? Will you benefit from keeping the code forever? If you made the product before ever meeting the customer, it would be different. ![]() | |
Re: What XML class are you using to write the data? What is "kismiTevkifatUygulananlar" and why does it not appear at all in the bottom example? | |
Re: The very few times I've needed to do this, I've used an intermediary (written in managed C++). I used the managed C++ to call and expose the unmanaged function and then call that from C#. Here is an [URL="http://www.daniweb.com/software-development/cpp/threads/393447/1692026#post1692026"]earlier post[/URL] describing it. | |
Re: What is the actual problem? So far, it's just multiplication to get a result, right? [CODE] using System; using System.Collections.Generic; namespace DW_405186_CS_CON { class Program { static void Main(string[] args) { List<int> lst_intSeed1 = new List<int>() { 5, 1, 3, 2, 4 }; List<int> lst_intSeed2 = new List<int>() { 4, … | |
Re: Are you passing the arguments correctly? [url]http://msdn.microsoft.com/en-us/library/h6ak8zt5.aspx#Y1690[/url] | |
Re: Can you turn on the /clr switch in the C++ compiler, then add the DLL as a reference? You would then reference the namespace in the C++ code with "using namespace {name_goes_here};" If you can (and do), you will probably need to change the default character set from Unicode to … | |
Re: Check [URL="http://khason.net/blog/how-to-load-unmanaged-native-resources-from-managed-c-code/"]this[/URL]. I have not tried it. | |
Re: I have not tried [URL="http://forums.asp.net/p/1127248/2735042.aspx"]this[/URL], but the part in green looks promising (at the bottom) | |
Re: It's not cheating if the instructions don't forbid it. You would do the same for a real-world program. For practice, however, you should know how to do it with and without the sort. | |
Re: What do you mean "run"? Do you have some code that opens the XML or do you just want to "see" it in Visual Studio? | |
Re: Was the data written to the file as a string or as an integer? ...meaning: if you read it as a string, then convert it to an integer, does it work? | |
Re: Each reader->Read() will process 1 row. You have 4 rows shown, so it (the Read()) will loop 4 times. The inner loop loops 3 times from 1-to-3 4 on the outside, 3 on the inside. 12 loops. I was thinking 16 earlier, then realized you start that inner loop at … |
The End.