1,443 Posted Topics

Member Avatar for sam1

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)); } …

Member Avatar for sam1
0
235
Member Avatar for fanan

[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 …

Member Avatar for fanan
0
94
Member Avatar for BleepyE
Member Avatar for silvercats

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 …

Member Avatar for AceStryker
0
190
Member Avatar for capton

@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 …

Member Avatar for AceStryker
0
2K
Member Avatar for Karlwakim

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.

Member Avatar for AceStryker
0
100
Member Avatar for Talli

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]

Member Avatar for Talli
0
477
Member Avatar for Cronicle8

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]

Member Avatar for Cronicle8
0
119
Member Avatar for swagen

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 …

Member Avatar for thines01
0
168
Member Avatar for rotten69

They are called format specifiers. [url]http://sharkysoft.com/archive/printf/docs/javadocs/lava/clib/stdio/doc-files/introduction.htm[/url]

Member Avatar for JamesCherrill
0
324
Member Avatar for jesse.johnson

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?

Member Avatar for jesse.johnson
0
239
Member Avatar for PrimePackster

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 …

Member Avatar for PrimePackster
0
2K
Member Avatar for stakeMyHeart

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]

Member Avatar for Zssffssz
0
340
Member Avatar for Andy90

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]

Member Avatar for thines01
0
221
Member Avatar for Karlwakim

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 …

Member Avatar for Karlwakim
0
438
Member Avatar for suneye

Also, get involved in a real app that you want to use yourself. There is nothing like using your own software.

Member Avatar for suneye
0
117
Member Avatar for naveedqadri
Member Avatar for cpole

Remove the semi-colons at the ends of those if/else statements. [CODE] if( fred < bill) { DoSomething(); } else if (bill < sam) { DoSomethingElse(); } [/CODE]

Member Avatar for JamesCherrill
0
177
Member Avatar for merjune

[url]http://csharp.net-tutorials.com/file-handling/reading-and-writing/[/url]

Member Avatar for thines01
-6
47
Member Avatar for Tester2

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 …

Member Avatar for Tester2
0
362
Member Avatar for mrnobody

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 …

Member Avatar for mrnobody
0
656
Member Avatar for Panathinaikos22

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]

Member Avatar for dmanw100
0
187
Member Avatar for galhajaj

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].

Member Avatar for thines01
0
112
Member Avatar for madhan

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.

Member Avatar for thines01
0
132
Member Avatar for sameerge

Will your input be a time_t or some other time structure? Will it be a string that is input by the user?

Member Avatar for Narue
0
1K
Member Avatar for shandoosheri

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 …

Member Avatar for thines01
0
286
Member Avatar for deucalion0

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 …

Member Avatar for deucalion0
0
142
Member Avatar for SaimaAsif

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]

Member Avatar for thines01
0
250
Member Avatar for Zssffssz
Member Avatar for rubberman
0
73
Member Avatar for yinyue

Always start with the first error and ignore the rest for now. Where is [B]eigenVectArr[/B] actgually declared?

Member Avatar for yinyue
0
467
Member Avatar for Vetha
Member Avatar for ChrisMackle

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?

Member Avatar for ChrisMackle
0
110
Member Avatar for shandoosheri

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 …

Member Avatar for thines01
0
183
Member Avatar for iPanda

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]

Member Avatar for dheaven
0
121
Member Avatar for uchiha203

What do you mean "Binary files on the database"? Do you mean the filenames are in the database?

Member Avatar for uchiha203
0
226
Member Avatar for bhagawatshinde

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 …

Member Avatar for thines01
0
120
Member Avatar for auwi987
Member Avatar for krehman143

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 …

Member Avatar for PrimePackster
-2
161
Member Avatar for Mr.BunyRabit

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.

Member Avatar for hfx642
0
181
Member Avatar for gokhantiknaz

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?

Member Avatar for gokhantiknaz
0
158
Member Avatar for PoovenM

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.

Member Avatar for gusano79
0
639
Member Avatar for ogsirus

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, …

Member Avatar for thines01
0
182
Member Avatar for roottybrian

Are you passing the arguments correctly? [url]http://msdn.microsoft.com/en-us/library/h6ak8zt5.aspx#Y1690[/url]

Member Avatar for roottybrian
0
116
Member Avatar for PoovenM

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 …

Member Avatar for PoovenM
0
952
Member Avatar for PoovenM

Check [URL="http://khason.net/blog/how-to-load-unmanaged-native-resources-from-managed-c-code/"]this[/URL]. I have not tried it.

Member Avatar for thines01
0
190
Member Avatar for smitha_aa

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)

Member Avatar for thines01
0
72
Member Avatar for pwolf

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.

Member Avatar for pwolf
0
293
Member Avatar for madhan

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?

Member Avatar for thines01
0
96
Member Avatar for Nordijac

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?

Member Avatar for JamesCherrill
0
170
Member Avatar for smurfy

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 …

Member Avatar for smurfy
0
116

The End.