15,896,727 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 max_nowak (Top 38 by date)
max_nowak
31-Dec-13 9:15am
View
Wow, this fall-through comment is a great idea! Haven't come across this anywhere yet but I think I might introduce it to my coworkers as new convention. Good advice thanks
max_nowak
5-Nov-13 18:55pm
View
no it's not the same. the point is that you have to check before the division. in your case it always tries to divide it regardless whether it's zero or not.
max_nowak
26-Sep-13 10:32am
View
It really depends on which database you are using. If you tell us which database you use then someone surely will be able to help you
max_nowak
14-Sep-13 17:14pm
View
No problem, glad I could help;)
max_nowak
12-Sep-13 7:38am
View
Well, what I know is that there's a COM-interface called IDocHostUIHandler, whith whom you can change the behaviour of the browser control's context menu. But since I have no inside in your project I can't really say if your class structure allows you to implement this interface (probably one of your wrapper classes already does). Maybe this is helpful: http://www.codeproject.com/Articles/4758/How-to-customize-the-context-menus-of-a-WebBrowser
max_nowak
11-Sep-13 4:58am
View
Maybe you should address this question directly to the writer of that article you took as role model
max_nowak
3-Sep-13 4:31am
View
Have a look in the javascript console of your browser because your javascript probably produced an error
max_nowak
22-Aug-13 6:53am
View
Have you included Shell32.lib to your project?
max_nowak
19-Aug-13 10:01am
View
Are you sure this method is called from somewhere within the constructor of your RangeValues object? Because the class above does not even feature a method called 'LoadRangeValues'
max_nowak
19-Aug-13 9:47am
View
please post your initialization code
max_nowak
13-Aug-13 7:21am
View
And your question is ... ?
max_nowak
13-Aug-13 4:17am
View
You could still split up the work of filling the list in multiple threads. Say, one thread handles the first 500000 and at the same time the second thread starts from 500000 and runs till 1000000
max_nowak
13-Aug-13 4:17am
View
Deleted
You could still split up the work of filling the list in multiple threads. Say, one thread handles the first 500000 and at the same time the second thread starts from 500000 and runs till 1000000
max_nowak
13-Aug-13 3:58am
View
If you intend to add 1000000 items to your control on your gui, then I think there's no way around of dealing with some lag. Anyway, why would you even want to do that? What's your use case?
max_nowak
9-Aug-13 2:59am
View
Could you be a little bit more elaborate about what a master form is?
max_nowak
26-Jul-13 10:29am
View
Do you mean by 'their size' their length? If so, you can use strlen() (or std::string::length if you use stl) to determine the length of the string, which in turn you can leverage to compare them.
max_nowak
1-Jul-13 3:17am
View
Well, one thing is for sure. You're not using C, but C#. That's a huge difference
max_nowak
19-Jun-13 6:05am
View
apparently I missunderstood you in what you are trying to accomplish. can't help you with that. sry:(
max_nowak
19-Jun-13 4:55am
View
Does your ActiveX-Control have implemented IZoomEvents interface? http://msdn.microsoft.com/en-us/library/aa770056(v=vs.85).aspx
max_nowak
11-Jun-13 3:20am
View
Could somebody please ban this guy. Thx.
max_nowak
21-May-13 7:39am
View
Wut? You kind of confused me there. Anyway, if the client should have a own database, why not use SQLite?
max_nowak
8-May-13 8:24am
View
Is your question, how to validate your email address, whether it has the right format?
max_nowak
3-May-13 11:05am
View
Well, I provided you a solution for the problem you asked for. The reason why your list does not contain the index is a whole different story.
max_nowak
3-May-13 8:53am
View
And what are you doing when you got 235 ids starting with prefix '15'? I think you should contemplate if you really need to have the 'useful field' unqiue in the first place. Why not mapping a hash value to each of it or something?
max_nowak
30-Apr-13 6:49am
View
Most probably there's some WinAPI function for this purpose. Found this after quickly googling the issue:
http://blogs.msdn.com/b/larryosterman/archive/2007/03/06/how-do-i-change-the-master-volume-in-windows-vista.aspx
max_nowak
17-Apr-13 8:20am
View
Deleted
Maybe the line where you set the label is encapsulated within a '#define _DEBUG' block? Very uncertain but still possible^^
max_nowak
12-Apr-13 9:36am
View
Oops, yeah I tried OLECMDID_ZOOM already before. I accidently forgot to change it back. Doesn't work either:(
max_nowak
19-Mar-13 10:53am
View
Glad you could solve it. Though I wished I could have been of more help (as I said I'm not a pro in php either;)). Btw you can post your solution here below if you want.
max_nowak
19-Mar-13 8:01am
View
I believe it might have something to do with that you execute the query for fetching the message twice. Once by $statement->execute() and the second time with mysqli->query(...). I could try this, dunno if it would work (I haven't worked with php a while).
...
/* execute query */
$stmt->execute();
/* instead of bind_result: */
$result = $stmt->get_result();
/* now you can fetch the results into an array - NICE */
while ($myrow = $result->fetch_assoc()) {
// use your $myrow array as you would with any other fetch
printf("%s is in district %s\n", $city, $myrow['district']);
}
max_nowak
13-Mar-13 8:23am
View
First, I don't know what goes wrong here. But have you considered just to store the path of the image, and not the image itself in your database? The image would then lie somewhere on your webserver.
max_nowak
11-Mar-13 8:37am
View
I'm sure you don't want an array of char pointers. Strings in C are represented by array of chars (char[]), which is basically a pointer to first char in the memory block (char*). You can store the reference of this by simply doing char* c = 'c'; char &ref = c; but this would be absolutely pointless and leading to nowhere. Just explain what your goal is, so people here can show you how to do it the right way. obviously your approach is not the way to go.
max_nowak
28-Feb-13 7:12am
View
You are not seriously asking for advice on your keylogger spyware stuff, are you??
max_nowak
27-Feb-13 9:20am
View
I'm sorry, I just postet an answer but then deleted, because I realized I was plain stupid
max_nowak
25-Feb-13 5:40am
View
No it's not, but more neat than having it global.
max_nowak
25-Feb-13 5:04am
View
According to what you want to accomplish, I'd suggest you to put the enum outside of 'Class A' for global use. Something like this:
namespace A
{
enum Color{Red, Blue}
}
This way you can take advantage of the keyword 'using'.
#include "a.h"
using namespace A
class B
{
void doStuff()
{
Color red;
if(Color==red)
... blablalba
}
}
Edit:
if you want to stick to your class, the farest you can go is doing this:
class A
{
public:
enum Color{Red, Blue}
}
#include "a.h"
typedef A::Color Color;
Color c;
if(c==A::Red)
max_nowak
18-Feb-13 4:21am
View
Thumbs up for NSIS. I just recently was in need to create an installer and nsis perfectly served my needs (an installer for my build artifacts).
The google project for their installer is called google omaha by the way. I had a short peek in it and it seems there has to be a lot of customization done and generally the documentation is not pretty verbose. Here's the link if you're interested: http://code.google.com/p/omaha/
max_nowak
18-Feb-13 4:19am
View
Deleted
Thumbs up for NSIS. I just recently was in need to create an installer and nsis perfectly served my needs (creation of an installer for build artifacts).
The google project for their installer is called google omaha by the way. I had a short peek in it and it seems there has to be a lot of customization done and generally the documentation is not pretty verbose. Here's the link if you're interested: http://code.google.com/p/omaha/
max_nowak
12-Feb-13 7:27am
View
I'm sure there already are a lot of software solutions out there, which would meet your requirements.
But if you really want to develop it yourself, you will need something like a server application and a client program which listens on e. g. tcp-layer level for a certain port for incoming messages and notifies the users if so. Also its not recommandable to tell your client to listen continuously for new message because otherwise the network traffic will be so huge that your network will be slowed down tremendously, especially when there are many clients.
But still, most probably there are many better solutions for this.
Show More