I've been trying to find of a working sample, but no luck! I only managed to find MFC samples. If someone knows how to get one in place by logic or a sample for it in Windows API code.
Fareed Rizkalla
Posts
-
Read-Only ComboBox -
programingC is not widely used anymore. C++ is a superset of C. You can code programs similar to C in C++. Go to http://msdn.microsoft.com/, select Desktop and learn!
-
FILETIME / WinAPII'm telling my problem, and asking for a possible cause! If you don't have AM/PM in a time format you assumed it's using the 24 hour format. I was mapping files on my drive, when I suddenly found a deviation between the time listed in Explorer and my output. It seemed to occur randomly and it was related to time during AM and only files related to the OS, not the files which I had created which were also during the same period AM. Is this clearer?
-
FILETIME / WinAPIYou haven't read my problem, maybe took a good look than a glimpse at it! FileDetails is Structure used in FindFile function.
FILETIME UTCTime = FileDetails.ftCreationTime;
FILETIME LocalTime;FileTimeToLocalFileTime( &UTCTime, &LocalTime);
SYSTEMTIME HumanReadableForm;
FileTimeToSystemTime(&LocalTime, &HumanReadableForm); -
FILETIME / WinAPII understand the FILETIME structure and how data is stored. However I called a Filename's attributes and retrieved the time/date attributed to it. Then calling FileTimeToLocalFileTime function converts from UTC to LocalTime. However I'm seeing a weird anomaly, it appeared to occur on the 24 hour conversion. Time during the day (AM) was missing an hour, but on special folders by located for Windows. Even files located in the root I created during the day were correctly timed? :doh:
-
VS2010 & SDK 7.1Does anyone know if I can make the SDK 7.1 directories the default instead of using the SDK 7.0! :^) I know that you can configure them on each solution, but it is very boring to set them on each solution. Or should I copy and replace files of 7.0A with 7.1. :rolleyes: (Might even free up some disk space in the process)
-
Stringwcscat_s keeps throwing an error that the string isn't null terminated! :S
-
StringIf I assign a string to a variable. char* t = "Hello World!"; Doesn't this string get a fixed array with a null terminator at the end?
-
Extract numbers from stringRead from right - to - left. Check if digit and set position for the left most digit. Deduct position from length and then you can get the length of your string.
-
RegGetValue / Win32I thought does was an old function available since Windows 2000. Any idea how to get a previous older function?
-
RegGetValue / Win32Gave a program for a friend to test, as soon as he launched he was notified with this error.
The procedure entry point RegGetValueW could not be located in the dynamic link library ADVAPI32.dll.
I went back to the drawing board only to find out that it is only called after the user has interacted with the program. So it's not something I'm doing during startup of the application! -
CreateWindow / CreateWindowExWhat is the difference between CreateWindow and CreateWindowEx? I know of the extra functionality provided by using the CreateWindowEx, but is their any difference in performance. Is my program missing out on any other speed or interaction functionality by using the older CreateWindow function?
-
making a win32 dll project (visual studio) on a 64 bit machineYou can run 32 bit on 32 or 64 bit machine. However 64 bit has to run on a 64 bit machine ONLY!
-
System HookingI'm trying to monitor clicks in any web browser (might settle for one browser as a default to base my code). Since it's my first attempt, I've been reading a bit but appreciate any suggestions on the topic. Most hook examples are dll's that are hooked to a process. I thought of using the services to load the dll and hook it to the process. Since it would not bring down my main application.
-
Unsigned/SignedSo a value declared int in C++. Is signed. However if I choose unsigned and assigned a negative value. It should be zero. Instead I get a large value, based on the most significant bit being 1 (representing the sign value). And whatever was the original value being assigned is deducted from that value. So -0, if nothing is to be deducted. Someone should it be doing this?
-
STL / Custom Linked ListBig-O-Notation!?
-
re:looking for winsock listener tcp c++ example that supports multiple potential clientsWell their are differences between implementations of the Windows version and *nix. Here is the link
-
STL / Custom Linked ListWhich is better writing my own custom Linked List class or using STL? Which is better not just from the point of speed, but also memory usage?
-
Retrieve TreeView Selected ItemTVITEM* Selected; TreeView_GetItem( HandleforTreeList, Selected); Fails saying uninitialized variable!
-
Retrieve TreeView Selected ItemBut that returns an HTREEITEM, can't find any details on this structure on MSDN.