9,869,444 members (37,206 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*
33 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 1
Page Size:
10
·
25
·
50
Author filtered by: jsolutions_uk
[x]
simple code for load and resize an image in Qt
by
jsolutions_uk
Answer
4 May 2013
license:
CPOL
There is a huge amount of material on the Qt web site[^], including video training.In terms of basic image resizing, you could probably use the QLabel class with QPixmap, a simple example is here[^]. And the QPixmap docs are here[^]. I'm sure there is plenty of information there to do what...
General Programming
»
Uncategorised Quick Answers
»
General
C++
QT
QT-Creator
Get string between 2 strings
by
jsolutions_uk
Answer
3 May 2013
license:
CPOL
I would suggest you look at regular expressions[^].A quick C# solution (maybe not the best as my RegExp is not as good as it should be):string main = "kgjhnbkfm glnvfkdşlv http://ghkng.xfg/ngbf.png gvlkdjg";Regex pattern = new Regex("(.*)http://(?(.*)).png(.*)");Match...
General Programming
»
Uncategorised Quick Answers
»
General
VB
Visual-Studio
VB.NET
VS2012
How to create multiplethreads each with different ThreadProc() function using CreateThread()?
by
jsolutions_uk
Answer
1 May 2013
license:
CPOL
How about something along the lines of:typedef std::vector ThreadProcList;typedef std::vector ThreadIdList;ThreadProcList threadProcs;ThreadIdList threadIds;// add all the thread procs to threadProcs://...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
Win32
Threading
threads
programming
multithreading
create
C++11 lambda as default param for template's functor type
by
jsolutions_uk
Answer
1 May 2013
license:
CPOL
I'm not sure it is possible with lambdas, it's looking rather like a polymorphic lambda. check here[^]. I just don't think lambdas were intended to be used in the context of template based generic programming.The closest I have managed to get to implementing what you have above is...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C++11
Lambda
My vote of 5
by
jsolutions_uk
Forum Message
30 Apr 2013
An elegant solution :)
General Discussions
»
Article "Factory Class With Open Closed Principle"
Writing new line character in file
by
jsolutions_uk
Answer
30 Apr 2013
license:
CPOL
The new lines are almost certainly being written to the file, but I suspect the editor doesn't recognise them as a full line break. Are you using notepad by any chance?If you append "\r\n" instead of "\n" then it should be visible as a line break in notepad.However .....1. You do...
General Programming
»
Uncategorised Quick Answers
»
General
C++
Win32
Text
Hiding hard coded credentials
by
jsolutions_uk
Answer
25 Apr 2013
license:
CPOL
Firstly, assess the risk associated with someone retrieving the credentials, particularly in terms of:1. How likely it is.2. What damage would be caused by someone using those credentials.3. How quickly you can respond to the compromise in terms of securing the resource the credentials...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB
VB.NET
Re: In response to ...
by
jsolutions_uk
Forum Message
19 Apr 2013
Thanks, I shall probably leave posting these video walkthoughs, I have a few more of them. I shall just have to promote my own blog a bit :)
General Discussions
»
Article "An Introduction To Wpf And Mvvm"
Re: Not an article
by
jsolutions_uk
Forum Message
18 Apr 2013
Thanks for the feedback, I'm kinda new to posting articles and am also aware that there is plenty of information on this topic. I thought that the video walkthroughs would be enough of a differentiati
General Discussions
»
Article "An Introduction To Wpf And Mvvm"
Re: A little lite...
by
jsolutions_uk
Forum Message
18 Apr 2013
Thanks for the feedback. I shall probably change it to a tip. I don't fancy adding all the content from the videos. It was intended to be a walkthrough by video and I wasn't sure where to put it.
General Discussions
»
Article "An Introduction To Wpf And Mvvm"
Setting different text on every print pages in C#
by
jsolutions_uk
Answer
18 Apr 2013
license:
CPOL
You should be able to hook into the PrintPage event[^] and change whatever variable holds the "X copy" value, each time you receive the event.I hope that is enough of a start for you.
General Programming
»
Uncategorised Quick Answers
»
General
C#
printing
List important topics for C++,SQL and QT
by
jsolutions_uk
Answer
17 Apr 2013
license:
CPOL
In terms of Qt, probably start with the following as it underpins a lot of Qt development:Signals and Slots[^]Object Ownership and Lifetime[^]Events[^]However, Qt is huge and even the above may be too much to cover in 1 week. Depending on how they use Qt, there may be questions on...
General Programming
»
Uncategorised Quick Answers
»
General
C++
SQL
QT
VC++
Adding "Terms and Condition" when publish the windows application by "CLICKONCE"
by
jsolutions_uk
Answer
17 Apr 2013
license:
CPOL
A simple solution may be to add the t&cs to the app code, they can then be displayed on the first run of the application. If the user selects accept, write out a file to the local file system which can be checked for when the app starts. That's how I've done it with clickonce in the past, with...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Re: Staggering Beauty
by
jsolutions_uk
Forum Message
17 Apr 2013
staggering indeed
General Discussions
»
The Lounge
How do you code storing a encryption key in a key container?
by
jsolutions_uk
Answer
17 Apr 2013
license:
CPOL
I still think you are thinking too much about the implementation rather than thinking about exactly what security you need, but maybe I'm wrong, so I'll try and provide some suggestions for the solution you are looking for :) :My understanding is that you cannot store symmetric keys in key...
General Programming
»
Uncategorised Quick Answers
»
General
C#
cryptography
Pausing thread until other program/process finishes to run
by
jsolutions_uk
Answer
15 Apr 2013
license:
CPOL
Create an instance of System.Diagnostics.Process instead, set the StartInfo property and register a handler on Exited before calling Start. The Exited event is then fired when the process exits, at least that's how I read this[^] ;)
General Programming
»
Uncategorised Quick Answers
»
General
C#
.net appplication server for windows forms apps
by
jsolutions_uk
Answer
13 Apr 2013
license:
CPOL
Take a look at click once[^] for web deployment and auto update of rich client apps.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
.NET
Visual-Studio
Tabstops with Knuth Algorithm
by
jsolutions_uk
Question
13 Apr 2013
license:
CPOL
Over the past few months, I have been racking my brain to try and work out how, or even if it is possible to implement tabstops (and I do mean tabstops NOT tables) within lines broken using Knuths line breaking algorithm.It seems to me that the very nature of the algorithm means that when...
General Programming
»
Uncategorised Quick Answers
»
General
LaTeX
String is a sealed type in c# and hence cannot be derived from. Do you agree?
by
jsolutions_uk
Answer
12 Apr 2013
license:
CPOL
If you are sure you need to extend some functionality of string, then extension methods are a good option for the string class.Inheritance is often abused, especially in C++ which doesn't have a concept of sealed. If you are developing a class X, be very sure that it X is a string, rather...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Binding 40 Sockets to 40 different IP addresses
by
jsolutions_uk
Answer
12 Apr 2013
license:
CPOL
If you want a multi client server (who wouldn't?) you shouldn't need to listen on 40 different sockets, but rather a single socket. On recieving a connection, spawn a thread to handle the connection... or a process if you want to go old school :)In fact here's a good example Beginning...
General Programming
»
Uncategorised Quick Answers
»
General
C
Windows
IP
programming
udp
Network
Sockets
C++ std::string assignment failure
by
jsolutions_uk
Answer
9 Apr 2013
license:
CPOL
My immediate thought is that there is some conflict between the string types in the implementation of ConnectionInfo and your piece of problem code.I shall presume they are both std::string. If the ConnectionInfo implementation is provided as a binary (either static or dynamically linked)...
General Programming
»
Uncategorised Quick Answers
»
General
C++
string
Re: Does DerivedTemplate need to derive from Base?
by
jsolutions_uk
Forum Message
9 Apr 2013
Firstly, as you state, the gist is you need different base classes for each type, which is exactly what the template DerivedTemplate provides. there is no circular inheritance as you
General Discussions
»
Tip/Trick "Static Member Of Derived Class"
Gereric C++ Library unsing Visual Studio 2010
by
jsolutions_uk
Answer
9 Apr 2013
license:
CPOL
"C4368 error - mixed types are not supported"You are trying to create a C++ CLI class with std C++ members, which is not possible, although you can access standard C++ classes form within member functions of a CLI class. If you turn off support for Common Language Runtime, you get lots of...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C++/CLI
Suggest IDE for c++ in which every thing is install
by
jsolutions_uk
Answer
6 Apr 2013
license:
CPOL
I believe the Qt 5.0.1 download here[^] contains QtCreator, mingw (gcc), and of course the fantastic Qt libraries :)
General Programming
»
Uncategorised Quick Answers
»
General
C++
Static Member of Derived Class
by
jsolutions_uk
Tip/Trick
6 Apr 2013
license:
CPOL
How to have a single declaration of a static member for derived classes, using a simple template
Languages
»
C / C++ Language
»
Templates
C++
Dev
Intermediate
C++
VC10.0
An IOC Container using Variadic Template
by
jsolutions_uk
Technical Blog
1 Apr 2013
license:
CPOL
An IOC Container using variadic template.
Languages
»
C / C++ Language
»
Templates
C++
Dev
Intermediate
Thanks
by
jsolutions_uk
Forum Message
1 Apr 2013
Thanks for the article. override and final - I had missed those, being distracted by lambdas and variadic templates and all the fancy stuff :) I shall be using those fairly immediately. I think
General Discussions
»
Article "Ten C++11 Features Every C++ Developer Should Use"
Reallocating... When and the best way.
by
jsolutions_uk
Answer
27 Mar 2013
license:
CPOL
It might not be the most efficient way to manage the memory. it rather depends on how many instances you want to store in the array, how many you want to add at one time and how frequently you want to do this. I would suggest allocating enough for a certain number of items each time you need...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
Compare FileVersionInfo GetVersionInfo to a double
by
jsolutions_uk
Answer
26 Mar 2013
license:
CPOL
As far as I am aware a FileVersionInfo cannot be converted to a double that simply. The ToString() method will return an incorrect format. Trying to parse it using Double.Parse("6.6.54") will throw an exception, which is basically what Convert.ToDouble() will try and do.
General Programming
»
Uncategorised Quick Answers
»
General
SQL-CE
C#
SQL-Server
Forms
VisualStudio2012
A C++ Object Factory
by
jsolutions_uk
Technical Blog
25 Mar 2013
license:
CPOL
A C++ object factory.
Languages
»
C / C++ Language
»
General
C++
Dev
Intermediate
code for cryptography algorithms
by
jsolutions_uk
Answer
25 Mar 2013
license:
CPOL
Applied Cryptography by Bruce Schneier was always the first point of reference when I was working in the credit card personalisation sector. I still have a copy of it in my bookshelf. As for a C++ library, I would strongly recommend the Crypto++ library which is a very good library for...
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
Java
.NET
Re: My vote of 5
by
jsolutions_uk
Forum Message
25 Mar 2013
Exactly :)
General Discussions
»
Technical Blog "A C++ Object Factory"
lvalue & rvalue & && and && &
by
jsolutions_uk
Technical Blog
25 Mar 2013
license:
CPOL
This post is an attempt to cement a few things in my mind as well as explain to those who are interested what on earth is going on with lvalues, rvalues and references.
Languages
»
C / C++ Language
»
General
C++
Page 1 of 1
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web01 | 2.6.130513.1 | Last Updated 15 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid