15,885,216 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 RobNO (Top 60 by date)
RobNO
30-Apr-13 16:09pm
View
Yea, a balance for sure. Thanks for all your help. I really appreciated it!
RobNO
30-Apr-13 16:06pm
View
Thanks for all your help! I think your right that there is a conflict with the Web API Framework and System.Speech.
Just speculating but I think the problem is SpeechSynthesizer implicitly kicks off threads (which according to msdn is dose not). The action method returns while the other thread is still continues to run. Sort of matches up with the error message: An asynchronous module or handler completed while an asynchronous operation was still pending.
RobNO
30-Apr-13 15:31pm
View
Yeah, and it is fine in my circumstance if it takes a second to write to a file and then give the response back.
However, Not to get carried away from the original question but I thought I read running new threads on a web server isn't good practice either because if there are many threads running then resources get tied up similarly to what I am currently doing.
RobNO
30-Apr-13 15:11pm
View
I already debugged this method and it successfully runs through everything, without exceptions or prolonged blocks.
Why should the using block run on a separate thread?
RobNO
30-Apr-13 14:58pm
View
Tried that and it didnt help. However I did comment all of the using statment and I did successfully receive the static array. My browser finally returned an error message: An asynchronous module or handler completed while an asynchronous operation was still pending.
RobNO
30-Apr-13 14:53pm
View
Yes, this code works without using the Using syntactical sugar
RobNO
30-Apr-13 14:50pm
View
I am using Asp.net Web Api which is based around HTTP. I should be seeing the results (the static string array) in XML on the browser.
RobNO
30-Apr-13 14:46pm
View
Yes, the response is always pending.
RobNO
30-Apr-13 14:46pm
View
This is a test, and I am expecting the results to contain the static array. All I am trying to accomplish is making sure I can use the System.Speech assembly on my hosting environment, but first I am trying to make it work locally.
RobNO
30-Apr-13 14:46pm
View
Deleted
This is a test, and I am expecting the results to contain the static array. All I am trying to accomplish is making sure I can use the System.Speech assembly on my hosting environment, but first I am trying to make it work locally.
RobNO
30-Apr-13 14:43pm
View
I am simply using the direct url in the browser (e.g. http://localhost:61303/api/test), but unfortunately I never receive my response, which is why I am confused because when I debug this method it returns successfully.
RobNO
7-Feb-13 16:54pm
View
Wow, thanks for the well written answer and the IDENTITY recommendation!
much appreciated!
RobNO
7-Feb-13 16:36pm
View
Hi,
I like this idea, but would you recommend doing the same thing for deleting a user, if a user can have zero or many products?
Is it to any dis advantage to just capture the products current state in the order details table, other then if its redundant? Or is redundant data extremely evil?
Sorry for all the questions. Just looking to learn best practices and I am having trouble finding resources.
RobNO
4-Dec-12 12:26pm
View
hahaha nice
RobNO
26-Feb-12 9:17am
View
Thanks!!! This was helpful. I ended up with my desired results.
RobNO
31-Jan-12 17:41pm
View
Thanks for your time!
RobNO
31-Jan-12 12:31pm
View
Thanks for your reply!
Sorry, for the late reply. So I am actually making a double LinkList and I have it set up so the next pointer uses shared_ptr and the prev pointer uses weak_ptrs. Could I have done this with unique_ptr or raw pointers? If so what are the pros and cons.
Thanks,
robNO!
RobNO
29-Jan-12 13:04pm
View
Thanks For your Reply!
This works great! Much better than my solution because then the Nodes them selves will handle there own deallocation!
Thanks for your time!
robNO.
RobNO
29-Jan-12 12:04pm
View
Thanks for your time Pablo!
RobNO
29-Jan-12 11:49am
View
I am attempting to build something known as a squarelist for a school project if you really want to know. Using STL is rather inefficient for the implementation for this project and there will be a considerable mark deduction if STL containers are used. I have almost three years of post-secondary experience with c++.
RobNO
29-Jan-12 9:16am
View
I figured out a solution, however, I am not sure if it is the best one. In my List destructor I just start unattaching the shared points at the tail of the list, thus eliminating stack overflow because the Shared Pointer will delete one at a time rather than trying to delete them all at once. If anyone has other suggestion i would like to hear them,
Thanks,
robNO,
RobNO
29-Jan-12 9:12am
View
Thanks for the reply!!!
Yes there is a reason why I am not using the built in STL collections, however, I don't want to get into much detail about that. Can You elaborate on what a dumb pointer is? Are you just referring to a raw pointer, If so I am not mixing raw and shared pointers, I am too much of a novice and do not have the time to deal with the complications of a raw pointer.
Thanks,
robNO.
RobNO
2-Dec-11 16:36pm
View
Thanks for your Help!!!
robNO.
RobNO
2-Dec-11 16:36pm
View
Thanks For your Help!!!
robNO.
RobNO
1-Dec-11 14:47pm
View
Is it possible to get a standard set of colors programatically rather than hardcodding colors? For example, the Standard HTML Colors in your link in some sort of container.
RobNO
21-May-11 11:04am
View
Thanks for your reply!
This:
lpFindFileData = new WIN32_FIND_DATA;
works perfectly.
Thanks for your help!
robNO
RobNO
21-May-11 11:03am
View
Thanks for your reply!
Your English was great, I understood what you meant perfectly and it worked. So far I have just tried using new and delete. Once i get some more time ill try to declare the whole structure and pass it by the address. I will let you know the outcome!
Thanks for everything! your help is greatly appreciated!
RobNO
21-May-11 0:13am
View
Thanks for your reply!
trying this:
LPWIN32_FIND_DATAW* lpFindFileData = {0};
if( INVALID_HANDLE_VALUE == FindFirstFile(lpFileName, lpFindFileData)) ..
, gives me the error message:
cannot convert parameter 2 from 'LPWIN32_FIND_DATAW *' to 'LPWIN32_FIND_DATAW'
trying this:
LPWIN32_FIND_DATAW* lpFindFileData = {0};
if( INVALID_HANDLE_VALUE == FindFirstFile(lpFileName, &lpFindFileData))
gives me the error message:
cannot convert parameter 2 from 'LPWIN32_FIND_DATAW **' to 'LPWIN32_FIND_DATAW'
and trying this:
LPWIN32_FIND_DATAW* lpFindFileData = {0};
if( INVALID_HANDLE_VALUE == FindFirstFile(lpFileName, *lpFindFileData))
compiles! However, i get the exception: Access violation reading location 0x00000000.
Which, is the address of lpFindFileData.
Thanks for the idea!
RobNO
5-Feb-11 21:51pm
View
Thanks for the reply!!!
Whats the loss? My understanding of using a reference was passing the method the address of the variable, rather than passing it by value which would create another variable specifically for that method. Thus, the gain is no creating another variable. I was not aware that creating another variable was free of charge. This is the best answer I can give. Keep in mind I am a student one year into college program, and we have never went into anymore depth than that, therefore that is all the information i can provide. Now i hope you will provide me with a more low level answer.
Thanks for your time,
robNO.
RobNO
5-Feb-11 11:25am
View
Thanks for your reply!!!
I am aware that reserving memory is faster because the memory does not need to continuously re-allocate memory, however, considering that I wrote that method in less than 2 minutes and never put any though into efficiency, I would have to say its alright. You are also right that I should have used the string classes typedef for string size, I should have put a little more thought into it, but as previously stated I just threw a random idea out. "Could you elaborate on why those indexes are accepted by "(const) reference and not by value?" Yes, their value does not change and I did not want to reallocate the memory for them in the method.
"Why encourage someone to write something that is already there (and a lot less efficient)? " Well, In a way this can be considered Philosophical, however, I do not want to write about anything unrelated to coding. So with that in mind. As a student I believe rewriting code that is already available helps coders learn to improve by coding more, learning there flaws and most importantly becoming creative.
"One strength of a programmer is not if he knows how t write a function, but if he knows if he has to." True!! It already written why waste the time re-writing it, however, another strength for someone learning a language is to learn to rewrite the code by memory,nearly as efficient as the professional who wrote the library; only if they have extra time. Doing that I believe would help with any future projects.
Furthermore, I do not always do this, however, If i have free time I will.
Thanks for your time,
robNO.
RobNO
4-Feb-11 18:24pm
View
Thanks for your reply!!! How can I make this method more efficient? What is awkward about the way i wrote the signature, It is very descriptive is it not(maybe to descriptive)? Nothing is wrong with string.erase(), however being a student I like to try and create my own methods in order to improve. You don't see the point in giving the original poster an idea to perhaps try to create there own methods? How dose reading about a method that returns the memory capacity of a string help me with making an efficient method or are you implying its good general knowledge? Regardless, I posted this method hoping someone would show me a more efficient method, Can you do so? Regards, robNO.
RobNO
4-Feb-11 18:19pm
View
Deleted
Thanks for your reply!!!
How can I make this method more efficient? What is awkward about the way i wrote the signature, It is very descriptive is it not(maybe to descriptive)? Nothing is wrong with string.erase(), however being a student I like to try and create my own methods in order to improve. You don't see the point in giving the original poster an idea to perhaps try to create there own methods? How dose reading about a method that returns the memory capacity of a string help me with making an efficient method or are you implying its good general knowledge?
Regardless, I posted this method hoping someone would show me a more efficient method, Can you do so?
Regards,
robNO.
RobNO
1-Feb-11 20:34pm
View
Sorry to bug but, i am wondering what 'L' represents. I very recently started win32 fyi.
Cheers,
robNO.
RobNO
28-Jan-11 20:12pm
View
I think you talk about things in a way that stimulates thought, which is good because much can be accomplished if the reader is interested.
Thanks for being very smart!
robNO.
RobNO
28-Jan-11 20:01pm
View
I got nothing.
Thanks for being thought provoking!! I will reconsider using the word"everybody," while greeting multiple individuals.
robNO.
RobNO
28-Jan-11 18:45pm
View
All people is a bad guy?
RobNO
28-Jan-11 18:41pm
View
Thanks for your reply!
You do make a good point in terms of there is no harm expressing one's own opinion.
Thanks for your time.
robNO.
RobNO
28-Jan-11 18:36pm
View
Thanks for your reply!
What if my job requires me to learn more than one language?
Thanks for your time!
robNO.
RobNO
28-Jan-11 18:35pm
View
Thanks for your reply!
I am aware Sequence, Selection, Repetition, Object-Oriented (Encapsulation, Inheritance, Polymorphism) are general concepts. My point was is that I am able to do them in C++.
I am not totally sure what you mean by this: "Well ... how much you want to study and how much you need to be immediately productive? How much "business" and how much "reaserch" is behind your "production"?" If your wondering how much do I want to study, my answer is a lot.
I will check out those GUI you have listed (especially if Stroustrup recommends it!).
Thanks for your time!!
robNO.
RobNO
28-Jan-11 7:58am
View
Thanks for your reply.
I believe an employer would love to have a programmer who is able to program in a lot of different languages and likes to challenge himself. C# might actually be what I am doing for a career however COBOL seems pretty likely as well. C++ is a lot harder for me to grasp so I am going to spend more time on that in order to get over the learning curve. Furthermore I will continue to practice C# and Java as I work towards my C++ goals.
Thanks for your time,
robNO.
RobNO
28-Jan-11 7:52am
View
Thanks for your reply and time!
RobNO
28-Jan-11 7:50am
View
Thanks for your reply!
It seems more ideal to start learning WIN32 So i think I am probably going to take your advice and do that.
Thanks for your time!
robNO.
RobNO
28-Jan-11 7:47am
View
Thanks for your reply!
I think that is a great idea, however I am trying to figure out which one I should start learning first.
Thanks for your time,
robNO.
RobNO
28-Jan-11 7:46am
View
Thanks for your reply!
Do you believe that there could be some benefits in learning MFC as I am only trying to learn the fundamentals? or would QT serve a novice better?
Thanks for your time,
robNO.
RobNO
28-Jan-11 7:43am
View
Thanks for your reply!!
I am looking to learn fundamentals in c++. I currently do know a bit about c#, however, I still do need to learn a lot more about it. I am basically trying to get my understanding of c++ up to my understanding of Java and c#.
Thanks for your time,
robNO.
RobNO
28-Jan-11 7:40am
View
Thanks for your reply!
I think I will start learning Win32 because it seems like its the foundation to a lot of application programming interfaces.
Thanks for your time,
robNO.
RobNO
28-Jan-11 7:39am
View
Thanks for your reply!
I have actually learned quite a bit about that already. I will expand my knowledge on that as soon as I get a little bet better in C++
Thanks for your time,
robNO.
RobNO
27-Jan-11 21:07pm
View
Thanks for your reply!
Is there a more up to date c++ Interface classes I should learn? Do you recommend learning how to create GUI in another languages and if so which one?
Thanks for your time,
robNO.
RobNO
27-Jan-11 7:37am
View
Thanks for the reply!!
/f:off. /f:on works! I was not able to try anything with the registry, because I really do not know anything about it.
Thanks for your time!!!
robNO.
RobNO
26-Jan-11 16:59pm
View
Thanks for your reply and time by the way.
robNO.
RobNO
26-Jan-11 16:58pm
View
Thanks for your reply!
I am using windows 7. I should have mentioned that earlier.
Thanks for your time!
robNO.
RobNO
26-Jan-11 16:55pm
View
Thanks for your reply!
This is another silly question! What do you mean by system shell, would you be able to direct me to what you are referring to? I am using Windows 7 by the way.
I would be very interested in making an application that does this, however, I have only ever used system commands in c++. What commands would give me the access I am looking for.
Thanks for your time!!
robNO.
RobNO
25-Jan-11 20:11pm
View
It still does. However, I was hopping that there would be an escape key or some other possible way. I would hate to go back and redesign the current project I am working on, however, that is just the way thing happen some times.
RobNO
23-Jan-11 21:58pm
View
Thanks for your reply!
That fixes my problem because it is A LOT quicker!!! I feel like an idiot for not even trying that.
Thank your help is greatly appreciated!!!
robNO.
RobNO
23-Jan-11 20:50pm
View
Thanks for your reply! I am sorry that I was not very specific and I have made some changes to the code which is posted.
In the updated code block, get_record returns a reference to vector of Records. A Record is a string. The vectors are not required to be sorted (yet anyways). The vector is not equal if the members are the same but inserted in a difference position ( This would be great, however).
Thanks,
robNO.
RobNO
23-Jan-11 20:24pm
View
I am not sure how to use that method with vectors. I will be using your first advice, however.
Thanks for your time.
robNO.
RobNO
23-Jan-11 20:03pm
View
Thanks for your reply.
I am having trouble figuring out how to use memcmp ( I have never used it before). So maybe if I give you a little more detail about my classes you could assist me? So basically I have a class called Journal that has a vector of Records. The Records class is just holds a string. To access the vector of records I do this: lhs.get_record(). To access the Records String I do this: lhs.get_record()[1].get_record().
I hope this is enough information if not tell me what you would need to know in order to use memcmp.
Thanks for your time!
robNO.
RobNO
23-Jan-11 13:00pm
View
My bad, I am just a college student a year in...
RobNO
22-Jan-11 20:51pm
View
Ill accept the answer to this response. An iterator would work just as well but I do think there needs to eventually be away to break out of the function.
Thanks for your time,
RobNO.
RobNO
22-Jan-11 20:40pm
View
Refer to link: http://en.wikipedia.org/wiki/C%2B%2B0x#Lambda_functions_and_expressions
Show More