Click here to Skip to main content
Page 1 of 47
Page Size: 10 · 25 · 50


Author filtered by: Blake Miller [x]
My vote of 5 by Blake Miller
Forum Message 5 Apr 2013  
WIX is becoming more and more popular and it is good to see some articles on it. Nice to have compared why to use DLL versus EXE.
Re: Confused by Blake Miller
Forum Message 19 Feb 2013  
Cale Dunlap wrote:That way the proper amount of memory is returned to the operating system explicitly by the implementation instead of risking heap corr
Forum Message 15 Feb 2013  
I am trying to find a list of ‘affected’ API in Windows 8. Microsoft used to release a file called Win32Api.Csv that would summarize every function call changed in a new version of the OS. I am
Forum Message 29 Jan 2013  
I am wondering if someone has used an API or Toolkit to incorporate Anonymous Usage or User Experience into their product. For exmaple, when you install Visual Studio, it asks if you want to partic
Answer 20 Dec 2012   license: CPOL
Then you must override the drawing of the non-client area yourself, and perhaps even handle the mous clicking and window dragging as well. That area above the client area where the title bar is drawn is called the non-client area, and some legacy articles here or on CodeGuru might explain how...
Answer 20 Dec 2012   license: CPOL
And if you REALLY want to debug your application, insert a DebugBreak() function call into it somewhere convenient - based on a button, or user action, or even close to its startup.
DLL initialization failed by Blake Miller
Answer 20 Dec 2012   license: CPOL
If this code is where your DLL is loading, you probably get that error because the MSXML.DLL cannot load into your process at the same time as another DLL (in this case your own DLL) is loading.This happens a lot with new developers - everything ends up at 'dll load time' and then they...
C++
Answer 20 Dec 2012   license: CPOL
Sorry I can't exactly answer your question, but here is what we did:We had mixed results over the years with MFC applications and Rational Purify.Now we use Memory Validator - no problems.
Answer 20 Dec 2012   license: CPOL
Unless you provided credentials or are actually logged in as an adminsitrator, then the account does not have permission to write those registry keys.You can in your own program indicate that you need to write to a restricted area, ask the user for some credentials, login from your...
Answer 20 Dec 2012   license: CPOL
You still need to include "windows.h" for the windows application even if it is a 'console' application because you want to use calls like LoadLibrary and such, which are perfectly valid to call.You obviously need to remove the message boxes and other calls that bring up windows, if you...
Answer 20 Dec 2012   license: CPOL
The 'B' domain users must each have "Log On Locally" permissions granted on the second machine. Or else the second machine must also be joined to 'B' domain.
C
Answer 20 Dec 2012   license: CPOL
Once the form is up, you need to calculate screen size, and then adjust the form size. If all the internal controls already resize themselves, they will after the main form is repositioned. There is usually nothing to autmaticlaly make the form fit the screen unless it is 'maximized', so you...
Answer 20 Dec 2012   license: CPOL
Assuming you must use 'streaming', I would have done this a bit differently.Read the new first line and write to a file.Append the old file to this new first file, not necessarily trying to read entire file into memory, either.Delete the old source file.Rename the new file as the old...
C++
Forum Message 4 Dec 2012  
I am with you there - unless you have SOOO much memory you don't use any virtual. If you are routinely generating page faults in the millions, then add more RAM or get the SSD and see your performa
Forum Message 4 Dec 2012  
A revolving red light with a klaxon would be even more amusing! I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
Re: Racing stripes by Blake Miller
Forum Message 4 Dec 2012  
They missed out on 'duct' tape. I broke open my old HP Server last night because the damn release was not working, now the 'clamshell-easy-open' case is held together with duct tape.
Sleep( X ) by Blake Miller
Forum Message 30 Nov 2012  
Your program could be more responisve, perhaps even to logoff, if you used WaitForSingleObjectEx function instead of the Sleep. The controller could then set an event to indicate the thread should ex
Forum Message 2 Nov 2012  
Confirms my 'gut feeling' and we all know how much we like to depend upon those :) I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
Forum Message 2 Nov 2012  
Awesome! Thanks for the link. :thumbsup: I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
Forum Message 2 Nov 2012  
Thank you for your answers. Would you have a link to a tech note, language guide or MSDN about this part "Microsoft 'advises' to use uppercase constants." It does matter. I am looking into this
Forum Message 2 Nov 2012  
Suppose two strings, String S1, S2; Which is faster: if( S1.ToLower() == S2.ToLower() ) Or: if( String.Compare(S1, S2, true) ==
Forum Message 12 Oct 2012  
Just quickly .... SSD ... I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
Forum Message 12 Oct 2012  
Targets? I need a 32 bit unsigned value just to hold the number of coding WTF I see in a day …
Forum Message 12 Oct 2012  
I think DodgeBall can hold up, because not only did he refer to his cycling career, but also to surviving his TC, as I recall, so there :wtf: I need a 32 bit unsigned value just
Answer 10 Oct 2012   license: CPOL
Do you impersonate the user prior to the COM calls?COM call could be executing in different thread, for which your impersonation is not set.
Answer 10 Oct 2012   license: CPOL
Install a low level mouse windows hook.Watch for mouse messages. Reset a timer for each message observed.If timer goes off, you have not seen mouse message in that time.See SetWindowsHookEx function using WH_MOUSE_LL
C
Answer 10 Oct 2012   license: CPOL
I am suspicous of the function dequeue_the_packet.You do this...old_temp_head1 = temp_head; while (old_temp_head1->new_packet != NULL)and later..if (temp_head == NULL) return temp_head;Now you should already have had an access violation if temp_head == NULL when you...
C++
Forum Message 28 Sep 2012  
This is great. I was just posting the orginal code because of the three reasons I listed. 1. Should be a function - REGARDLESS. 2 - It's inefficient on multiple levels. 3. MS already has the 'tried
Forum Message 28 Sep 2012  
1. This code was COPIED to 3 different places - they didn't bother to make a function out of all of it. That is probably the worst error, because now if this 'new' code has bugs, you have to modify t
Forum Message 26 Sep 2012  
We can strip leading and trailing spaces from a string…. int len = strlen((LPSTR)wName); while( *((LPSTR)wName + len - 1) == ' ') {
Re: Profanity in code by Blake Miller
Forum Message 27 Aug 2012  
Well, maybe not profane, but likely hilarious. After the third or fourth time fighting the build system, I submitted this labeling comment: "This is as much fun as eating a poopy flavored lollipop.
Answer 24 Jul 2012   license: CPOL
Can't speak for Linux, but on Windows you can look into _gmtime_s and time and difftime Look in MSDN under the topic "Time Management".
Re: Dot matrix printers. by Blake Miller
Forum Message 16 Jul 2012  
I have a wide-carriage Okidata Microline 395C 24-pin printer here in my office. In the automation industry, real-time records are printed to the line printer, one line at a time (try doing that wit
Re: Dot matrix printers. by Blake Miller
Forum Message 16 Jul 2012  
Speaking of CRT monitors, on the relaly cheap ones, I can hear the flyback transformer buzzing - sounds like a mosquitoe flying right next to my ear. I need a 32 bit unsigned va
Defined and Data types by Blake Miller
Answer 12 Jul 2012   license: CPOL
Besides, with the different return types, your cast cannot work as the stack could get messed up.See this link for similar problem and solution.http://social.msdn.microsoft.com/Forums/eu/vcmfcatl/thread/208499e4-0c09-4835-ad80-313121eb75d5[^]
C++
Answer 10 Jul 2012   license: CPOL
CMyClass::thre...
Answer 15 Jun 2012   license: CPOL
Below is some code to read the event records from the "Security" event log.At the bottom is a link to an MS article describing how to 'decode' the Logon/Logoff event log records, which is even more complicated than reading the records. Since you made no mention of even obtaining the records,...
C++
Answer 2 May 2012   license: CPOL
From: Wes Aday : Would Process.GetProcesses() not do the same thing?Yes it would. Thanks for the tip.Collect array of processes:// Get all processes running on the local computer.Process [] localAll = Process.GetProcesses();For each process get the...
Question 1 May 2012   license: CPOL
Has anyone seen code to call EnumProcessModules and EnumProcesses from C# lately?Got a setup shim pogram all written in C# and need to determine if any process has a DLL loaded prior to copying files.Thanks.
Forum Message 26 Mar 2012  
Seriously, I am not installing 3 or 4 different browsers on my machine to view articles here. Try to fix it for IE. I don't typically have trouble viewing the images. I need a
Forum Message 19 Oct 2011  
Wow, I had not seen OPS5 in print anywhere in a long time.... Used to do that on a DEC MicroVAX II. I need a 32 bit unsigned value just to hold the number of coding WTF I see in
Answer 15 Sep 2011   license: CPOL
1. I always start threads with beginthreadex in case the C runtime library gets called from code within the thread.2. Did you ever call PeekMessage() when the thread starts to make sure that a message queue is created for the thread?
Answer 15 Sep 2011   license: CPOL
If you have a window you can register for Terminal Services notifications using WTSRegisterSessionNotification. Then watch for WM_WTSSESSION_CHANGE and specifically for WTS_SESSION_LOGOFF.
Forum Message 9 Sep 2011  
I was reading a Microsoft article on the format of the PE Header and I could not find mention of this PDB-related GUID. Can you please point me to documentation on its whereabouts in the PE image? I
My vote of 5 by Blake Miller
Forum Message 9 Sep 2011  
Well-written introduction to this SDK!
Answer 3 Aug 2011   license: CPOL
Thanks Roger Allen.I used this:HookImportFunctionByName v1.0[^]and the trick was to set the module not to the EXE but to the module handle for MFC42?.DLL (obtained with GetModuleHandle() call) and to hook the function "SetWindowsHookExA" since I am building ANSI.I can see the calls...
Answer 3 Aug 2011   license: CPOL
Thanks for the links Kythen.I think I will have the custom dump file generator collect the information and add that to a user stream in the DMP file.
Forum Message 1 Aug 2011  
Yes, I might have hoped to see F1 help, tooltips or something else being added here beyond the mere basics.
Forum Message 29 Jul 2011  
You cannot start a thread and expect it to be RUNNING from within the DllMain function. Your thread created within context of DllMain will be created, but suspended until the DllMain returns. That i
Forum Message 29 Jul 2011  
DWORD dw = ::WaitForSingleObject(m_mtxMonitor, INFINITE); bResult = (WAIT_OBJECT_0 == dw); if (bResult) { // Add it to the STL queue m_Queue.push_back(element);

Page 1 of 47
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid