|
http://www.microsoft.com/whdc/system/pnppwr/wmi/default.mspx
plz visit this site may be it will help u and when u search the link in this page ..u got the desired code
|
|
|
|
|
still no help related to that
|
|
|
|
|
have u search that site and sublinks of that site ...there is a code given there ..
|
|
|
|
|
There are at least two dozen links on that page. Care to be a bit more specific? If you already know the link the OP should visit, why not post it rather than a link that requires drilling down several layers?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How to change the font name, font size, or font color in Static control designed in VC6 with Win32 Application Envionment not in MFC. The Static control is created by CreateWindows command.
|
|
|
|
|
lamtam wrote: name, font size, or font color in Static control
You can use the LOGFONT structure. Initialize the members and pass it to CreateFontIndirect.
You would need to send the message (WM_SETFONT)to the concerned window for reflecting the changes made to the font.
SendMessage(hWndStatic , WM_SETFONT, (WPARAM)hFont, MAKELPARAM(TRUE,0) );
-- modified at 2:51 Thursday 28th September, 2006
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I can change the Font size, font name but font color does not change. I use the LOGFONT structure and send the messege to the concert window.
|
|
|
|
|
Do you want to change color of text on Static control?
|
|
|
|
|
See WM_SETFONT and CreateFontIndirect
|
|
|
|
|
Simple just Create the font u want to set and send WM_SETFONT message to your static control window.
cheers.
---------------------------------------
bulls eye
|
|
|
|
|
See the Extras section of this article.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have a pre-configured VPN connection in my network settings.. I am trying to create a small util which can automatically start the VPN connection, and also terminate the same. No user interaction is desirabel except for starting teh util.
I woudl appreciate more insight into the same.
regards
|
|
|
|
|
Hello frends ,We want to made English to Hin or Eng to eng Dictionary with talkie .the translation of eng to eng is easy but eng to hindi is not possible ..bcoz there is not any text to speech conversion algorithm i found in hindi . plz help me out
Thanks
|
|
|
|
|
somefn()
{
UCHAR *pChar;<br />
ULONG bufSize=0;<br />
pChar = new UCHAR [DataLength*sizeof(UCHAR)];<br />
memcpy(m_pAudioBuffer+previousBufSize,pChar,Datalength);<br />
m_previousBufSize +=bufSize;<br />
if(m_previousBufSize >= MT_BUFFER_SIZE)<br />
SaveToOutputFile();
if(pChar != NULL)<br />
delete pChar;<br />
pChar = NULL;<br />
return;<br />
}
this function is called in a loop and when bufsize becomes morethan MT_BUFFER_SIZE the buffer will be saved into a file(SaveToOutPutFile()).
Untill the buffer is saved into file the code is working fine. when the condition is becoming ture and after SaveToOutPutFile() is being called the statement delete pChar is giving an accertion filure.
In the SaveToOutPutFile im saving m_pAudioBuffer to a file.
The error shows
_CrtIsValidHeapPointer(pUserData).
how to solve this.Please help.
KIRAN PINJARLA
|
|
|
|
|
Give codes in SaveToOutPutFile()
|
|
|
|
|
First of all i think
pChar = new UCHAR[DataLength+sizeof(UCHAR)];
should be
pChar = new UCHAR[DataLength];
Secondly,
delete pChar
should be
delete[] pChar //always use delete[] to delete arrays
If you still get the assertion, u are crossing the limits of your allocated buffers. Look for overflows in you char buffers
cheers
Here we go again!
|
|
|
|
|
is there a predefined class called CPanel class in vc++ as similar to that of TPanel in borlands c++??
zari
|
|
|
|
|
And what is this TPanel class doing ?
|
|
|
|
|
Its a predefined class for the component panel in borlands c++.
Using the package concept, we can create a customized component from the predefined components.
So need to know how this can be used in vc++?
zari
|
|
|
|
|
I don't think a lot of people here knows borland so it is always better to describe exactly what you need instead of something like X.
Your post is still very unclear. What is a component panel, what is a package concept ?
I suppose it has something to do with the controls (buttons, edit box, list control, ...). Am I wrong ?
Do you know the MFC ? Is that what you are looking for ?
|
|
|
|
|
Package is nothing but a dll.Through package v can add the already existing component (ex) TPanel.
Using this as a base class i can create a userdefined class that can customize the component TPanel.
And after customizing its been registered to the toolbar of borlands c++ builder.
By COMPILING AND INSTALLING the package.
There is no such type of Panel itself in vc++.
So asking for is that panel available else wats the alternative?
zari
|
|
|
|
|
zareee wrote: And after customizing its been registered to the toolbar of borlands c++ builder.
By COMPILING AND INSTALLING the package.
Sounds almost like your looking for imformation on COM Introduction to COM - What It Is and How to Use It.[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Hi all,
How do i intialize a pointer variable ?
|
|
|
|
|
What exactly do you mean? You can initialize a pointer using the keyword new , or you can set it to point at some already allocated memory.
|
|
|
|
|
void* pVoid = NULL;
char* pChar = NULL;
int* pInt = NULL;
...
|
|
|
|