15,891,253 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by jsolutions_uk (Top 27 by date)
jsolutions_uk
2-Oct-14 4:07am
View
There is a good explanation
here
.
As I read it ... An "empty" object has to have some size as if it was 0 size, one would not be able to use pointer arithmetic on arrays of an empty object .... or something along those lines :)
jsolutions_uk
25-Sep-14 9:12am
View
Interesting discussion over
here
.
Code reuse via an inheritance hierarchy is a sure fire way to get in a right old mess with tightly coupled dependencies. Personally I try to limit my use of class hierarchies to where I really need run time polymorphism.
Occasionally this results in some abstract base classes containing virtual methods that can be overridden / called by derived classes, but this is usually a result of needing the polymorphism and I should probably refactor the code to encapsulate the "reusable" state/behaviour outside the base class and have a more loosely coupled dependency :)
On inheritance:
here
and
here
.
jsolutions_uk
24-May-13 4:24am
View
You could always test your values you are getting against
this
jsolutions_uk
18-May-13 3:46am
View
glad to be of help :)
jsolutions_uk
4-May-13 7:50am
View
I've replied to your new question.
jsolutions_uk
4-May-13 7:49am
View
With jpg images, you need to make sure the jpeg imageformat plugin is loaded. I know on Windows it is found in (QTDIR)/plugins/imageformats/ I can't be sure where it is found on Linux off the top of my head. Usually I would place this file in the output folder for your project, under a plugins/imageformats/ folder. Hope that helps.
jsolutions_uk
1-May-13 10:11am
View
just beat me to it :)
jsolutions_uk
30-Apr-13 6:32am
View
Can't you just maintain some counter that can be incremented and used to determine the contents of that "X copy" value for the page that you are rendering next?
jsolutions_uk
18-Apr-13 7:09am
View
thanks :)
jsolutions_uk
18-Apr-13 6:30am
View
Probably start
here
.
jsolutions_uk
18-Apr-13 4:06am
View
I presume you have enabled native code debugging in the debug settings for the C# project? It's not enabled by default. Also the access violation sounds like either an initialisation problem somewhere (debug and release builds can behave slightly differently with uninitialised variables) or maybe you're accessing something via a pointer to memory that has been freed and you have not re-assigned the pointer value......
However, that is all very much speculation as we cannot see any of your code :)
jsolutions_uk
17-Apr-13 8:34am
View
Correct me if I'm wrong, but are you taking C# code from codeproject and converting it to C++ ? If that is the case, just point us to the code in question :)
If this is a general question: "What is the best way to convert C# to C++", I think you have your answer: "There is no best way, it is very dependent on the C# code in question and the platform the C++ code is being written for".
jsolutions_uk
17-Apr-13 7:41am
View
Fair comment :)
jsolutions_uk
17-Apr-13 7:05am
View
5 from me, bring on variadic templates :)
jsolutions_uk
17-Apr-13 2:44am
View
If the idea is to only encrypt data locally, to prevent any other users of that PC from reading the data (implementing Confidentiality), how about forgetting the idea of an encrypted key, and deriving a key at runtime from a password entered by the user on running the application (if of course the app is a user interactive one). It sounds to me like your problem is purely a Confidentiality of private, rather than shared data?
jsolutions_uk
16-Apr-13 15:34pm
View
Just out of interest, how are you planning to distribute these keys? That is going to be your biggest problem with AES keys, or any other symmetric key. Once you have worked that out, then there is little point investing in a storage technology that is weeker than your distribution mechanism.
Also, it is probably worth noting that a possibly better scheme is to use assymetric keys, so clients of whatever app this is share their public keys amongst each other as seen fit. Some kind of fingerprint check could be done over the phone, for example. Each time a message needs to be sent, a one time AES key is generated to encrypt the body of the message and this is encrypted with the destination public key. That way, the only person who can get the clear text is the reciever.
Key management will probably be a lot easier if you follow this model.
Is that more of an answer than a comment? :)
jsolutions_uk
16-Apr-13 15:14pm
View
Click once is really a deployment solution, via a website (usually) and not a web application technology. I have used it for desktop application deployment and it works quite nicely.
jsolutions_uk
16-Apr-13 8:12am
View
Usually, the way click once works is that you deploy it to a web site where the clients have access to a holding page for the click once installer. The click once app is installed on the clients PC (along with any dependencies) and can have a link on desktop/start menu etc. Click once can do quite a lot, so I suggest you have a good read of the docs.
jsolutions_uk
16-Apr-13 3:54am
View
glad to be of help :)
jsolutions_uk
15-Apr-13 6:06am
View
You probably need a bit more detail than that to get an answer. Some answers to the following questions might be useful:
1. Why do you need to convert it?
2. Is it a console or GUI app?
3. Does it provide a network client or server?
4. Does it rely on any other specific technology, (eg XML, Database etc)
That way, you might get some pointers as to how to approach whatever problem you have.
jsolutions_uk
14-Apr-13 3:23am
View
I shall just add that I am more than aware of various tabular environments, which are all well and good, but I have a need for old school tabstops where a tab inserted in a paragraph causes the text following it to shift immediately to the position specific and when the line with the tabstop in it reaches the line break it restarts at the beginning of the next line, not at the tabstop position. I hope that makes it a little clearer. I have, of course, tried to argue against such functionality being required, but there are some genuine use cases for it.
jsolutions_uk
13-Apr-13 17:29pm
View
Why downvoted, just interested in what's wrong with the question?
jsolutions_uk
12-Apr-13 7:27am
View
I believe there is a limit, there are also some other parameters relating to recieving packets. I suspect they are OS dependent, probably configurable.... but much more than that I would be in google territory :)
jsolutions_uk
12-Apr-13 7:20am
View
You state that you are using UDP? UDP does not provide a guarantee of deliver, so if you are worried about that, perhaps use TCP which provides a greater level of reliability. 40 clients sending data simultaneously should not be a problem as IP packets should effectively be queued by the server OS, if I understand correctly.
jsolutions_uk
30-Mar-13 4:31am
View
here
maybe?
jsolutions_uk
30-Mar-13 4:26am
View
I suspect a component you are installing isn't being registered by your installer. Either that or you are dependent on a component on your dev machine that isn't installed and registered on the target machine. As to which component that is, you will probably need some better diagnostics, probably just output some more details of the exception to a log file. I must admit, I thought that error message would usually include the CLSID of the component not registered, which would be of some use.
jsolutions_uk
26-Mar-13 14:47pm
View
Why does it need to be decrypted?
Show More