9,869,444 members (41,818 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*
17,669 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 354
Page Size:
10
·
25
·
50
Author filtered by: CPallini
[x]
txt.file remove lines
by
CPallini
Answer
14 May 2013
license:
CPOL
There is no direct way for removing a line from a file. However you might read the input file line by line, copying to a new file only the lines you want to maintain. At the end of the process discard the original file and rename the freshly written one.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Visual-Studio
VisualStudio2012
suggestion about the "software that converts sound waves into binary"
by
CPallini
Answer
14 May 2013
license:
CPOL
Your recording device already produces binary streams, I suppose. You should read the device documentation for finding out what is the format used, study it and then develop an algorithm able to extract the needed data.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Handle postthreadmessage() inside a thread which is blocking in while(1) loop or use “Event Driven Sockets”
by
CPallini
Answer
14 May 2013
license:
CPOL
You may use the main thread (or just another one) for writing data.
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
programming
socket
udp
Networking
Network
Sockets
I can't build a derive class object!who can help me!
by
CPallini
Answer
14 May 2013
license:
CPOL
When overriding virtual methods you have to make sure that the method signatures exactly match. Change fromQuote:float virtual area() { return 3.14*fRadius*fRadius; }tovirtual float area() const { return 3.14*fRadius*fRadius; }
General Programming
»
Uncategorised Quick Answers
»
General
C++
Connecting to remote DB in MySql
by
CPallini
Answer
13 May 2013
license:
CPOL
Did you try Google[^] yet?
General Programming
»
Uncategorised Quick Answers
»
General
MySQL
Learn multithreading in C++
by
CPallini
Answer
13 May 2013
license:
CPOL
Did you try Google[^]?
General Programming
»
Uncategorised Quick Answers
»
General
C++
MFC
bit level access using C++
by
CPallini
Answer
13 May 2013
license:
CPOL
Suppose, for generality:const int N = 500;a = new char[N];char b[N];You access bit bitno of either a or b in the same way (note: not tested):int getbit(int bitno, int x[], int size){ if ( bitno = (size*8) ) { // throw an exception here } int...
General Programming
»
Uncategorised Quick Answers
»
General
C++11
how i change query for different button
by
CPallini
Answer
12 May 2013
license:
CPOL
As already suggested, write a method, say executeMyQuery taking, as single parameter, the query string, put in such method all the required code for executing the query. Then call it from the different button click handlers (each handler should pass its own query string).
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How getfilename works in c++
by
CPallini
Answer
12 May 2013
license:
CPOL
Since you tagged your question (also) with MFC, I am assuming you are asking about CFile::GetFileName[^]. Such method, as the documentation states, returns the name of the file associated to the CFile object.[Update]GetFileName does NOT provide the info you are requiring. You may use the...
General Programming
»
Uncategorised Quick Answers
»
General
C++
VC++
MFC/C++
execute procedure of tcp/ip chat application which is made by using socket programming.
by
CPallini
Answer
12 May 2013
license:
CPOL
Probably Google[^] helps (the very first entry is a CodeProject article!).
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
image processing application
by
CPallini
Answer
11 May 2013
license:
CPOL
It smell like homework. You should try hard to code it yourself and ask here specific questions when you get stuck.
General Programming
»
Uncategorised Quick Answers
»
General
C#
GimmeCode
Homework
Object reference not set to an instance of an object.
by
CPallini
Answer
11 May 2013
license:
CPOL
As alaready suggested, you use the debugger for checking that all the references ( t3, t5, t6 and conn) in the statement are set to valid objects (for instance did you use new on conn?).
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Routing algorithm for Vehicular adhoc network
by
CPallini
Answer
10 May 2013
license:
CPOL
Did you try Google[^], yet?
General Programming
»
Uncategorised Quick Answers
»
General
C++
Error: The Procedure entry point EncodePointer could not be located in the dynamic link library KERNAL32.dll
by
CPallini
Answer
10 May 2013
license:
CPOL
The documentation[^] states:RequirementsMinimum supported clientWindows Vista, Windows XP with SP2 [desktop apps | Windows Store apps]Hence your version of Windows XP does not satisfy such requirements (that is you probably have to update it with, at least, Service Pack 2).
General Programming
»
Uncategorised Quick Answers
»
General
WinXP
C++
Windows
Programming in C- Display inputted integers in english
by
CPallini
Answer
10 May 2013
license:
CPOL
I fixed some bugs (uninitialized variables). Please note: you should handle the digit 0 (zero) too. #include #include void show_number(int number){ int counter = 0; int i, temp, digit, x, ten; if (number > 9) { temp = number; while...
General Programming
»
Uncategorised Quick Answers
»
General
C
programming
Problem with reading and writing of \n charecter
by
CPallini
Answer
9 May 2013
license:
CPOL
On Windows system newline is "\r\n" (see, for instance Wikipedia[^]). Hence it should work (you should see proper output on notepad, other applications are able to render text file with other newline conventions).Please check (with the help of an hex editor) the actual file content.
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
string.replace(""","\"") giving error in c#
by
CPallini
Answer
9 May 2013
license:
CPOL
You must pass either two characters or two strings to the Replace method. Currently you're passing just one string (the comma is embedded in the string, due to the escaping rules).
General Programming
»
Uncategorised Quick Answers
»
General
C#
text with double quotes is not inserting in databse in sql server
by
CPallini
Answer
9 May 2013
license:
CPOL
It looks you should double them, see, for instance "How to insert string containing single or double quotes" at Stack Overflow[^].
General Programming
»
Uncategorised Quick Answers
»
General
C#
fread() fails after reading complete contents of text file
by
CPallini
Answer
9 May 2013
license:
CPOL
Your while condition is uninfluential (always true). According to the documentation[^]:Return ValueThe total number of elements successfully read is returned.If this number differs from the count parameter, either a reading error occurred or the end-of-file was reached while reading....
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
file
Text
MultiThreading with Timer-Error
by
CPallini
Answer
9 May 2013
license:
CPOL
You should create a method, say, public int TotalMilliseconds(string s), accepting one string and returning total milliseconds. Once you have it you may easily compute max and min values with a simple single iteration on the array items.
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Is Multi Threading required for this scenario
by
CPallini
Answer
9 May 2013
license:
CPOL
Probably multithreading is useless in your case. It would be usefulif (at least) one task takes a lot of time (that is user noticeable) to complete: often threads are used to prevent the GUI freeze while a long time operation is occurring.
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
user Defined Formula Editor
by
CPallini
Answer
9 May 2013
license:
CPOL
See , for instance: Runtime C# Expression Evaluator[^].
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
how to give an equation to a program
by
CPallini
Answer
9 May 2013
license:
CPOL
Yes, your program can evaluate (static) expressions, e.g.#inclde using namespace std;int main(){ int x; cin >> x; cout
General Programming
»
Uncategorised Quick Answers
»
General
C++
how to use ReadPrivateProfileString.
by
CPallini
Answer
9 May 2013
license:
CPOL
You may find many articles about, here at CodeProject[^]
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
MFC
VC++
Register console app to work from any directory
by
CPallini
Answer
8 May 2013
license:
CPOL
You may put your exectuable in one of the folders included in the Windows executable search path[^], or you may modify the latter to include your application's folder.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Console
semicolon is put right after if condition plz explain me this code
by
CPallini
Answer
8 May 2013
license:
CPOL
Such code, albeit valid, make no sense.It checks ten times if x is different from y and if the condition is satisfied (actually it is NOT satisfied) does NOTHING (due to the semicolon after the if statement: such a semicolon is the 'empty statement').
General Programming
»
Uncategorised Quick Answers
»
General
C
designib snooker game in turbo c
by
CPallini
Answer
8 May 2013
license:
CPOL
While do you want to use such an obsolete development environment? Let me suggest you a more modern alternative to turbo C, like Visual C++ 2010 Express[^].Anyway, for building a (very) simple game (let's say a 2D one) you need to learn how to draw graphics primitives on the screen (BGI with...
General Programming
»
Uncategorised Quick Answers
»
General
C
How can we find data from database between a particular start date and end date?
by
CPallini
Answer
8 May 2013
license:
CPOL
I suppose nobody have ever had a similar requirement, so you wouldn't be able to find anything just using Google[^].
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
How to change argument of alredy running process
by
CPallini
Answer
8 May 2013
license:
CPOL
Nope. A process reads its arguments at startup.However, if you can modify it, then you may use some sort of IPC[^] for passing it parameters at runtime.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Process
how to dispaly data in xml ?
by
CPallini
Answer
8 May 2013
license:
CPOL
Quote:,i want to diaply those data into xml fileI assume you meant: "I want to store them into a XML file".It is very easy to create yourself an a XML file, directly using its Write method. Or you may follow a more 'sophisticated' approach using the XmlSerializer[^] class.
General Programming
»
Uncategorised Quick Answers
»
General
C#
XML
fopen() opens the text file successfully for sometime and fails after a specific time
by
CPallini
Answer
8 May 2013
license:
CPOL
You didn't bother to close the file, did you?Call fclose(fpSend); when you've done with it (before returning from the WndProc).
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Visual-Studio
file
Errors
Text
ErrorHandling
Running Two Functions at the Same Time in C#.
by
CPallini
Answer
8 May 2013
license:
CPOL
Did anyone suggest you multithreading yet? :-)"Safe, Simple Multithreading in Windows Forms, Part 1"[^].
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
C#
C#4.0
how to do auto calculation in a form to other form? the calculation have been done according to fuzzy logic algorithm in admin form. The other form is user form
by
CPallini
Answer
8 May 2013
license:
CPOL
There are several ways to accomplish this task. For example you may pass all the required info (even a reference to Form3 itself) to the Form5 constructor (of course you have to define an appropriate constructor).
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
save 15000 records in table on amazonsimpledb
by
CPallini
Answer
8 May 2013
license:
CPOL
What about documentation[^]?
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How to run run a exe installed in server from client pc
by
CPallini
Answer
7 May 2013
license:
CPOL
Quote:now i installed this application in server so that i need to open this application from client computers without installing and it want to run from the server communicating through LANUnless your application has a client/server architecture you cannot do that.Quote:if possible also...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Global functions vs. object orientation
by
CPallini
Answer
7 May 2013
license:
CPOL
Quote:But the classes are too different to create a base class to store the function.This is not a valid objection, in my opinion.Quote:So we decided to write "FileExists" as a global function and put it intostdafx.cpp which is now our global function storage.You don't need that (albeit...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C#
OOP
How to copy byte array from binary file to array of struct.
by
CPallini
Answer
7 May 2013
license:
CPOL
A simple approach would be providing a contructor for your struct accepting an array of bytes. Such a conctructor would use repeatedly the BitConverter class[^] (for instance you may use data1 = BitConverter.ToDouble( ba, 0); where ba is your byte array).
General Programming
»
Uncategorised Quick Answers
»
General
C#
List of files and folders of a directory using c# windows
by
CPallini
Answer
7 May 2013
license:
CPOL
The DirectoryInfo[^] class provides all you need, namely the GetFiles, GetDirectories methods and the Parent property.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Gridview
file
IO
Unable to copy multiline text file to a buffer
by
CPallini
Answer
7 May 2013
license:
CPOL
This code is NOT fine: file_size is not initialized and you should never call fread before being sure that the count (in your case file_size itself) argument is less than (or equal to) the size of the provided buffer.
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
programming
file
Text
I need some help for drawing!
by
CPallini
Answer
7 May 2013
license:
CPOL
Console applications are not suited for such tasks.You may easily satisfy points 2 and 3 using Windows Forms (see, for instance "Drawing with Graphics in WinForms using C#"[^]).For point 4 (3D shapes) you may consider using XNA (see, for instance, "Drawing 3D Primitives using Lists or...
General Programming
»
Uncategorised Quick Answers
»
General
C#
You cheater!
by
CPallini
Forum Message
7 May 2013
Nothing to leak there. :rolleyes: Veni, vidi, vici.
General Discussions
»
The Lounge
Re: App for "usual" sites
by
CPallini
Forum Message
7 May 2013
:thumbsup: Veni, vidi, vici.
General Discussions
»
The Lounge
Draw Line Between two Points
by
CPallini
Answer
7 May 2013
license:
CPOL
See this question at Stack Overflow: How do I draw lines using XNA?[^].
General Programming
»
Uncategorised Quick Answers
»
General
C#
XNA4.0
currency convertor some times stop working! solve this problem
by
CPallini
Answer
7 May 2013
license:
CPOL
That is a problem you probably cannot solve: an explanation here[^].
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
ASP.NET
.NET
Resize the character array in c
by
CPallini
Answer
7 May 2013
license:
CPOL
All your problems are solved using dynamic memory allocation: you shouldn't allocate a static array but a bit more complex data structure (emulating CString or std::string, behaviour). e.g.typedef struct _MyString{ char * str; int len; int capacity;} MyString;Then you...
General Programming
»
Uncategorised Quick Answers
»
General
C
array
C++ windows programming question
by
CPallini
Answer
7 May 2013
license:
CPOL
The database is not the only place where you may store the password: you may use as well a file. However make sure to store NOT the passwords themselves but their hashes. See the following article OriginalGriff's tip for a guideline: Password Storage: How to do it.[^].
General Programming
»
Uncategorised Quick Answers
»
General
C++
Windows
programming
C++ error: Unhandled exception
by
CPallini
Answer
7 May 2013
license:
CPOL
You should wisely use the debugger to locate the offending line (possibly one of the doSomething calls) and eventually report such info here.
General Programming
»
Uncategorised Quick Answers
»
General
C++
classic ASP Select Case
by
CPallini
Answer
7 May 2013
license:
CPOL
You should remove the return statement.
General Programming
»
Uncategorised Quick Answers
»
General
ASP
How can use Dashboard in VB.NET ?
by
CPallini
Answer
6 May 2013
license:
CPOL
Did you try Google[^]?
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Parsing a Text file using a particular condition
by
CPallini
Answer
6 May 2013
license:
CPOL
Of course it is possible.At each (periodic) 'parse and insert operation' you have to:Check if current file size is bigger than a certain amount with respect 'last operation' file size (abort operation if it is smaller or equal).Parse only the augmented part of the input file, inserting in...
General Programming
»
Uncategorised Quick Answers
»
General
C#
VB
Page 1 of 354
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid