16,004,529 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 .NET 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 chandanadhikari (Top 200 by date)
chandanadhikari
30-Jun-16 2:32am
View
the message gives some explanation already ... you need to find out which line number is this error message pointing to and correct the error
chandanadhikari
28-Jun-16 9:38am
View
this is not a proper way of asking questions here. Please be more precise as to what problem you are facing when you run this program ... what error message you get etc.etc. ... this information will help us help you better !!
chandanadhikari
15-Mar-16 8:46am
View
hi,
you say you are completely new to this and you want to implement an algorithm already. You just have theoretical knowlegde and you are directly jumping to implementing algorithm. Maybe there is a better approach: search for some libraries which have video handling capabilities(like ffmpeg,OpenCV, OpenShot etc. ). Build some simple sample applications with them. Lots of online tutorials are available if you search for ffmpeg or OpenCV. This hands-on experience will enhance your confidence and then you can implement whatever you wish.
maybe these help:
https://github.com/mpenkov/ffmpeg-tutorial
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html
do search more.
chandanadhikari
1-Feb-16 0:23am
View
5!
cheers
chandanadhikari
20-Jan-16 1:24am
View
kindly elaborate more as to what you are trying to do. Include details like which platform you are working on. Mention any libraries you are using. Show some code where you are stuck.
chandanadhikari
19-Jan-16 3:30am
View
many thanks !
chandanadhikari
1-Jan-16 5:31am
View
hi,
can you please elaborate more on your question .. like what type of application you want to make for example you want to make some command line utility or something with a graphical user interface . Kindly include such details so that people can guide you in the right direction. presently the question is pretty vague.
chandanadhikari
24-Nov-15 23:44pm
View
hi,
question is not clear to me but just a casual search revealed this MSDN link:
https://msdn.microsoft.com/en-in/library/windows/hardware/ff540174%28v=vs.85%29.aspx
at least this can get you started and if you are stuck again then you can post further questions here.
maybe this helps !
chandanadhikari
1-Oct-15 6:13am
View
what output do you get ... please elaborate more about what error message you are getting.
chandanadhikari
22-Sep-15 7:23am
View
maybe this helps :
http://blogs.msdn.com/b/asiatech/archive/2012/02/01/how-to-develop-and-deploy-activex-control-using-atl.aspx
chandanadhikari
17-Sep-15 9:33am
View
Deleted
hint :: look at the for loop (looks fishy :))
chandanadhikari
15-Sep-15 0:45am
View
hi,
kindly try to elaborate more on the problem like show us the code where you got stuck. The error messages are pretty precise:
"... cannot convert argument 1 from 'const char [24]' to 'const TCHAR * .. "
the type conversions have failed.The called API expects an argument of a different type but its being called with a different type and implicit conversion is not allowed for this scenario and the API does not have any overload which accepts the type of argument its being provided.
Maybe you can search in the code where 'VidSSetQuarkConnectStatus' is called correctly and take hint from there.
chandanadhikari
14-Sep-15 9:36am
View
"...02323 and hit decode i will have 5 textboxes that show me each result..." which probably means OP will need to make some UI also. If i am wrong then kindly correct me.
chandanadhikari
14-Sep-15 5:29am
View
excellent solutions are already here.So the logic part is covered pretty well. Can you please tell us which Operating system you are targetting so that experts here can accordingly recommend libraries/frameworks for building the GUI.
chandanadhikari
14-Sep-15 3:31am
View
thanks!
chandanadhikari
14-Sep-15 3:00am
View
Mika Wendelius makes a good point. But i guess OP is going to follow a standard for breaking up the input string text. First four chars form a set, then next 3 and then next3 and so on. hope i understood this correctly .
chandanadhikari
14-Sep-15 1:57am
View
hi,
just googled and found :
http://sandyeditor.sourceforge.net/
sandy is opensource editor so maybe its code can show you how they made it. maybe not exactly what you were looking for but can certainly give some guidance.
chandanadhikari
12-Sep-15 5:05am
View
can you share with us what are you actually trying to implement(a high level view) of which this activity tracking is a part . maybe some one here might suggest a better appraoch. i mean maybe you want the current running processes or something.
chandanadhikari
10-Sep-15 14:25pm
View
hi,
if this is work related then please ignore this comment , but if you are trying to learn C++ using VC++ 6.0 IDE, then perhaps it would be more helpful to use a more recent IDE. You will get better documentation and latest C++ features.
if you want a Microsoft IDE then there are community editions which is free full featured IDE:
https://www.visualstudio.com/products/visual-studio-community-vs
(this will be a big download maybe upwards of 4 GB)
otherwise there are other free IDEs which are useful and small in download size :
http://codelite.org/
chandanadhikari
9-Sep-15 5:23am
View
i hope SP means stored procedure. If you are looking for some starting pointers then please Google for "c++ calling stored procedure". It does offer a lot of help .
chandanadhikari
7-Sep-15 9:59am
View
hi,
think you need to show us more code before any suggestions can be made. its hard to understand what are all those variables just by looking at 1 line.
Kindly mention what you are trying to implement.
chandanadhikari
7-Sep-15 8:55am
View
thanks !
chandanadhikari
2-Sep-15 9:44am
View
hi,
first of all try to read about the basics of the language (i provided 2 links in my other comment)
Nobody is going to give you a crash course in C++ on codeproject. try to google out these things on your own and if you dont find anything useful then only post it here.
i'll give you some information but you have to search the web for more:
std is the standard namespace and when i want call a function defined within that namespace then its std::functionname. Now read/find out what is a namespace .
i used int main() as my compiler wont let me return void from main.
This might be confusing for a beginner. thats why take one step at a time and first learn the basics.
chandanadhikari
1-Sep-15 9:39am
View
hi,
as already mentioned in the comments; try to learn the basics properly.
You can checkout following links; they explain concepts with working code samples:
http://www.cplusplus.com/
http://www.learncpp.com/
chandanadhikari
1-Sep-15 9:34am
View
Deleted
its
#include<string> in second line ... dont know why
is showing
chandanadhikari
31-Aug-15 3:11am
View
hi,
if you just want to do some GUI programming on Ubuntu then as Jochen Arndt pointed out you will need a framework like Qt :
http://www.bogotobogo.com/Qt/Qt5_Install_Ubuntu_14_64bit.php
https://wiki.qt.io/Install_Qt_5_on_Ubuntu
secondarily also try to understand what are you targetting KDE or GNOME .
chandanadhikari
25-Aug-15 2:58am
View
well,
it is time to stop wondering and start learning debugging !!
If you are using Visual Studio IDE then you can check this link:
https://msdn.microsoft.com/en-us/library/bb384844.aspx
if you are using some other IDE then google out how to use its debugger .
also please try to be more precise with your question.
for example include details like whether you are getting some error message or the application crashes etc.
chandanadhikari
17-Aug-15 1:44am
View
hi,
as already pointed out, the question is a bit ambiguous.
To know more about aggregation, check out this link (code example is also provided) ::
http://www.learncpp.com/cpp-tutorial/103-aggregation/
chandanadhikari
13-Aug-15 5:37am
View
maybe this gives you some more ideas:
http://www.codeproject.com/Articles/1017223/CaptureManager-SDK
chandanadhikari
11-Aug-15 5:49am
View
hi,
guess you will need:
a UI framework(MFC if target is only windows and language is VC++ (Microsoft's version of C++), otherwise Qt is a good cross-platform option)
For Windows, Microsoft Media Foundation now supports audio and video capture. you need to explore more and google for this.
you can start here:
https://msdn.microsoft.com/en-us/library/ee663260(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/dd758070(v=vs.85).aspx
streaming APIs are also there:
https://msdn.microsoft.com/en-us/library/hh828986(v=vs.85).aspx
maybe you can start by building a simple application which captures the input captured through the laptop camera. then add the functionalities one by one.
chandanadhikari
7-Aug-15 5:38am
View
OLE/COM Object Viewer can show the ProgID.
check this link ::
https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/324028/get-clsid-progid-tlbid-of-a-dll-file
chandanadhikari
6-Aug-15 8:48am
View
fantastic !! this thing was new for me also
chandanadhikari
6-Aug-15 6:23am
View
glad i could help ! kindly upvote the solution if you appreciate the help :)
chandanadhikari
6-Aug-15 5:37am
View
hi,
simply means that the file in which you have defined these symbols is not #included in the source/.cpp file.
maybe you can search in the whiole project or soulution where all does "CLSID_First_ATL" appears and if its found to be defined in some file, then including that file here should make it work.
just making a guess: it might be the 'ATLProject1_i.c' file
chandanadhikari
6-Aug-15 5:20am
View
By the way, may i know why you want to check for both registry keys irrespective of wheteher the system is 64 bit or 32 bit.
i mean what is the use case for such a scenario?
chandanadhikari
6-Aug-15 5:17am
View
i also tried but could not find any code implementation so just posted whatever was available.
in your code :
long key = RegOpenKeyExA(hKey, subKey, 10, KEY_READ | 0 , &resKey);
and the documentation form the link "Accessing an Alternate Registry View" suggests :
"These flags can be specified in the samDesired parameter of the following registry functions:
RegCreateKeyEx
RegDeleteKeyEx
RegOpenKeyEx
Either KEY_WOW64_32KEY or KEY_WOW64_64KEY can be specified. If both flags are specified, the function fails with ERROR_INVALID_PARAMETER"
so you can try by changing the fourth parameter of RegOpenKeyEx.Hope it works !!
chandanadhikari
6-Aug-15 3:37am
View
could not test this with code right now but these flags might help you :
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384129(v=vs.85).aspx
also :
http://stackoverflow.com/questions/12796624/key-wow64-32key-and-key-wow64-64key
chandanadhikari
6-Aug-15 3:08am
View
terribly sorry for the mistake. I will change my answer soon.
chandanadhikari
6-Aug-15 3:02am
View
can be done by using preprocessor macros also.
http://stackoverflow.com/questions/1505582/determining-32-vs-64-bit-in-c
chandanadhikari
5-Aug-15 10:23am
View
hi,
do you get a error message box or the app simply crashes ?
kindly provide more details.
chandanadhikari
30-Jul-15 8:14am
View
Hello SA,
greetings sir!
The OP has given some clarification regarding his question (please see his comment below).
So there is 1 dll and 2 applications which consume it, at same time. Updates done to the dll from 1 application should be visible to application 2 in real time .
i think some sort of call back functionality will be needed here but, i am not sure if that is the 'best' approach.
can you please suggest some efficient approach OR do you think some basic design change will be a better way to achieve what the OP is trying to do .
many thanks!
chandanadhikari
30-Jul-15 3:33am
View
hi,
just trying to understand your scenario :
you have some application(Some.exe) . A dllwithstructure.dll having a datastructure(vector/list) will be loaded into this Some.exe wherein another dll will consume the data structure.
so basically you are trying to pass around the datastructure between separate binaries.
is my understanding correct ??
chandanadhikari
15-Jul-15 9:11am
View
:) glad as always !!
chandanadhikari
15-Jul-15 3:16am
View
dear fellow CPians,
i went to the page mentioned in question at
http://www.codechef.com/problems/RECIPE
this is a programming competition site. They have a list wherein they display the memory footprint and execution runtime for the submitted solutions. Its hard to say how they arrive at these figures.I think these are the figures the OP is worried about. (please excuse me if you already saw this info on the page )
Hi, Tejas_S_B :: Can't tell you where your solution is eating memory without using an ide and profiler. But i think the other implementation is way more cleaner. Better try a solution without 'goto'.
just suggesting because a secondary intention of such exercise would be to test your program design skills also .
chandanadhikari
10-Jul-15 2:42am
View
there is codeproject article related to this , very well explained and the implementation code is also there (c# code)::
http://www.codeproject.com/Tips/697588/Levenshtein-Edit-Distance-Algorithm
chandanadhikari
10-Jul-15 2:28am
View
the 'deduplicate the demographic data' part is not very clear. can you please elaborate further on it.
chandanadhikari
9-Jul-15 8:42am
View
glad i could help and thanks for the upvote !:)
chandanadhikari
9-Jul-15 8:27am
View
if class A has a virtual function then it gets a vtable . then if class B also has a virtual function then it also gets its own vtable.
Please check the second link in my answer, it has a diagram explaining all this theory.
Try to understand how polymorphism would work for virtual functions and it would become clear that why is the vtable neeed in the first place.
hope this helps!!
chandanadhikari
9-Jul-15 7:43am
View
the code is not able to find 'mqueue.h'. It can find the other header files like stdlib.h and stdio.h in the proper location and can hence use the code inside these header files, but it can not do the same for mqueue.h.
So, either mqueue.h is not present on the machine at all
OR
it is at a location on the machine about which the compiler does not know(in this case you need to tell the compiler where exactly to find the header file).
You can search for mqueue.h on the system, and mention its full directory path as you have done for UUGear.h. Check if it works !!
chandanadhikari
6-Jul-15 7:38am
View
hi,
just wanted to add that you can add your own std containers also or add to the functionality of existing ones. once you are comforatble and more experienced with c++, then you can check following links:
http://www.drdobbs.com/custom-containers-iterators-for-stl-fri/184401929
http://www.techrepublic.com/article/extending-the-c-plus-plus-stl-with-custom-containers/
chandanadhikari
8-Jun-15 6:06am
View
ctrl+F7 compiles the current file.
ctrl+F5 runs the project.
there is no way to run a single file if the project has multiple source file. All you can do is compile a single file.
ANOTHER OPTION IS you can exclude the other source files from the build (right click on the file name in solution explorer and select 'Exclude from Build') so only the file that is left gets built during the projet build.
chandanadhikari
29-May-15 8:06am
View
free and open source :: http://koolplot.codecutter.org/
maybe it can help you !
chandanadhikari
28-May-15 7:58am
View
have to agree with KarstenK answer. Not only has C++ evolved, but Windows itself as a platform has evolved i.e. many new things have been introduced since the glory days of vc6 (for example 64 bit binaries and almost everything is UNICODE ), lot of things got deprecated (like there are APIs/methods/headers/macros which got replaced and hence do not exist any more). So compatibility issues are bound to happen when trying to convert projects between VC6 and VS2010.
KarstenK has given good advice. Try to get the project working in VS 2008 first. You will face some issues. Google them out and resolve them first. Then convert this VS 2008 project to VS 2010.
chandanadhikari
25-May-15 9:37am
View
maybe CFileDialog::HideControl or CFileDialog::RemoveControlItem can help.
chandanadhikari
16-May-15 5:46am
View
comment out the line which gives error and try the new
code
chandanadhikari
16-May-15 5:45am
View
please post your queries as comments and NOT solutions.
cheer up no need to blame yourself.
i tried something and updated my answer please check if it works.
chandanadhikari
13-May-15 7:36am
View
please search for this using google. i could see some useful results. maybe the implementation will be using a different equation but still it will get you started.
chandanadhikari
11-May-15 5:41am
View
Just a suggestion : If cross platform is you concern then Qt is a good choice.
Its an IDE, has own libraries and if a free download.
http://www.qt.io/
chandanadhikari
7-May-15 8:17am
View
as already pointed out please try debugging the code.
Is the top level window titled "Gun" displayed correctly ?
If not then, 'Reshape' is not the culprit as it is not the first function which is called inside main .If the functions before 'Reshape' worked correctly then the top level window would come up.
If top level window comes up fine, then try calling glutDisplayFunc before glutReshapeFunc . Just a suggestion, it might work.
chandanadhikari
7-May-15 8:01am
View
hi,
yes it can be done, try along these lines:
read the text file line by line
for each line you read into a string
in this string find if it contains digit.
Populate separate arrays of strings and digits accordingly.
chandanadhikari
6-May-15 5:53am
View
Hi,
The simple principle is de-allocate memory from where ever you allocated it .
a helpful CodeProject article:
http://www.codeproject.com/Articles/66244/Marshaling-with-C-Chapter-Marshaling-Simple-Type
try to understand how interop marshaler works.
https://msdn.microsoft.com/en-us/library/zah6xy75(v=vs.110).aspx
Please look at the solution of this question.
http://stackoverflow.com/questions/6682011/passing-array-of-strings-from-c-sharp-to-c-memory-management
If something is still not clear feel free to reply to this comment.
chandanadhikari
5-May-15 12:22pm
View
A humble request ~~ whoever downvoted the answer, please point out which part of the answer is incorrect and so that in case the OP tries to follow it, he might not end up spending time in the wrong direction. Explaining why its wrong will also help me in improving my knowledge .
thanks.
chandanadhikari
5-May-15 10:37am
View
Hello KarstenK, looks like the link to sample project is not correct. Kindly check it. If its false alarm then please excuse me for bothering you..~~thanks
chandanadhikari
29-Apr-15 9:06am
View
just a suggestion: in case you decide to go for Visual Studio, then you have another option to go for Visual Studio 2013 Community Edition instead of the Express edition. It does not have the limitations of the express edition and is a free download .
explore more here::
https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx
chandanadhikari
23-Apr-15 3:15am
View
5! very precise
chandanadhikari
23-Apr-15 2:21am
View
please debug the code line by line or by putting breakpoints in this code and find out which exact line is throwing the error.
chandanadhikari
15-Apr-15 9:06am
View
can you please try using "CP_UTF8" in place of "CP_ACP" where ever it does not work. making a guess here but it might work !!
chandanadhikari
19-Mar-15 8:16am
View
why not use some already available profiler
chandanadhikari
27-Feb-15 1:12am
View
hi,
what is\are name(s) and value(s) of the environment variable\variables .
During your setup installation are you asking the user the run the setup "As Admin"? (i mean the usual prompt which says this program is trying to change your system and then gives buttons to allow or cancel) I think, if the user allows then this should give the installer enough privileges to add the environment variables.
Basically its just a matter of privileges which the user(who is running the setup) has. If the user has the correct set of privileges then the installer can set up the environment variables as well.
chandanadhikari
24-Feb-15 1:08am
View
hi,
usually in such cases the vc++ redistributable is of different version that is why it behaves like this. Think you can use the dependency walker tool to see if what all dependencies are missing.
Maybe there is some dependency like some other dll or redistributable whose 32 bit version needs to be used and you are using 64 instead.
Launch the dependency walker tool(get it from internet) and drag drop the server binary on it.
Also while building the server you selected 32 bit build so it works only for 32 bit.
chandanadhikari
23-Feb-15 1:25am
View
hi,
I might be wrong, in which case i am sorry, but your question makes me believe that you are new to Visual Studio and you do not know what these various options mean So you can start by learning about them first. Plenty of info can be found on MSDN also Google can help you further .
chandanadhikari
23-Feb-15 1:10am
View
why don't you tell us what you have tried already. maybe nested loops can help.
chandanadhikari
19-Feb-15 1:54am
View
Hello Mohibur Rashid. The hyperlink is missing in your comment. I think in comments you need to mention the full link as it is.Please post the link again.
Thanks.
chandanadhikari
19-Feb-15 1:50am
View
probably you already tried this : if you see the Android emulator running then the windows task manager will have its corresponding process and right clicking on it will give you option to open its location.
As for the Android SDK binary folder: if you installed it then the windows registry will most probably have an entry for it, So search the system registry for say 'Android' and something useful might come up.
chandanadhikari
23-Jan-15 7:50am
View
hi,
as Richard MacCutchan already noted, you have to make sure that along with your application all the necessary libraries you are using in your application also gets installed. So you need to create an installation package which contains OpenCV and any other libraries that you are using. Google for 'installation package creator' or 'software setup builder' and you will see the tools available for this.These tools will also help you find out whether a given library is already present on a system or not and if it is there then is it the correct version that your application needs.
chandanadhikari
23-Jan-15 7:44am
View
my 5!
chandanadhikari
20-Jan-15 1:31am
View
here is what i could understand ~~ there is some hand written text and you take a picture of it OR scan it and then your application will automatically understand the written content and perform some operation with it like save it as pdf etc.
please clarify if i am wrong.
This can be done . There is a library called OpenCV. You can google for it. This library has appropriate functions but you still need to have some understanding of computer vision. Simply put you will have to 'train' your application to recognize letters.(This is somewhat same as face identification on pics on facebook as they also process the image to find presence of facial features).
just trying to help although my understanding of your project statement can be wrong.
chandanadhikari
8-Jan-15 2:07am
View
can you please show what are the types of sample_length, kl, pgfactor and what are their values.
chandanadhikari
5-Jan-15 1:22am
View
you are welcome :)
chandanadhikari
29-Dec-14 2:53am
View
on a side note :
printf("%d",&swap(arr,0,0,0,0)); //might be a logical mistake
the arguments should not be all 0 as int x1,int y1,int x2,int y2 all are having same value 0, so the swap will actually not happen
chandanadhikari
24-Dec-14 1:33am
View
can you please show some code and what exception 'new' is throwing .
maybe this can help :: http://www.codeproject.com/Articles/27487/Why-to-use-memory-pool-and-how-to-implement-it
chandanadhikari
17-Dec-14 0:30am
View
hi,
i think the media player control that can be embedded in , say a word document , is an ActiveX control. So, you might have to do something similar i.e. make an ActiveX control of your app and then embed it.
chandanadhikari
5-Dec-14 2:13am
View
could you please show some code that you tried. I guess you already tried converting the number to string and then appending.
chandanadhikari
4-Dec-14 1:48am
View
i just formatted your code and did not omit anything but still some pieces seem to be missing. Kindly update the code.
chandanadhikari
2-Dec-14 2:42am
View
was just wondering if you want something like a SCADA networking.
Googled with 'scada networking' and there were results showing various vendors.
chandanadhikari
27-Nov-14 4:38am
View
in case you plan to go for CGI a helpful link is here:
http://www.tutorialspoint.com/cplusplus/cpp_web_programming.htm
Please do share your solution -thanks
chandanadhikari
26-Nov-14 4:48am
View
i hope google will be able to help you with this . try searching for this with your web server's name.
chandanadhikari
26-Nov-14 1:51am
View
i have not tried neon and happyhttp but the 'undefined reference' means that the compiler is still not able to find it, so its not being included correctly.If you are using an IDE then just check that the settings you gave are correct.
I would suggest you try with libcurl.
Start by building the sample code snippets that are provided in the link.
chandanadhikari
21-Nov-14 8:43am
View
thats why i said that it looks lika a cheap trick :)
chandanadhikari
11-Nov-14 7:04am
View
CP is not for doing homework.Please try it out yourself first and if you get stuck somewhere then you can google for it or post that problem here. Google is your best friend if you want pointers regarding how to start with this project.
chandanadhikari
20-Aug-14 6:35am
View
i am not sure if that can be done. 2 things are possible
1). if you used the wizard to create the sheet then it might have some option to hide the tab view (like un-checking some option). In this case you are disabling the tabs altogether.
2). but if you want to do this at runtime then you need to create the page at runtime and position it so that it covers the tab area.
sorry mate i don't have time right now to try this and tell you for sure so you need to experiment.
Please upvote my solution if you found it helpful.
chandanadhikari
20-Aug-14 5:15am
View
my 5! thanks for the link.
chandanadhikari
14-Aug-14 10:40am
View
thanks!
chandanadhikari
14-Aug-14 5:33am
View
hi,
I would dare not advice against what SA and nv3 have already said. :)
But I will still try to help you better understand what you are trying to achieve.
As you stated you are a 'beginner in programming'.
So, first of all you will have to gain coding skills in a language of your choice. Knowing the theory part only will not help you. You'll need lots of coding practice. Languages like C/C++ can take upto 6 months to get familiar with. I mean 'familiar' (not a complete master) to the extent that you are able to debug your own code and also able to use third party libraries. Also you need to know your tools well , i.e. an IDE or debugger.
After all this, you can take a look at the 'OpenCV' library(google for it) which will help you implement face recognition.
So, what you want to do is not impossible but, my friend, you will need to do a lot of basic ground work first.
hope this helps!
chandanadhikari
8-Aug-14 1:59am
View
hi,
what is 'enumerated' in the first line of code . Is it something you have defined because otherwise it should be 'enum' if you are declaring an enumeration.
An enum is declared as :
enum colors_t {black, blue, green};
You can check if changing it to enum helps.
chandanadhikari
14-Jul-14 2:03am
View
hi,
you can start by checking if this dll is actually present at the location mentioned in the error message. If its there then see if the version is compatible with the other libraries or dlls you are using. Also, you can check if some other dependencies of this dll are missing by opening this dll in 'dependency walker' .
chandanadhikari
26-May-14 3:13am
View
if it helped you then would you like to upvote it :)
chandanadhikari
26-May-14 2:56am
View
hello,
My solution below might be an overkill in this case (but those are useful skills neverthe less). Maybe a line by line debugging in the IDE itself would reveal something. So, first simply try debugging.
chandanadhikari
26-May-14 2:42am
View
Deleted
hello,
My solution below might be an overkill in this case (but those are useful skills neverthe less). Maybe a line by line debugging in the IDE itself would reveal something. So, first simply try debugging.
chandanadhikari
20-May-14 10:36am
View
People at CP would love to help but why not debug and find it out yourself ?
chandanadhikari
13-May-14 7:32am
View
Please be more specific and share more information like what errors you are getting? when you are seeing those errors? what have you already tried to resolve them? are the errors originating from some particular line of code (if yes then show that code here).
All this information will help us understand your problem better.
chandanadhikari
12-May-14 15:21pm
View
Deleted
The basic rule of thumb is 'whoever allocated the memory, should free it too' . Its a helpful guideline which helps avoid trouble. Anyways more googling should be helpful here.
chandanadhikari
11-May-14 4:52am
View
5 for the link and the explanation and all!
chandanadhikari
3-Apr-14 3:33am
View
well if you ask for a pointer to the vtable of a polymorphic class then a class with a virtual method will have a single vtable and this vtable is shared by all objects of this class.
Each object instance of this class will have its own pointer to that vtable , typically called a virtual pointer or vptr. The compiler implicitly generates code to initialize the vptr in the constructor. So, thers is 1 virtual pointer per object instance.
chandanadhikari
27-Mar-14 3:45am
View
as i understand, the asker wanted to programmatically find out the IP addresses of the network connected pcs. So in my solution i just pointed him to the APIs which might come in handy and the documentation has code sample also.
Please correct me if my understanding of question is wrong.
Would have been good had the asker elaborated more as to what he has already done(his approach and last working code) and what problem he is facing now. You might as well edit and improve the question so people are able to help easily .
~thanks.
chandanadhikari
25-Mar-14 8:00am
View
5! i was reading about this the other day .. just skipped my mind while answering. hope the asker is good with COM though :)
chandanadhikari
20-Mar-14 11:45am
View
may we know what are you trying to achieve here ?
chandanadhikari
19-Mar-14 3:14am
View
please rate my answer(by clicking on the stars in solution heading) if you found it helpful :)
chandanadhikari
19-Mar-14 3:07am
View
Deleted
please rate my answer(by clicking on the stars in solution heading) if you found it helpful :)
chandanadhikari
18-Mar-14 12:05pm
View
even i was not sure so i asked him in comments ... i saw the vc++ and mfc tags so i thought IWebBrowser2 made sense here.
chandanadhikari
18-Mar-14 8:07am
View
do you mean to say that this document will be the default page shown by the control when it is launched ? may i know what exactly are you trying to achieve here ... a little clarification would help
chandanadhikari
7-Mar-14 6:48am
View
if using visual studio then you can mention the absolute path in the project properties page
chandanadhikari
5-Mar-14 8:45am
View
please check if solution 2 works for you ... its from CPallini and its easier to understand :)
chandanadhikari
5-Mar-14 8:40am
View
its a type definition; think you got baffled by complexity of the code ... if you want to know what is typedef then you can check http://www.functionx.com/cpp/keywords/typedef.htm
chandanadhikari
5-Mar-14 7:59am
View
what is the error message you are getting?
chandanadhikari
18-Feb-14 7:53am
View
thanks for your help. The first link says '... requested page can not be found..."
chandanadhikari
12-Feb-14 1:19am
View
5! have not worked with C++/CLI so this was totally new learning
~thanks SA
chandanadhikari
12-Feb-14 0:59am
View
for moving big objects between functions a reference is the way to go , please check your method declarations...probably something wrong with the syntax....by the way what is the error ??
chandanadhikari
28-Jan-14 8:33am
View
have a look at this article :
http://www.codeproject.com/Articles/708098/Part-2-Windows-Debugging-Techniques-Debugging-Appl
chandanadhikari
28-Jan-14 8:28am
View
Besides in DebugDiag you can set rules and specify which exception you want to handle specifically like 0x00000c5 etc. by the way thanks for the 5 to my solution :) .
chandanadhikari
28-Jan-14 8:25am
View
the procedure is somewhat similar .You can google to find more about it.
you need to open the dump file with DebugDiag (which should be installed and configured with proper paths for symbols i.e. *.pdb files and the source files).
DebugDiag analyses the dump and generates the report in .html format(this is where it is different from WinDbg) . The .html report file will automatically open in web browser window showing the call stack .
chandanadhikari
28-Jan-14 1:27am
View
windbg not installing is a bit surprising ... how about DebugDiag see this link
http://msdn.microsoft.com/en-us/library/ff420662.aspx
chandanadhikari
24-Dec-13 0:37am
View
please be more specific and provide more details about what you are trying to do and why .
chandanadhikari
20-Dec-13 8:49am
View
i am not sure but maybe if you use google maps or nokia here maps , it would help because these maps would have some APIs exposed to serve your purpose(some API that could tell you the place name if co-ordinates are entered)....try googling them
chandanadhikari
17-Dec-13 8:57am
View
Maybe something is wrong in the way you are handling strings. For strings with special characters only wide character string types should be used and proper care needs to be taken while allocating and deallocating memory . Run in debug mode and see at which line specifically the crash is happening and check if the string variables/pointers are still holding proper data or are they corrupted.
chandanadhikari
13-Dec-13 0:17am
View
thanks for the input nv3.
chandanadhikari
13-Dec-13 0:17am
View
thanks for the input Stefan_Lang.
chandanadhikari
12-Dec-13 1:59am
View
either you have not defined a resize function which takes a double as argument
or you have defined but did not include the respective header file .
(the one that you have defined in this file does not seem to take a double).
Please check for the function definition of resize.
chandanadhikari
11-Dec-13 6:38am
View
thanks CPallini
chandanadhikari
11-Dec-13 1:54am
View
sprintf_s returns -1 if errors occur (see the 'Return value' section in the link). maybe checking for this return value might help you but then again that will involve some code change. may i know why you do not want to use sprintf_s as recommended .
chandanadhikari
3-Dec-13 6:46am
View
hi,
you can start exploring here ::
http://gamesfromwithin.com/exploring-the-c-unit-testing-framework-jungle
chandanadhikari
2-Dec-13 7:49am
View
hi,
well if these lines are inside a big function then place break point at the very beginning of function(which might be much before the if condition ) and then debug by stepping-into functions one be one .hope it helps .
chandanadhikari
19-Nov-13 8:02am
View
see if this helps in any way
http://msdn.microsoft.com/en-us/library/vstudio/b3c267wx%28v=vs.90%29.aspx
if it works then it might help you understand what was going wrong
chandanadhikari
19-Nov-13 6:04am
View
so you are not getting the pointer to this new resource properly. make sure you have included the files which have code for your dialog box. Ideally, the ATL Dialog Wizard implements a dialog box derived from CAxDialogImpl. This class includes support for hosting ActiveX and Windows controls.Later you can replace all instances of CAxDialogImpl with either CSimpleDialog or CDialogImpl as your base class.
Do you not get any errors\warnings while building the project ? Also maybe the resource is not getting initialized properly .
chandanadhikari
19-Nov-13 5:27am
View
hi,what error messages are you getting when it crashes. Or check the events log to see what message is logged there.It might be some pointer issue. Either you need to debug your code or collect a crash dump and perform post mortem analysis.
chandanadhikari
28-Oct-13 7:14am
View
hi, hope you are already doing it but if not then do some programming to test your understanding instead of just reading through and knowing the concepts theoretically.
chandanadhikari
23-Oct-13 9:20am
View
please rate the answer if you liked it (you need to click on the stars in the solution heading) -thanks
chandanadhikari
23-Oct-13 7:14am
View
my 5! . I think the basic idea is to put restrictions on the number of ways a client can create objects of a class. Even if you have several overloaded constructors, and you do not want the client to create objects using a couple of them, then put those couple of ctors in private section thereby not allowing clients any access to them.
chandanadhikari
2-Oct-13 9:41am
View
hi Jochen Arndt,
the link leads to a page saying 'content not found'. Can you please check this.
chandanadhikari
2-Oct-13 9:33am
View
thanks for the justification SA! that was something new for me
chandanadhikari
1-Oct-13 7:53am
View
hi,
what i understand from your question is you are trying to put the leak checking in the code itself. I am not sure if that is the best way out and I have never done that. Rather use Application Verifier and Debug Diag tools to catch the leaks by running the process in whose memory space the dll gets loaded and then analyse the call stack or do post mortem analysis .
may i know why do you want to put leak check in code ?
chandanadhikari
18-Sep-13 9:16am
View
please try to debug by placing breakpoints in this code.Maybe this dll is not getting loaded correctly .
chandanadhikari
12-Sep-13 9:00am
View
another scenario can be that the version of vc++ re-distributables required by the appliction, is different from the one already installed on the machine where you are trying to run your application so the error message is pointing this out. I do not remember correctly but the configuration file of the application should also tell you the version of vc++ re-distriutable used to build the application. Download this version and install it .
chandanadhikari
2-Sep-13 6:48am
View
Thanks for the explanation Stefan_Lang. The best practice is indeed to avoid virtual methods in constructors.
chandanadhikari
1-Sep-13 0:57am
View
Thanks Sergey
chandanadhikari
29-Aug-13 8:38am
View
hi,
is this working fine in VS2008? asking because you did not mention it and if its working then maybe some library changes between VS2008 and VS2012 triggered this .Take a look at this :
http://stackoverflow.com/questions/15632788/cfiledialogoninitdialog-does-not-call
chandanadhikari
27-Aug-13 3:15am
View
hi,
which visual studio are you using (2008/2010/2012 )? when you opened the project in visual studio did it ask it to convert it ? i mean the project code was for vs2008 but you opened it in a later version so it asks for conversion of project and between various releases the visual Studio libraries change which might cause the problem.....try including string.h or wchar.h or mbstring.h ...the link error with _stricmp may go away...post here what happens .
chandanadhikari
2-Aug-13 5:25am
View
hi,
take a look at
http://www.codeproject.com/Articles/331304/Understanding-and-Implementing-Abstract-Factory-Pa?msg=4295618#xx4295618xx
chandanadhikari
7-Apr-13 2:02am
View
hi,
the linker is unable to find definition of twicenum so please check that in your cpp file you have included the header file which has definition of twicenum.
chandanadhikari
7-Apr-13 1:37am
View
5ed! do as the griff says
chandanadhikari
15-Jan-13 6:21am
View
you can check the last link (it has some code also) and please vote for the solutions if you found them helpful-thanks
chandanadhikari
15-Jan-13 6:20am
View
Deleted
you can check the last link and please vote for the solutions if you found them helpful-thanks
chandanadhikari
15-Jan-13 0:16am
View
hi,
please tell us what error message you get (if any) when the crash happens and also try to debug using breakpoints to point out which line is causing the crash .
chandanadhikari
13-Jan-13 3:41am
View
thanks superman!! didn't knew such a thing existed my 5!
chandanadhikari
11-Jan-13 1:12am
View
Actually the code you have shown is doing the sorting only but it is programmed only to find the scond largest. i understand that you want to generalize it .
So, you can read the set of numbers into a new temporary datastructure like an array and sort that array then find the value you want and your initial set remains as it is .
I think a proper approach will be to make a function and pass the nth value you want and your set of values as arguments.This function can
1). maintain an internal data structure which will have all previous values passed to it .
2).sort this data structure to return the nth value you are looking for .
thus everytime your set of values changes , you can call this function.
hope i make some sense this time .
chandanadhikari
8-Jan-13 4:14am
View
go through the interfaces and see what they do . The names are pretty obvious . You can start with IHTMLDocument,IHTMLElement,IHTMLDOMNode,IHTMLStyle etc..
chandanadhikari
7-Jan-13 22:36pm
View
hi,
just making a guess--since the functions are being used without being first declared (or defined) maybe you are missing some header file which needs to be included. Just check if your headers are in place .
chandanadhikari
12-Dec-12 10:45am
View
just do what has beeen said above:plcae the file roundrobin.h in the folder where your code is and #include the file roundrobin.h in your .cpp file
chandanadhikari
6-Dec-12 8:23am
View
hiplease vote for the solutions if you found them useful. :)
chandanadhikari
5-Dec-12 23:51pm
View
hiyou can open the registry editor and search for the IIDs mentioned in the error messages . you will find some entries against these IIDs .If yo dont find them (this seems unlikely though) in the registry then these interfaces are missing from your system .
chandanadhikari
2-Dec-12 8:08am
View
hi,
think it simply means that you are deleting the pointer while the memory in heap is still allocated .so in this way you will loose the handle to the memory i.e. the pointer hence rendering the location inaccessible.
chandanadhikari
21-Nov-12 3:09am
View
my 5! should serve the purpose
chandanadhikari
20-Nov-12 21:34pm
View
thanks JackDingler
chandanadhikari
17-Nov-12 10:43am
View
debug the code by placing break points and find which line gives error
chandanadhikari
12-Nov-12 13:30pm
View
what happens when you debug with breakpoint at Environment.Exit(1)
chandanadhikari
12-Nov-12 12:40pm
View
awesome !! 5!
chandanadhikari
28-Oct-12 3:52am
View
hi,
I do not have any knowledge about OLE DB .I just wanted to suggest that E_NOINTERFCAE is an error related to COM. It happens when you query for an interface which is not there in the system or not recognised by the system. The registry has the information about the interfaces registered with the system .What happens is that you will be build your application but when it is executed, windows will look for the interface in which the functions (you used in the code) are defined.When the interface is not found then HRESULT is returned as E_NOINTERFACE.
You can find more info here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms691424(v=vs.85).aspx
more about E_NOINTERFACE at:
http://msdn.microsoft.com/en-us/library/bb166327(v=vs.80).aspx
I can not tell you what is exactly wrong with the Insert or Delete operations but just trying to help you mate .
chandanadhikari
26-Oct-12 15:26pm
View
hi,
generally E_NOINTERFACE errors come up when the interface is not registered in the system. Search in the registry of the machine if the interfaces you are trying to call are there or not.
chandanadhikari
10-Oct-12 11:00am
View
hi,
showing some code will help us understand your problem better
chandanadhikari
10-Oct-12 10:48am
View
5! do as the Griff says
chandanadhikari
10-Oct-12 10:46am
View
hi,
i would first check if the reference for MS Excel is added correctly .
chandanadhikari
10-Oct-12 10:38am
View
hi,
i think readability is your concern here. The second format will be more appropriate in cases where you have, say several if-else conditions. Then keeping them nested might not be a good idea so, a better approach will be to follow the second format where in every else block you can put a return statement after printing the message.i feel your code is quite readable to a level of three nested if-else.Had there been more then second format would have been a better choice.
Also i would prefer to use some local variables for the comparisons instead of directly using the function for evaluating the condition . (Please pardon me if i got your question wrong)
chandanadhikari
9-Oct-12 11:39am
View
hi,
not sure if you want to do this through a program.Otherwise on run command type regedit . Registry editor will open up then go to files option and select the Export option . A dialog window will open where you can select the location for storing the backup and give a name to the backup file . the file will be saved with .reg extension (for example thisisbackup.reg).
chandanadhikari
26-Jun-12 11:29am
View
you can try implementing proxy pattern
not exactly a solution but this will not only help in solving this problem but might also better your coding style
look here :http://advancedcppwithexamples.blogspot.in/2010/10/c-example-of-proxy-design-pattern.html
chandanadhikari
25-Apr-12 13:52pm
View
5 for the link !!
chandanadhikari
24-Apr-12 0:37am
View
Thanks VJ Reddy
chandanadhikari
23-Apr-12 2:35am
View
may be the code does not have the permission to read from the registry.Please check if the key really exists in the registry. What does the command prompt say when it comes up ?
chandanadhikari
20-Apr-12 2:34am
View
hard to answer without seeing the block of code
chandanadhikari
19-Apr-12 23:59pm
View
thanks SA !!
chandanadhikari
7-Apr-12 0:07am
View
sorry for my mistake, its actually ASCII (and not ansi)...you need to check if the database you are using supports unicode or not.In case it supports Unicode ,then you should check what changes you should do (in code or otherwise), to take advantage of the Unicode support .
chandanadhikari
6-Apr-12 23:36pm
View
hi,
this might be happening because of conversion of data from Unicode(arabic) to ansi format when stored on sql database .
chandanadhikari
6-Apr-12 0:21am
View
useful links !! my 5!
chandanadhikari
2-Apr-12 23:52pm
View
thanks for the link
chandanadhikari
20-Mar-12 13:46pm
View
hi,
there is some logical error i think. if i am getting your problem statement correctly then, when one name is eliminated in the new text file then cards.txt and new.txt should not have the same number of entries in the first place.
chandanadhikari
20-Mar-12 13:46pm
View
Deleted
there is some logical error i think. if i am getting your problem statement correctly then, when one name is eliminated in the new text file then cards.txt and new.txt should not have the same number of entries in the first place.
chandanadhikari
20-Mar-12 12:39pm
View
hi,
try to print all the contents of the first file that you create(cards.txt) then it will be clear if the file is getting formed correctly.post here what you see
chandanadhikari
20-Mar-12 11:38am
View
hi,
this generally happens when you are trying to use an object that does not exist(was not formed or got destroyed before you referred to it).debugging will show you the exact line where this is happening.actually this will be the place where you are trying to use the object. your object might be getting disposed before this line is getting executed.
chandanadhikari
18-Mar-12 3:12am
View
thanks :)
chandanadhikari
16-Mar-12 2:32am
View
please vote for my answer if you liked it(fill the blank stars :) )
chandanadhikari
16-Mar-12 2:31am
View
Deleted
please vote for my answer if you liked it(fill the blank stars :) )
chandanadhikari
29-Feb-12 2:21am
View
Hi Dean Oliver,
thanks for your response...can you please shed some light on why exactly is this necessary...or maybe point me to someplace where i can find more info
chandanadhikari
29-Feb-12 2:18am
View
Deleted
Hi Oliver
thanks for your response, but can you please shed some light on why exactly is this necessary....
chandanadhikari
2-Feb-12 1:09am
View
Hi Sandeep,
any ideas about the resolution part ??
chandanadhikari
21-Jan-12 1:07am
View
well not very advisable but see if DoEvents can help you out
chandanadhikari
18-Jan-12 4:57am
View
my 5! the kind of guidance expected from CodeProject
chandanadhikari
18-Jan-12 1:49am
View
hi,
not sure but i think you need to run this command prompt as "Administrator" in case it does not work and try this solution.
chandanadhikari
13-Jan-12 0:47am
View
hi,
this is very much doable in vb6 so should be possible in vc6 also.see "http://support.microsoft.com/kb/308407" and good luck with vc6. :)
chandanadhikari
10-Jan-12 4:02am
View
hi,
what are you lost about? can you specify clearly?
chandanadhikari
28-Dec-11 8:13am
View
my 5!! Shakti Misra has shown you the way but if you are a beginner please do not try to jump to the books regarding design directly (like the ones by Scott Meyers).first try to gain some knowledge about fundamentals and syntax(here book number 1 and 2 stated above will help you).
chandanadhikari
28-Dec-11 2:55am
View
hi ,
JackDingler has shown you the way.Try to debug and when your application crashes it will point you to the line where some memory access violation is taking place, you might get some error code --do some googling with that error code.Also Google for this issue --just in case it might be a known bug for the MFC verion you are using.
Show More