15,891,473 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 hakz.code (Top 59 by date)
hakz.code
9-Aug-13 2:04am
View
by toggle() I mean "Display or hide the matched elements".
hakz.code
7-Feb-12 22:56pm
View
Deleted
Yeah,I didn't notice that at end.My mistake :),but why would performance be hurt for that?
hakz.code
6-Feb-12 23:11pm
View
Deleted
Reason for my vote of 3
If we set the Struct Member Alignment to 1 byte with the first declaration the size is 26.
hakz.code
28-Sep-11 5:09am
View
I didnt get your point !
hakz.code
28-Sep-11 3:00am
View
Hi ,thanks for the suggestion,I have gone through this link - http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.8 before asking the question. As suggested there - "Constructors don't have a return type, so it's not possible to use return codes. The best way to signal constructor failure is therefore to throw an exception",I did the above coding.My doubt was - If the memory allocation in constructor fails then I want the caller module of the library to know that, or I need to know that - so that I dont continue using the bad memory which may result in crash.So I thought to handle these crashes.As constructor doesnt return a value,I wanted in some way to know that the allocation is not successful.How can I handle these things without the help of exception handlers(try,catch,throw - since it is c++ library),and if the caller module doesnt catch them it would be a runtime error right?
hakz.code
28-Sep-11 2:43am
View
Hi,If the memory allocation in constructor fails then I want the caller module of the library to know that, or I need to know that - so that I dont continue using the bad memory which may result in crash.So I thought to handle these crashes.As constructor doesnt return a value,I wanted in some way to know that the allocation is not successful.How can I handle these things without the help of exception handlers(try,catch,throw - since it is c++ library),and if the caller module doesnt catch them it would be a runtime error right?
hakz.code
26-Aug-11 0:14am
View
Thanks,I was wondering why the hyperlink was not working!
hakz.code
24-Aug-11 10:00am
View
:)
hakz.code
4-Aug-11 8:08am
View
if this was the win32 project with precompiled header #include "stdafx.h" would include the stdafx.h of current project which contains the following:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
and the #include"C:\users\shawki\desktop\sdright\stdafx.h" present in the post would not have that because if it had then this issue wouldn't have come up.
sigh
:)
but thanks for the comment,this really makes me think over
hakz.code
4-Aug-11 5:23am
View
My 5 that should solve the problem,if the project is built with pre compiled headers then #include "stdafx.h" will do
hakz.code
4-Aug-11 4:26am
View
put the following statements before main.
int calcPostage(int);
int calcPostage(int,int,int);
hakz.code
4-Aug-11 3:58am
View
hi OP,why doesn't infinite loop help?!
hakz.code
28-Jul-11 9:23am
View
My 5,I think this covers most of the possibilities for unresolved external issues.
hakz.code
27-Jul-11 9:06am
View
Ya true,I was just going through this page to know more :http://www.cse.iitk.ac.in/users/dheeraj/cs425/lec17.html.
hakz.code
20-Jul-11 12:59pm
View
As you are saying couple of pop-up menu items looks like some exceptions are thrown by your app,if you post the code it might be easy to find whats causing the issue.You can make sure each of your functions are returning proper values.
hakz.code
19-Jul-11 9:58am
View
For caption1 also the .top is set to .bottom-15,but both the overlays are different,when drawn they exist side by side as their x coordinates are different.
hakz.code
19-Jul-11 6:11am
View
welcome :-)
hakz.code
19-Jul-11 6:08am
View
Yes!agreed
hakz.code
19-Jul-11 5:20am
View
Ok..so %I64 format specifier needs to be used in case of __int64.Thank you I actually forgot it in my code.
hakz.code
18-Jul-11 8:25am
View
This is what I too think,by the way I dont find a point in accessing direct memory unless we are programming on smaller platforms like 8085 microprocessor.
hakz.code
18-Jul-11 8:18am
View
Hi your code flagged a compiler error for me,I think the typecast should be to int* not to int.
hakz.code
11-Jul-11 8:47am
View
Hi SA,sorry for the late reply(as I had to write hell lot of code),I did it by suspending the thread and resuming it later,one thread will be streaming and displaying data from a camera and when user clicks on a button the event handler for that butten will ask for the text using the input box,so before asking for the input i'll suspend the thread and will resume it as soon as I get the text from the user,please suggest if there are better ways.
hakz.code
29-Jun-11 7:35am
View
Thanks Joan Murt,I got it working, I missed CDialog::OnTimer(nIDEvent); part of code which is added automatically if we add timer using the class view->properties->Timers->WM_TIMER->Add onTimer()
hakz.code
29-Jun-11 7:33am
View
Ok I get it,so if a callback is getting executed and at the same time another timer fires the WM_TIMER then the current code execution is halted and may never be continued,but this is not in case of threads.But how to ensure that a thread is executed on mentioned milliSeconds all the time?! do we have to have an infinitive loop inside that thread?
Anyway please correct me if my assumptions are wrong :-)
hakz.code
28-Jun-11 6:37am
View
Hi I figured it out,the problem was the dc I passed was NULL
hakz.code
28-Jun-11 6:05am
View
Hi,
Thanks for the help,I changed the 4th param to height of the image,but still i get the return val as 0,when I did GetLastError the errorcode is 87-ERROR_INVALID_PARAMETER,any clues?!
hakz.code
28-Jun-11 5:17am
View
:)
hakz.code
7-Jun-11 4:25am
View
it works!My 5
hakz.code
6-Jun-11 0:41am
View
Thanks for the reply,I am going through these stuff.
hakz.code
3-Jun-11 8:37am
View
IMHO I believe that this forum is for sharing knowledge and not to discourage the knowledge seekers.If I would have got an idea of how to proceed with the help of Google I would
have not posted the question.Anyway thanks for the reply.
hakz.code
3-Jun-11 6:53am
View
Sorry but I didn't find anything useful for this in Google, that's why I posted the doubt here.
hakz.code
3-Jun-11 4:34am
View
My 5!
hakz.code
2-Jun-11 3:38am
View
Hi,
that solved the error,but if string is not declared it should have given the error at the vector definition,right?!
thanks
hakz.code
2-Jun-11 3:19am
View
kudos!My 5
hakz.code
1-Jun-11 8:51am
View
Yes! I agree
hakz.code
31-May-11 1:29am
View
Thank you for +5,please see my comment below.
hakz.code
31-May-11 1:28am
View
So just to grasp by all this discussion :
->The references can not addressed using the pointer because the address of the reference is not exposed to the world(though i think by an alias it means that it is pointing to an object by holding the address of it in some memory location),
and that makes it not be used as an array as array has the base address that can be pointed to.
->I was not confused by addressof of operator with the intArrayOfRefs identifier as i dont find any similarity in between them.
hakz.code
28-May-11 6:35am
View
Please be specific!unless you describe the problem well it is tough to get the solution..
hakz.code
27-May-11 6:22am
View
Yes,Now I am able to get it running well with inclusion of tchar.h,Thank you all for the help
hakz.code
27-May-11 2:22am
View
Hi SAKryukov,
Thanks for the reply,
I studied from this link - http://msdn.microsoft.com/en-uslibrary/ey142t48%28v=vs.80%29.aspx#_core_mfc_support_for_unicode_strings, that said to use _T macro for Unicode!so I assume in case of MFC to use _T and for win32 to use L.
Please correct if I am wrong.
Thanks
hakz.code
27-May-11 0:22am
View
LOL you are right!
hakz.code
27-May-11 0:08am
View
Yes! My 5.
hakz.code
27-May-11 0:07am
View
Yup,its really simple to go through..!
hakz.code
26-May-11 8:31am
View
Thanks!that gives me clear idea..
hakz.code
26-May-11 8:23am
View
Hi Pallini,
just to be clear - When I do *(s2+1) = 'M'; it gives the error that you cannot modify const var,but how does s2 = "LiteralConst" work?
hakz.code
26-May-11 7:49am
View
If object names are different in both the source files then how is the same object being externed and modified?!
If you get object is already defined then it you may have defined it in header file.
hakz.code
26-May-11 6:30am
View
Simple and direct solution!My 5
hakz.code
23-May-11 8:06am
View
Yes,I would keep that in mind!
hakz.code
20-May-11 2:24am
View
Yes, I had to mention about the dependencies,then the project is complete,as you mentioned Revision Control System really comes handy in this kind of situation.
hakz.code
20-May-11 0:55am
View
Hi Stefan63
The primer I am following gives the overview of the overall C++ features first,then all the chapters are there with the detailed explanation for these stuff.
About the constructor being private,as I was typing the code by recalling what I have understood, I missed the public keyword.
But about the issue with the const value you have explained ,I hope I'll get to know about it in detail from my primer in further chapters,
Thank you
hakz.code
20-May-11 0:44am
View
Thank you for the link,it cleared all my doubts about this constructor.
hakz.code
18-May-11 5:45am
View
I think this process pretty much explains how to debug any error,I think in step 2 we can try to take a hint from the error!
hakz.code
18-May-11 0:16am
View
Ok,Thanks for correcting ..
hakz.code
18-May-11 0:12am
View
Thank you
hakz.code
17-May-11 8:37am
View
I agree
hakz.code
14-May-11 1:13am
View
Thanks for correcting mate,I forgot the NULL character..!
hakz.code
14-May-11 1:12am
View
Deleted
Thanks for correcting mate,I forgot the NULL character..
hakz.code
13-May-10 2:58am
View
yes
hakz.code
13-May-10 2:09am
View
Thank u Sergey,
I tried
FindResource(NULL, MAKEINTRESOURCE(IDR_BINARIES1), MAKEINTRESOURCE(RT_RCDATA));
but still I get the error - 1813 the specified resource type cannot be found in the image file
Show More