9,868,710 members (29,216 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
107 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 3
Page Size:
10
·
25
·
50
Author filtered by: du[DE]
[x]
Register console app to work from any directory
by
du[DE]
Answer
8 May 2013
license:
CPOL
Although this has nothing to do with programming, I think you can simple add the path of your console application to the PATH system variable: Windows 7 Select Computer from the Start menu Choose System Properties from the context menu Click Advanced system settings >...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Console
How to restrict length for a textbox
by
du[DE]
Answer
6 May 2013
license:
CPOL
When using a MultiLine TextBox (which generates a TextArea) setting the MaxLength property has no effect.There are some workaround, take a look: http://stackoverflow.com/questions/9797726/how-to-set-maxlength-for-multiline-textbox[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Unable to create multiple threads using for loop
by
du[DE]
Answer
6 May 2013
license:
CPOL
This code works without errors and creates 3 worker threads, keep in mind that you need a return value as int and int max_number = 3 and function[i]:DWORD WINAPI ThreadProc0(LPVOID param){ return 0; }DWORD WINAPI ThreadProc1(LPVOID param){ return 0;}DWORD...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Threading
threads
programming
How to Make a driver
by
du[DE]
Answer
6 May 2013
license:
CPOL
In case you want to write a windows' driver, you can start here: Driver Development Part 1: Introduction to Drivers[^]
General Programming
»
Uncategorised Quick Answers
»
General
C++
Cannot convert method group 'Trim' to non-delegate type 'int'
by
du[DE]
Answer
30 Apr 2013
license:
CPOL
1. Trim is a method: use rather txt_Studid.Text.Trim() as txt_Studid.Text.Trim2. Trim's return value is rather string as int: use string str = txt_Studid.Text.Trim();3. To convert string to integer use:int a = Convert.ToInt32(str);Good luck, dude!
General Programming
»
Uncategorised Quick Answers
»
General
C#
not able to change size of mfc virtual list control header
by
du[DE]
Answer
30 Apr 2013
license:
CPOL
Take a look: VC++ MFC Tutorial: CListCtrl, InsertItem, Using List Control, SetImageList, Article with source code[^]>can we have any other option to increase or decrease the column width of virtual list control.Yes, we can:// The pointer to my list view control.extern CListCtrl*...
General Programming
»
Uncategorised Quick Answers
»
General
C++
virtual
ListControl
MFC/C++
Pdf merger in C# application
by
du[DE]
Answer
30 Apr 2013
license:
CPOL
Take a look: Simple .NET PDF Merger[^]There are a couple of PDF mergers available on the Internet. But, either they are commercial products or don't support printing of the header and/or footer text, which is particularly interesting, e.g., to print the page number.The presented PDF...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
PDF
Update only Client Rectangle
by
du[DE]
Answer
29 Apr 2013
license:
CPOL
I think the problem is the acces of GUI from the worker thread. Take a look at this article to see how to do right way: Using Worker Threads[^]Worker threads and the GUI II: Don't touch the GUIThat's right. A worker thread must not touch a GUI object. This means that you should not query...
General Programming
»
Uncategorised Quick Answers
»
General
graphics
MFC/C++
A static member variable export error
by
du[DE]
Answer
29 Apr 2013
license:
CPOL
Probably you have to have a declaration in your executable which uses DLL, like this:declspec( __dllimport ) extern int MyClass:: num;If it does not help, then add a static helper function for accessing that variable, for example:AFX_EXT_CLASS class CTest1{ static int...
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
static
export
how do you use unicode to c++
by
du[DE]
Answer
24 Apr 2013
license:
CPOL
Try this and say please whether it helps:#include #include int main() { std::wstring name; std::wcout > name; std::wcout
General Programming
»
Uncategorised Quick Answers
»
General
C++
stl::hash_set.insert() is extremely slow in debug mode
by
du[DE]
Answer
24 Apr 2013
license:
CPOL
STL is very slow while debugging in Visual Studio due to the iterator debugging support. You can speed this up dramatically by setting #define _HAS_ITERATOR_DEBUGGING 0Quelle: http://msdn.microsoft.com/en-us/library/aa985939(v=vs.80).aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C++
STL
How to get Windows start time in C#.
by
du[DE]
Answer
23 Apr 2013
license:
CPOL
You could use the "System Up Time" performance counter to get the start time of the system PerformanceCounter-Klasse[^] PerformanceCounter systemUpTime = new PerformanceCounter("System", "System Up Time"); systemUpTime.NextValue(); TimeSpan upTimeSpan =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
VB
ASP.NET
cannot delete row from gridview
by
du[DE]
Answer
23 Apr 2013
license:
CPOL
On the first glance I think you have forgot to open/close the connection, try this:protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e){ if (e.CommandName.Equals("Delete")) { int index = Convert.ToInt32(e.CommandArgument); var id =...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Export Visual Studio project WITH database
by
du[DE]
Answer
22 Apr 2013
license:
CPOL
Please take a look at this answer on StackOverflow: Deploy Visual Studio 2010 Database Project[^]Yes, you can deploy from Visual Studio to different machines. You can also do it from the command line, using VSDBCMD. And you can create a WIX project to give a wizard for others to install it...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.net applcation memory management
by
du[DE]
Answer
22 Apr 2013
license:
CPOL
As TheFantomUpvoter already said, no need to worry about that. Take a look: Memory Management in .NET[^]The point is, there is a garbage collector that take care about the memory management of .NET application:De - allocation of memory is also different from normal Win32...
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
Checking an URL takes too much time
by
du[DE]
Answer
19 Apr 2013
license:
CPOL
I think you can easy check whether an URL is valid like this:WebClient webClient = new WebClient();try { Stream strm = webClient.OpenRead(URL); // No exception, so the URL is valid! }catch (WebException we) { // houston...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to upload image to network server using open file dialogue via windows application c#
by
du[DE]
Answer
19 Apr 2013
license:
CPOL
>Can you provide the code..I want to access network folder and upload to it..You can use the OpenFileDialog like this:string Pfad = string.Empty;OpenFileDialog openFileDialog1 = new OpenFileDialog();openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL Server not found
by
du[DE]
Answer
19 Apr 2013
license:
CPOL
Take a look: Potential causes of the "SQL Server does not exist or access denied" error message[^]"SQL Server does not exist or access denied" is a generic Microsoft Data Access Components (MDAC) message that indicates that the computer that is running Microsoft SQL Server cannot be...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
SQL-Server
Application
example of threadpool in c/c++
by
du[DE]
Answer
18 Apr 2013
license:
CPOL
Take a look: Simplest ThreadPool example Using C++[^]What is ThreadPool?Thread Pool is collection of Live, Reusable threads. Why ThreadPool?There are many situation where we can use ThreadPool. Consider a Client-Server application in which server has to respond to multiple client at...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Threading
Silverlight Application in asp.net
by
du[DE]
Answer
15 Apr 2013
license:
CPOL
You need to install this package: http://go.microsoft.com/fwlink/?LinkID=188039[^]After successfully installing it, the issue should be gone. Good luck!
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
how i get sqrt to biginteger number in c++
by
du[DE]
Answer
13 Apr 2013
license:
CPOL
Try this:/* * Tested long integer square root function. */#include #include #define true 1#define false 0#if DEBUG/* * Return true if x is the truncated integer square root of y. */intverify_lsqrt(long y, long x){ if ((long long) x * x >...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Context Menu in Dialog based application
by
du[DE]
Answer
13 Apr 2013
license:
CPOL
Take a look at this step-by-step explanation: http://www.functionx.com/visualc/howto/contextmenu.htm[^]Sometimes you may want to display a context menu. That is, if the user right-clicks, instead of a (left) click, you may want to display a particular menu. Many MFC controls don't provide...
General Programming
»
Uncategorised Quick Answers
»
General
MFC
header file for the function poll
by
du[DE]
Answer
12 Apr 2013
license:
CPOL
Take a look at this site: http://forums.codeguru.com/showthread.php?460259-pollfd-in-windows[^]Q: poll.h does not exist in windows so poll() for sockets does not compile. Is there a way to make it work, or an alternative method?A: It's my understanding that poll() performs the same...
General Programming
»
Uncategorised Quick Answers
»
General
C
Problem with IWebBrowser2
by
du[DE]
Answer
12 Apr 2013
license:
CPOL
I've got an idea ;)Try this:VARIANT vFontSize;VariantInit (&vFontSize);V_VT(&vFontSize) = VT_I4;V_I4(&vFontSize) = 4; //arbitrary picked zoom value out of a possible range from 0 to 4//m_pBrowser->ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, &vFontSize,...
General Programming
»
Uncategorised Quick Answers
»
General
C++
COM
C++/MFC
How to edit my professional profile on code proejct
by
du[DE]
Answer
12 Apr 2013
license:
CPOL
Try this:http://www.codeproject.com/script/membership/modify.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
Editors
how to convert xls into xml
by
du[DE]
Answer
12 Apr 2013
license:
CPOL
XLS is already XML, take a look: Microsoft Office XML formats[^]The Microsoft Office XML formats are XML-based document formats (or XML schemas) introduced in versions of Microsoft Office prior to Office 2007. Microsoft Office XP introduced a new XML format for storing Excel spreadsheets and...
General Programming
»
Uncategorised Quick Answers
»
General
VC++
Question about passing function as arguments to function
by
du[DE]
Answer
11 Apr 2013
license:
CPOL
Yes sure, but what if you want to change the values of more then one variable?Your function can return only ONE value so you need to find the way, how you can change the input parameter of the function - and this way is using of pointers (or in C++ of references).A good example: you want...
General Programming
»
Uncategorised Quick Answers
»
General
C
sethostname identifier not found error.
by
du[DE]
Answer
11 Apr 2013
license:
CPOL
I think, you need to include winsock2.h
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
programming
Networking
Strange link error while rebuilding in visual Studio 2012
by
du[DE]
Answer
10 Apr 2013
license:
CPOL
As I already wrote here [Strange link error while rebuilding in visual Studio 2012], Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not.Build is the...
General Programming
»
Uncategorised Quick Answers
»
General
C++
linker
VisualStudio2012
SET type values MySQL
by
du[DE]
Answer
10 Apr 2013
license:
CPOL
Try this:select * from userInterestwhere (userInterest.interest LIKE '%abc%' OR userInterest.interest LIKE '%def%')
General Programming
»
Uncategorised Quick Answers
»
General
SQL
MySQL
std::shared_ptr..unable to resolve identifier
by
du[DE]
Answer
10 Apr 2013
license:
CPOL
"unable to resolve identifier" means, your class Person is unknown here, you need to include the header of the class "Person" as well!Something like:#include #include "Person.h"
General Programming
»
Uncategorised Quick Answers
»
General
C++
Cygwin
netbeans
Copying contents of a text file into a buffer (win32api)
by
du[DE]
Answer
10 Apr 2013
license:
CPOL
Try this://if((bytes_read=fread(file_buffer, file_size, 1, fpSend))
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
programming
Text
Difference between parse and convert
by
du[DE]
Answer
9 Apr 2013
license:
CPOL
I would say, this two methods have not much in common. public static DateTime Parse( string s)Converts the string representation of a date and time to its DateTime equivalent.Return ValueType: System.DateTimeAn object that is equivalent to the date and time contained in...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Disable windows key-shortcuts
by
du[DE]
Answer
9 Apr 2013
license:
CPOL
Yepp, it is possible by using so called low-level keyboard hook.The hook must be implemented as a DLL, and it will watch for any of the common key sequences used to switch tasks. Whenever it detects one of those sequences, it will ignore the input by not passing it down the hook chain. Paul...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Running a GUI program from within a dialog based program but waiting for it to close.
by
du[DE]
Answer
5 Apr 2013
license:
CPOL
Good question, Ron! Try to do something like this:STARTUPINFO info={sizeof(info)};PROCESS_INFORMATION processInfo;if (CreateProcess(path, cmd, NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)){ ::WaitForSingleObject(processInfo.hProcess, INFINITE); ...
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
My vote of 5
by
du[DE]
Forum Message
5 Apr 2013
Good job!
General Discussions
»
Adding Icons To The System Tray
Connecting WiiMote to PC
by
du[DE]
Answer
5 Apr 2013
license:
CPOL
Take a look at this article, HTH: http://channel9.msdn.com/coding4fun/articles/Managed-Library-for-Nintendos-Wiimote[^]In this article, Brian Peek demonstrates how to connect to and use the Nintendo Wiimote from C# and VB.NET. The final output is an easy-to-use managed API for the Wiimote...
General Programming
»
Uncategorised Quick Answers
»
General
Visual-Studio
VB
VB.NET
Bluetooth
Running multiple programms in one process?
by
du[DE]
Answer
4 Apr 2013
license:
CPOL
No, that is not possible since there is no difference between a program and process apart from the fact that the first is static and the second running.I mean, the process is the running program. One process can however have several threads ...Take a look at (possibly) better...
General Programming
»
Uncategorised Quick Answers
»
General
C++
sorting ListView in C#
by
du[DE]
Answer
2 Apr 2013
license:
CPOL
I think you need to set the ListView.Sorting Property to SortOrder.Ascending http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.sorting.aspx[^]// Sort the items in the list in ascending order.listView1.Sorting = SortOrder.Ascending;
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to convert an especial date to an other calendar type date?
by
du[DE]
Answer
31 Mar 2013
license:
CPOL
Try this (found at forums.codeguru.com/showthread.php?246724.html):[StructLayout(LayoutKind.Sequential)]public struct SYSTEMTIME{ public short wYear; public short wMonth; public short wDayOfWeek; public short wDay; public short wHour; public short wMinute; public short...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Happy Eastern, friends!
by
du[DE]
Forum Message
29 Mar 2013
Happy Easter in many languages[^]
General Discussions
»
Personal Forum For Member Du[De]
Is Threading the best way to handle 40 Clients at a time in UDP Server or is there any other better way?
by
du[DE]
Answer
28 Mar 2013
license:
CPOL
As Jo wrote ([^]):... Start doing it in the one single "main" thread. If you notice that the server can't keep up, then split into two threads, one doing the communication and one doing the work. If it still doesn't work good enough, then two threads, each handling half of the clients. And...
General Programming
»
Uncategorised Quick Answers
»
General
C
Win32
programming
udp
Network
clear empty arrays in VBA
by
du[DE]
Answer
27 Mar 2013
license:
CPOL
Try this:Erase arr
General Programming
»
Uncategorised Quick Answers
»
General
VBA
array
How can i add flash player in html5
by
du[DE]
Answer
27 Mar 2013
license:
CPOL
HTML5 can be used as an alternative to Adobe Flash. Both include features for playing audio and video within web pages, and integrated vector graphics are possible with both.In other words, there is no need to include it! Take a look: Comparison of HTML5 and Flash[^]
General Programming
»
Uncategorised Quick Answers
»
General
HTML
My vote of 5
by
du[DE]
Forum Message
26 Mar 2013
Very good and understandable explain, great job!
General Discussions
»
Article "Understand Lambda Expression In 3 Min"
Flicker happen in display form when drawing
by
du[DE]
Answer
26 Mar 2013
license:
CPOL
>I am using thread to draw the form (1024x1024) continuously. >At the time i am scrolling to view the hidden part of the display, some flicker is happen.I would not draw the form during scrolling. You can use SetRedraw(FALSE) on the begin and SetRedraw(TRUE) on the end of scrolling. Take...
General Programming
»
Uncategorised Quick Answers
»
General
MFC
VC++
write data in a text document
by
du[DE]
Answer
26 Mar 2013
license:
CPOL
An example from MSDN http://msdn.microsoft.com/library/vstudio/8bh11f1k.aspx[^]:These examples show various ways to write text to a file. The first two examples use static methods on the System.IO.File class to write either a complete array of strings or a complete string to a text file....
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Using DTE Automation, how can I change the Platform
by
du[DE]
Answer
25 Mar 2013
license:
CPOL
Try this (just an idea, not tested!): Dim project As Project = CType(CType(DTE.ActiveSolutionProjects, Object())(0), Project) project.ConfigurationManager.ActiveConfiguration.Properties.Item("PlatformTarget").Value = "Any"
General Programming
»
Uncategorised Quick Answers
»
General
.NET
What is the iterator in c++?
by
du[DE]
Answer
25 Mar 2013
license:
CPOL
The concept of an iterator is fundamental to understanding the C++ Standard Template Library (STL) because iterators provide a means for accessing data stored in container classes such a vector, map, list, etc.You can think of an iterator as pointing to an item that is part of a larger...
General Programming
»
Uncategorised Quick Answers
»
General
C++
"how to generate barcodes in windows application in crystal report "
by
du[DE]
Answer
25 Mar 2013
license:
CPOL
Take a look: http://www.mydigitallife.info/how-to-create-barcode-for-free-in-windows/[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
Page 1 of 3
1
2
3
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid