Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: jsolutions_uk [x]
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...
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...
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://...
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...
My vote of 5 by jsolutions_uk
Forum Message 30 Apr 2013  
An elegant solution :)
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...
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...
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 :)
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
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.
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.
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...
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...
Re: Staggering Beauty by jsolutions_uk
Forum Message 17 Apr 2013  
staggering indeed
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...
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[^] ;)
C#
Answer 13 Apr 2013   license: CPOL
Take a look at click once[^] for web deployment and auto update of rich client apps.
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...
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...
C#
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...
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)...
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
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...
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 :)
C++
Tip/Trick 6 Apr 2013   license: CPOL
How to have a single declaration of a static member for derived classes, using a simple template
Technical Blog 1 Apr 2013   license: CPOL
An IOC Container using variadic template.
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
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...
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.
A C++ Object Factory by jsolutions_uk
Technical Blog 25 Mar 2013   license: CPOL
A C++ object factory.
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...
Re: My vote of 5 by jsolutions_uk
Forum Message 25 Mar 2013  
Exactly :)
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.
C++

Page 1 of 1


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