To do the equaivalent of a VB: Document.All.Item("DoThis").Value = "GetName", you can do this with pElem
CComBSTR bstrNewValue;
bstrNewValue = L"GetName";
VARIANT varNewValue;
VariantInit(&varNewValue);
V_VT(&varNewValue) = VT_BSTR...
I wrote an activex dll in VB and I made a reference to the MS Internet Controls (SHDOCVW.DLL) and I wrote a sub that receives a WebBrowser control from the client:
Public Sub Test(TheBrowser As WebBrowser)
After compiling the project I can use the OLECOM viewer and see the Type Library is...
I have a fairly large VB DLL that I have created and my boss and I are considering redoing it in VC++ so that it is smaller to distribute since we won't have to send out the VB runtime and will run faster. Does anyone know of any conversion programs out there that can aid us in this and help...
I have yet to figure out how you add a picture box and buttons to the second, third, or fourth (etc..) tabs but I finally stumbled across this little VB addin that works great and solved my problem. Best yet its free!!! It allows you to switch and view all the different tabs during design time...
I found this in the help section and I was successful with my project:
---------------------------
If you write your application in Microsoft® Foundation Classes (MFC), you should create a command-line class that inherits from the CCommandLineInfo class and override the ParseParam method...
Is there a way that you could make the button with the resource editor during design time but make it not visible. Then when you want to see it you could pass the WM_VISIBLE to it????
I played around with this some more and I figured out that you obviously know how to add the message handlers but they just don't work. I found this website:
http://arturmarques.com/tutorials/vcpp6/lesson4/mouse_kb_events.htm
It had this snipet near the bottom:
----------------
But this new...
I am not certain. I have never done this but it looks very promising.
When you have your ClassView workspace displayed, right click on your dialog class. Click on Add Windows Message Handler.
I created a new new dialog project and I say the keyup and keydown on the list.
Tim
Thanks Mike.
I think that is the way you would do it with a console application but with a Dialog application created with the VC++ application wizard there is no main. So since there is no main, I wonder where the parameter would go????
Also with a simple console application created with...
How do you set up a VC++ Dialog based program, that is created using the VC++ application wizard, to receive an incoming parameter. Example: testprogram.exe parameter1 or if I wanted to pass a textfile to the program - testprogram.exe textfile.txt
I have checked all my newbie C++ books and I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.