Questions about cleanups of DCs and Bitmaps
So Lets say I create a DC with CreateCompatibleDC, and then create a Bitmap with one of these 3 functions: DDB from CreateCompatibleBitmap DDB from CreateBitmap DIB from CreateDibSection Then I select...
View ArticleWhat exactly does RegisterWindowMessage do?
Does it add the string that's the input parameter to some entry in the Windows Registry (as hinted at by the fact it is called REGISTER window message, instead of STORE window message or SAVE window...
View ArticleSysCommand
I have two forms. Sometimes form2 is set to be the child of form1 using SetParent API WM_SysCommand triggers (by subclassing) when any Close,Maximize or Minimze is clicked whenever form2 is NOT a child...
View ArticleHow do I make a STATIC type window not ignore the mouse?
I used CreateWindowEX, and for the Class Parameter, I put in "STATIC". This creates a window with nothing in it, but the label containing the text for that window ("Test Window" in this case). Now the...
View ArticleSkype4COM - NullReferenceExeception
Hello, Using this: Code: Public WithEvents oskype As SKYPE4COMLib.Skype Private Sub GetSkypeInfo_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GetSkypeInfo.Tick...
View ArticleWhat are the values of the DrawDib constants
When using API functions DrawDibDraw and DrawDibBegin, there is this flags parameter that wants these constants (such as DDF_BUFFER or DDF_ANIMATE). But while the MSDN has written very plainly the...
View ArticleRead Process Memory of FIFA 15 - static Address
Hello Guys, at the moment I'm a bit desperate to find a solution for my project. Id like to scan the FIFA application with an interval of 50 ms to see if goals were scored. Then, if a goal was scored,...
View ArticleButton
I want to click on a button using EnumChildWindows and SendMessage. But using WindowFinder I have found that the buttons on the window have blank titles. How can I find the handle of the button with a...
View ArticleHow to go about using the HTTP.sys api
I wanted to see how I might go about working with the HTTP.sys api. Is this the right spot for a question like this? Or is this better off in the C++ section of the forum?
View Articlehref buttons
I am using SendMessage to click buttons on a windows it works ok for regular buttons but not for href <a> type buttons how do I click these? Thanks Steve
View ArticleHow do I change the treeview highlight color VB6
I haven't been able to figure out how to change the Treeview highlight text color and background color. tv1.SelectedItem.Forecolor and .BackColor does not change the Highlight colors, only changes the...
View ArticleTextOut: printed text displaced on paper, correct when printing to PDF
Hi! I am printing some text using the API function TextOut. The following code snippet shows how I am converting my coordinates to pixels: 'The TextOut function expects the x and y coordinates in...
View ArticleConvert 8.3 Short filenames to long filenames
I have many short filenames that I wish to convert to a long filename in the Plus! theme directory. Example: SPORTS~4.WAV Using GetLongPathName is returning the exact filename and case in the specified...
View ArticleWindows Desktop Search Scope question
Hi everyone, I have coded a search form to use in Access using Desktop Search (WDS 4 ) I have read a few code snippets where this kind of thing is quoted: Code: "SELECT System.FileName,...
View Article[RESOLVED] Function GetOpenFileName Lib "comdlg32.dll
i think i need some help lol: i have a macro who Works perfectly in 32 bits... now i have a upggrade to a 64 bits program and it doesn't work... any help? the part that doesn't work is a call to the...
View ArticleFacing problem in CreateObject("MSXML2.ServerXMLHTTP.6.0")
Hi All, I'm currently facing some issues with creation of CreateObject("MSXML2.ServerXMLHTTP.6.0") object. Public Function PrepareHttpRequest(Request As RestRequest, TimeoutMS As Long, _ Optional...
View ArticleQuestion about CreateProcess
When I use CreateProcess to start a program from another program, do I get access to the virtual memory space of the created process? Normally if I use CopyMemory to try to copy from one process to...
View ArticleAllocating memory for execution?
How does that work? I was looking at https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx when I noticed this very interesting sentence. Quote: To execute dynamically generated code, use VirtualAlloc...
View ArticleHow do I determine what type of drive I've opened?
If I use CreateFile with a drive such "\\.\c:" (a logical drive, starting with the first sector of the first partition of the harddrive), or "\\.\physicaldrive0" (the first harddrive starting with the...
View ArticleHow long does the screen's device context handle last?
Say I use GetDC(0) to get an hDC directly to the screen, how long before that number is no longer valid, and I need to get a new hDC for the screen? Does this happen each time the screen is refreshed?...
View Article