Type: Posts; User: darwen
Search took 0.13 seconds.
Actually it sounds like this is a windows message loop problem.
By calling show dialog the dialog is setting up its one message loop which pumps the window's messages around.
Or in your case :
wchar_t ch = ' '
array<wchar_t>^ returnstr = gcnew array<wchar_t>(10);
int pos = str->IndexOf(ch);
str->CopyTo(0, returnstr, 0, pos);
return gcnew String(returnstr);
Dead easy :
const wchar_t *test = L"hello there";
String ^xx = gcnew String(test);
To fix your original problem :
foreach (HtmlAgilityPack.HtmlNode node in rowNodes)
string url_1 = node.InnerText;
urlpool0 = new ArrayList(); // problem is here ! creating a new...
April 20th, 2012, 12:16 PM
C++ is a great starting point in my opinion but beware ! The learning curve is very steep (especially when you start moving into templates etc).
For instance if you know (and I really do mean know...
February 6th, 2012, 11:49 AM
Try not to mix .NET and native C++ constructs like this.
Vector is a native C++ container and in .NET you should be using the .NET equivalents : System.Collections.Generic.List for instance.
January 17th, 2012, 10:29 AM
You can do this using delegates :
// have to fill in the types with '...' yourself, don't know what they are
IEnumerable<...> GetQuery(... checkData, Guid guidToFind, Func<Guid, ...>...
January 13th, 2012, 08:19 AM
You've not shown any code which is the slow part - you mentioned TickImporter.ImportDataToStore can you post that ?
If this is loading 20 files from disc at the same time then this'll be causing...
January 13th, 2012, 06:44 AM
What you're doing isn't C++ - it's C++/CLI which is a completely different language although it looks very similar. Google for "native C++" and "managed C++" and see the differences.
Some of your...
January 6th, 2012, 11:54 AM
One thing I've done to speed up this sort of thing before is to add all elements to a list (unordered) first, then sort the list.
You can then easily remove duplicates by checking adjacent...
December 23rd, 2011, 09:52 AM
Just about any application will use data structures. Try writing one without them !
December 23rd, 2011, 07:30 AM
I think it is essential for any programmer to know standard data structures nomatter which language they use.
They should also know basic algorithms like search algorithms.
December 23rd, 2011, 06:08 AM
You can't return structs from PInvoke methods.
You'll have to do it like this :
December 23rd, 2011, 05:10 AM
Sounds like a homework question to be, but I'll answer it regardless.
The behaviour of standard data structures is something everyone should know in any language, not just C#.
In order to...
December 23rd, 2011, 05:03 AM
Why is the c# copying the exe into it's local folder ? Are you adding the game exe as a reference ? It won't do this by default. You shouldn't be adding the exe as a reference anyway if you are doing...
December 14th, 2011, 01:11 PM
This really isn't the way to do things. DoEvents or anything like it should be avoided at all costs because it can cause all sorts of problems (re-entrancy of code etc etc).
What you really should...
December 9th, 2011, 10:36 AM
Don't worry about creating a new instance every time. .NET will clean up automatically for you (that's what working in a managed language is all about).
You could always make the instance of the...
November 2nd, 2011, 07:35 AM
Doing this in WPF is really easy. There's lots of examples on the net as well - see here..
October 28th, 2011, 05:05 AM
You should have a member called 'cmbDocumentClasses'. Windows forms puts a member variable named the same as the 'Name' property for each control into the form.
public void Example()...
October 26th, 2011, 05:48 AM
The only way to do this is to use generics. Otherwise you can't define the type of the return value.
October 14th, 2011, 08:33 AM
Have you looked at string.Replace method ?
string x = "AT52156123156\r\nNL648312315";
string result = x.Replace("AT", string.Empty);
result = result.Replace("NL", string.Empty);
October 14th, 2011, 06:46 AM
I personally wouldn't use a regex for this.
Try this :
October 6th, 2011, 10:14 AM
In answer - yes, you can do this with reflection.
However you shouldn't - it leads to runtime errors rather than compile-time errors (so they tend to happen infront of users which makes you look...
October 3rd, 2011, 01:25 PM
Another consideration is memory.
List (unless you set its capacity) continually doubles the memory it uses when its internal buffer becomes full.
This can lead to large sections of unused...
August 18th, 2011, 04:13 AM
Or server-side developement. Or linux.
And that's if they write a UI at all.
Oooh I love 10,000 lines of xml config files and console apps.
Reminds me of when I started by University degree...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!