I tag this with (not quite Inter-process) since my dll is part of the parent code when loaded so maybe "Inner-Process" is a better term? Anyways.....
I have a dll, that a couple functions report back to the parent language to a textbox some data during long processes, which works well with languages that I can pass a Hwnd (or Handle) of the textbox for my function to report back to.
I declared the function parameter as Long (probably should've made it DWORD) but anyways, here is the problem.
Some Languages I find out that the textbox is "Windowless" (I have absolutely NO knowledge in that area) and I am told I can NOT get a handle or Hwnd in the parent language to pass to my my dll for my dll to report back to the parent.
In this case I thought of maybe "WM_SETTEXT" (But SendMessage needs an Hwnd), and I thought of "RegisterWindowMessage" (But unsure if a "Windowless" language would even respond)....So I ask if anyone here has experience with this "Windowless" idea and could offer some help how I could either build a routine into the parent program, or in my dll to achieve communication?
The other is in C where the Hwnd for the textbox is declared as "HWND MyTextBox", but I can not find how to use whatever this pointer, or Hwnd, or whatever could be used (I cant even figure out how to display it in a messagebox for that matter)....So Again I ask if anyone knows how and can help?
In either case, I asked in the forums for that language (unfortunately no matter how many times I explain that the dll is NOT an OCX, that I got "Oh use this property/method/some ActiveX routine" that I do not use (nor would want to).....So I take it to the masses, and the wealth of knowledge from PB'ers that I know many of you come from backgrounds in other languages, or at least use PB where your "preferred" language "falls short" in some areas.
Any help or ideas I have not thought of would be greatly appreciated. To date, normally if stuck with this kind of problem, I document the function as not available in whatever language I can not make work. Although this one seemed to rear its ugly head and I now find a situation that my function could easily solve (If I only knew how that is)
I have a dll, that a couple functions report back to the parent language to a textbox some data during long processes, which works well with languages that I can pass a Hwnd (or Handle) of the textbox for my function to report back to.
I declared the function parameter as Long (probably should've made it DWORD) but anyways, here is the problem.
Some Languages I find out that the textbox is "Windowless" (I have absolutely NO knowledge in that area) and I am told I can NOT get a handle or Hwnd in the parent language to pass to my my dll for my dll to report back to the parent.
In this case I thought of maybe "WM_SETTEXT" (But SendMessage needs an Hwnd), and I thought of "RegisterWindowMessage" (But unsure if a "Windowless" language would even respond)....So I ask if anyone here has experience with this "Windowless" idea and could offer some help how I could either build a routine into the parent program, or in my dll to achieve communication?
The other is in C where the Hwnd for the textbox is declared as "HWND MyTextBox", but I can not find how to use whatever this pointer, or Hwnd, or whatever could be used (I cant even figure out how to display it in a messagebox for that matter)....So Again I ask if anyone knows how and can help?
In either case, I asked in the forums for that language (unfortunately no matter how many times I explain that the dll is NOT an OCX, that I got "Oh use this property/method/some ActiveX routine" that I do not use (nor would want to).....So I take it to the masses, and the wealth of knowledge from PB'ers that I know many of you come from backgrounds in other languages, or at least use PB where your "preferred" language "falls short" in some areas.
Any help or ideas I have not thought of would be greatly appreciated. To date, normally if stuck with this kind of problem, I document the function as not available in whatever language I can not make work. Although this one seemed to rear its ugly head and I now find a situation that my function could easily solve (If I only knew how that is)

Comment