-
Replied To a Post in Sorting Data of Nodes
Consider a simple linked list [insertion sort](http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx#insert). Instead of a direct comparison with relational operators, look at using `strcmp` on the `data` member instead and you'll be good to go. -
Replied To a Post in How to give equal width to all columns depending on listview's size?
> Hello, this would be my second time in posting a question which I solved by myself. Well done. Being able to solve your problems yourself is a great ability … -
Replied To a Post in Windows 8.1 Screen Resolution Flaws
Go to your control panel, then enter `Control Panel\Appearance and Personalization\Display` into the address bar. Make sure the scaling level is set to 100%. When I upgraded to 8.1, it … -
Replied To a Post in regular expression
Also note that your thread titles are very uninformative. -
Created Windows Services Simplified
In my job I tend to write a lot of Windows services. Due to this I've pared it down to bare essentials so that the code is as simple as … -
Replied To a Post in regular expression
`/^[[:alnum:]]*$/` -
Replied To a Post in open Word File
I'm not sure if ODBC works for Word, it would surprise me, to be honest. -
Replied To a Post in open Word File
> But it must work if the Ms word is not present That's what makes things difficult. If the Office API isn't available, you have no choice but to work … -
Replied To a Post in open Word File
I'm not sure, that's why I suggested research. ;) A quick search shows potential options, but I can't offer a recommendation without more extensive poking around. -
Replied To a Post in Why Programming Language [x] is better than [y]
Classic. Your link is broken though. ;) -
Replied To a Post in C++ linker error
C++11 (3.6.1 Main Function) "*A program shall contain a global function called main, which is the designated start of the program. It is implementation-defined whether a program in a freestanding … -
Replied To a Post in C++ linker error
> it's int main(), never void main() because main() always returns an integer back to the operating system. Except when the program is freestanding and not hosted by an operating … -
Replied To a Post in stable_sort == sort?
> which would mean stable_sort would arrange those string with the same length in alphabetical order, is it? No, stable_sort would retain the *original order* of those strings with the … -
Edited cPLUSPLUS
give an example for a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… … -
Replied To a Post in cPLUSPLUS
I can play that game too. We won't do your homework for you. What have you tried? -
Replied To a Post in cPLUSPLUS
We won't do your homework for you. What have you tried? -
Replied To a Post in Urgently i need help for my homework
Let's start by getting a clear idea of what the question is asking. What does "stream" mean in that context? C++ already has a definition for "stream", and it doesn't … -
Replied To a Post in Urgently i need help for my homework
My usual answer to "I don't know how to start" is, did you pay attention in class? If you didn't, it's tough love, but I'd say that you deserve to … -
Replied To a Post in Urgently i need help for my homework
Post the code you've tried and how it didn't work. We can explain why it doesn't work and offer suggestions for how to fix it. -
Replied To a Post in Urgently i need help for my homework
I can't help you until you ask a real question. Just posting your homework assignment is against Daniweb rules. -
Replied To a Post in Urgently i need help for my homework
"Help" does not mean "do it for me". Post your code, ask a real question, and stop appearing as if you're trying to cheat on your homework. -
Replied To a Post in Admin Privilege
A form is not a process. You can wrap it in a process, after a fashion, but that would sever any connection with the calling form and process. -
Replied To a Post in compare textbox value with all items in datagridview
Have you tried anything at all yet? This is a straightforward loop. -
Replied To a Post in open Word File
You may want to do some research on the OpenXML file format, it's not as simple as raw text. For something like this I'd look for a library that extracts … -
Replied To a Post in Admin Privilege
> What is the general way of changing the user account under which the application is running? The general way is to restart the application under elevated privileges: Private Sub … -
Replied To a Post in Member counters recalculated
> You're probably one of the most unpopular posters DW has ever had. I can think of a few that would vie for that title, but they gave up fairly … -
Replied To a Post in Bah Humbug
Little do they know that we geeks don't let mere holidays keep us from Daniweb. ;) -
Replied To a Post in rock , paper , and scissors against the computer?
> i whant full prodram No. Please read our rules. -
Replied To a Post in No answer?
Your question is too vague. -
Replied To a Post in Splitting a string, delimiters included
> @Deceptikon: Out of interest, what's the performance difference between Regex and the LINQ statements I create? That's something I'd profile if it worried me, which it doesn't in this … -
Replied To a Post in rock , paper , and scissors against the computer?
> Please help me ........ With what? All you did was post a homework assignment verbatim. -
Replied To a Post in Help on C program add new entry
You're opening your file in `"a+"` mode. This *doesn't* mean there's a read position and a write position. The file position is initially at the beginning of the file for … -
Replied To a Post in Adding and subtracting binary numbers.
What have you tried for yourself? -
Replied To a Post in multiple c files
What you're asking is nonsensical. You want `var1` and `FUNC` to have file scope, yet still be visible in other files. Why? My guess is that you're confusing how `static` … -
Replied To a Post in Splitting a string, delimiters included
> Done :) The result set must *include* delimiters, not remove them. ;) Try this little one-liner: var parts = Regex.Split("abc,123.xyz;praise;end,file,clear", @"([\.,;])"); -
Replied To a Post in New feature: members who contributed
> It was more like, "Normally Daniweb users are able to help their users so why can't you help out like them"and so on... It wasn't like, "SO is #### … -
Replied To a Post in Setting data source of oledbconnection
I wasn't implying my way is best practice, just some anecdote on how I work. Maybe I'm just a control freak. ;) -
Began Watching Setting data source of oledbconnection
I have created an application in c#. Following are my concerns. 1) create setup file which includes the ms access db 2) identify the location where this db will be … -
Replied To a Post in Setting data source of oledbconnection
> If you have VS you can also connect to a database via the Data menu. Maybe I just have an old school mentality, but I've *never* handled database connections … -
Replied To a Post in trying to copy string into structure object.
> `strcpy(ptr->name, s);` strcpy(ptr->name, s.c_str()); However, be very careful that the length of `s` doesn't exceed the bounds of `ptr->name`. The ideal (aside from using `std::string` for `name` in the … -
Replied To a Post in Help in C program Login
> The problem is when I login, it would only read one record. That's exactly what you tell it to do. Technically, your file reading loop in `login` is pointless … -
Replied To a Post in What does -> mean?
> My books show - and > but neither of them seem to apply. The books don't seem to show both together. Strange books. `->` is a single token, and … -
Replied To a Post in tabPage events
That's an easy one, `TabPage` doesn't have an `Activated` event. :) The `Click` event is fired when the mouse clicks on the control. -
Replied To a Post in System.ComponentModel.MarshalByValueComponent
The reference is System.ComponentModel, `MarshalByValueComponent` is a class in the namespace. -
Replied To a Post in No Google Glass for most developers until 2014
Is that a big square hole in your wall? -
Edited Software Update
How do stop automatic software update? -
Replied To a Post in global class for DB connection
Yes. -
Replied To a Post in global class for DB connection
I'd recommend against that, actually. It makes managing the connection harder. Also, many database servers will support connection pooling to eliminate the performance cost of creating, opening, and closing a … -
Replied To a Post in my_config.h:506:16: error: multiple types in one declaration
I'm going to guess that `mode_t` is already defined as something like `unsigned int`, or maybe as an intrinsic type in your compiler. In that case, your define would end … -
Replied To a Post in my_config.h:506:16: error: multiple types in one declaration
Please post the contents of `my_global.h`.
The End.