|
http://msdn.microsoft.com/downloads/default.asp?URL=/code/sample.asp?url=/msdn-files/027/001/566/msdncompositedoc.xml
Download the WMI sdk, its full of samples. You will need to do some reasearch on your own and learn about WMI and how it works. Try using the search engine on this site, codeguru and others. Learning to research a problem will server you well in the future.
Thanks for the help,
Bill
|
|
|
|
|
Hey...I need to put "rollover buttons" into my program. It's in Win32 API. How and where would I start to learn how to do this? Thanks - Dave
|
|
|
|
|
I dunno if you can do this without subclassing the button yourself.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Am trying to add more than 32,767 items to a CListBox using AddString ( or even InsertString), and it's not working on Windows 98 although it works on Windows NT and Windows 2000, so what is the solution for this problem knowing that i want to use the CListbox class in my solution ......
|
|
|
|
|
You can't overcome this listbox limit on Win9x. Even if you could, it's not a very good idea to present the user with thousands of items.
Anyway, seems that you'll have to switch to CListCtrl, and probably use LVS_OWNERDATA style.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
The old User controls (like the listbox) still have legacy 16-bit limitations, thus the 32K items limit (32K is the max value for a signed 16-bit int).
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
Store your own array of items, then use a small list box to display a selected number of them. Use your own slider control and fill the 10 or 20 or however many you are displaying from an index into your own array. Its probably faster anyway.
--Mark Terrano
|
|
|
|
|
(I want to know everything about how to handle them!!)
How to use the CheckRadioButton(..) method?
I don't understand what they mean in MSDN Libray with the parameters!
But if I say how I want to use them: I want to set the radio button to be checked, and I want to know if the radio is checked!!
HEEEELP!!
------------------------------
CodeCracker - That's me!
------------------------------
|
|
|
|
|
look up the following in MSDN
CButton::SetCheck
CButton::GetCheck
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
CheckRadioButton is fairly simple to use.
The first parameter is the first Radio button ID in the group of Radio buttons. If you had three radio buttons in a group, IDC_CHOICE1,IDC_CHOICE2,IDC_CHOICE3 then the first parameter would be IDC_CHOICE1. The second parameter would be the last one in the range IDC_CHOICE3. The last parameter is the id of the button that you want checked.
You can use IsDlgButtonChecked to find the selected button,
hope this helps,
Michael
|
|
|
|
|
Hi,
to set a radiocontrol checked: m_RadioName.SetCheck(1);
value 1 = checked
value 0 = unchecked
if you want to test the status: if (m_RadioName.GetCheck()==1){...}
|
|
|
|
|
Like this
Use CheckRadioButton(hDlg,IDC_RADIO1(id checked),IDC_RADIO1(start group),IDC_RARIO5(end group))
When you want to know if the button checked use IsDlgButtonChecked(hDlg,IDC_RADIO1)
Bye.
|
|
|
|
|
I have dll that wrote in vc and its exported function declared so:
extern "C"
{extern int WINAPI func(int num)}
How have I declare that function in my project(client program) if I want to use it as imported function ?
|
|
|
|
|
|
This should do what you need:
HINSTANCE DLLhInstance = LoadLibrary("PathToFile.DLL") ;
typedef int (*FUNC)(int) ;
FUNC function = NULL ;
if (DLLhInstance != NULL)
{
function = (FUNC)GetProcAddress(DLLhInstance, "Func") ;
int value = function(value_to_pass) ;
FreeLibrary(DLLhInstance) ;
function = NULL ;
DLLhInstance = NULL ;
}
Any other queries?
Roger Allen the man
|
|
|
|
|
but althoutht that dllis work in vc client program ,
delpi client program dont success implement it.
Have you idea why ?
|
|
|
|
|
Make sure you also list the function in the exports section of the .DEF file!
|
|
|
|
|
Hey all,
At the Moment I handle Every Thumbtrack message within OnScroll but I would like to
wait till the user stops moving before the View is updated!
How do I update a scrollView after the user has stopped moving the ThumbTrack?
|
|
|
|
|
|
Hi,
anyone here experienced with Word automation?
I have a application, in fact a COM component, provide functionalities for
extracting Word document data, it was tested well with Word XP, Word 97, but
failed with Word 2000
the error is very strange, when I create a Word instance by
CoCreateInstance, it's failed and return error: 0x80080005 - Server
execution failed
I have spent whole day to fix the bug, search entire MSDN, but the result is
nothing, although have some articles cover this bug, but neither of them
have final approach (and feasibility) to work-around.
It's still the bug, I will try with other copy of Microsoft Word 2000, but
if you know what problem is, give me the way to solve, pls.
thanks a lot,
Tien,
|
|
|
|
|
|
Our problem was solved, it's the Norton Antivirus's fault
Thanks so much for supporting from Microsoft Developer Support
Q246018 - BUG: Automation Error 8001010A when Automating Word 2000
http://support.microsoft.com/support/kb/articles/q246/0/18.asp
But let me add some information, we didn't find the solution ourselves
because this bug isn't covered in any articles in MSDN, also the reason is
the same, the error code is different, in our case, the
_com_ptr_t::CreateInstance return error CO_E_SERVER_EXEC_FAILURE
(0x80080005: "Server execution failed") when instantiate Wors.Application
object.
(in Visual Basic, the error is error 409: ActiveX component cannot create
object).
|
|
|
|
|
Is any body know how to make a flat window, I mean there is no separate line between the menu and tool bar.
Thank you
|
|
|
|
|
If I create a new edit control class derived from CEdit and handle WM_CONTEXTMENU this gets called when you right-click in the edit control, as you would expect. However if I do the same with the tree control, it only gets called when you double right-click, does anyone know why this is and how to make it respond to single right-clicks?
Thanks,
Mark
|
|
|
|
|