|
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;
...
|
|
|
|
|
We are a bit confused in your post
char* pBuff = 0; // Initialize the pointer with 0
pBuff = new char[10]; // Allocate memory for a character array of size 10
if( 0 == pBuff )
{
// Failed to allocate memory
}
else
{
// Allocation successfull
}
Rinu Raj
|
|
|
|
|
Can you be more specific.
|
|
|
|
|
Does anyone know if VS 2005 Remote Debugging can work across the internet?
I have a client who is many hundreds of miles away, and it would be wonderful if I could run a debugger on his copy of the program that I wrote for him.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Richie308 wrote: Does anyone know if VS 2005 Remote Debugging can work across the internet?
Scratch’s chin, hmm have you tried over VPN? I wouldn’t see how it would be possible other wise, as that means completely exposing a box to the wild internet and everyone else.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
|
You could try the WM_ERASEBKGND handler.
Steve
|
|
|
|
|