Type: Posts; User: Arjay
Search took 0.20 seconds; generated 1 minute(s) ago.
The bottom line is you are breaking a fundamental rule of windows programming and that is not to block the UI thread. When you wait on the CreateProcess, you are blocking and the UI isn't pumping...
I understand how you feel - about 20 years ago, I learned my 1st language C++ on my own. It was tough and that was pre-internet.
The nice thing now is there are plenty of on-line resources. ...
April 23rd, 2015, 08:40 PM
Great. It wasn't clear that you were trying to do this on your development machine.
Yes, you can set the output directory under the build tab. Another way is to execute a copy in a post build...
April 23rd, 2015, 12:19 PM
Not sure I follow. If you are replacing the current version of the console app with a new version, don't you have to copy it or install it anyway? If you are installing it (or copying it) to some...
April 23rd, 2015, 09:07 AM
Another option is to add the utility folder to the environment path.
April 18th, 2015, 07:40 AM
Yes, you misunderstand. The one lock for the dictionary is different than the 'value' locks. The dictionary lock is to make the dictionary thread safe (and all access goes through this lock). ...
April 17th, 2015, 01:47 PM
Great, care to share your solution?
April 17th, 2015, 01:46 PM
One way is to create a thread safe dictionary of indexed lock objects. The key would be the integer value and the dictionary value would be the lock object.
You would lock the dictionary and...
April 17th, 2015, 10:08 AM
Yes, that is exactly my point. Thank you.
April 16th, 2015, 03:17 PM
A relevant "Most Interesting Man in the World" quote:
"I don't often write an xml parser, but when I do, I like to start from scratch!"
April 16th, 2015, 08:51 AM
Hopefully this is all just a school assignment because writing an xml parser for a work assignment would be a waste of time.
Sure, I guess there could be some edge case scenarios working on some...
April 16th, 2015, 08:44 AM
One way to solve this problem is with the UI thread, a worker thread and a threadsafe std::queue. The thread safe queue will get locked while pushing or popping items (and unlocked immediately...
April 15th, 2015, 09:10 PM
April 15th, 2015, 09:05 PM
Have you checked whether Visual Studio Community Edition 2013 includes MFC?
April 9th, 2015, 04:03 PM
Screen shots don't include the cursor.
For example, if you press the PRNT-SCRN button on the keyboard and open PAINT and paste in the results, you'll notice that the screen is captured without the...
April 9th, 2015, 02:31 AM
What error are you getting?
April 8th, 2015, 11:47 AM
Look into using WMI (Windows Management Instrumentation).
April 6th, 2015, 01:22 PM
Again, please use code tags. Also, when someone takes the time to respond to your posts, please at least acknowledge that you've seen the reply.
April 2nd, 2015, 04:02 PM
Ahmedsa, use  code tags instead of <> tags. Also, please format your code and use some whitespace, indents, etc.
Code that is jammed all together is extremely hard to read and debug.
April 2nd, 2015, 12:04 AM
Please reformat your code using code tags.
April 1st, 2015, 06:11 PM
The following will give you a date time that is tomorrow's date at 7am.
SELECT CAST((CAST(CAST(GETDATE() + 1 AS DATE) AS NVARCHAR(10)) + ' 07:00:00') AS DATETIME)
As I mentioned, do this in SQL...
April 1st, 2015, 07:42 AM
Just create a test program with a regular dialog box and mess with the styles until you get it right. Then make the changes to your program.
To find which styles, do a search in bing or google...
April 1st, 2015, 12:52 AM
Instead of DATEDIFF use something else like calculating the start and end date times and use between.
Debug this using a sql query before trying this in your C# code.
April 1st, 2015, 12:48 AM
Sure, modify the code to remove the title style and hide the buttons.
March 31st, 2015, 09:27 PM
Are there any orders between 12am and 7am in the database?
Does the following where clause properly span the two days? WHERE DATEDIFF(d,dbo.[Jeddah-Live$Sales Line].[Shipment Date],GETDATE()) = 0
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.