|
May be you have see the Process Explorer[^] from sysinternals. In that tool take the properties of an exe, there will be a tab called string. All items list in that are strings used in your application.
|
|
|
|
|
Thanks Naveen.
It was useful for my code investigation.
From this tool I was able to see all the strings from my application EXE.
Regards,
Neeraj
|
|
|
|
|
I included windows media player control successfully, but now I am getting problem with that. I am not able to play movie inside that. It does not resond to any of its functions like SetFileName, SetEnabled,Play. Its buttons doesnot activate. All of its buttons remain inactive.
My friend has used it very well in VC++
|| Lust Causes Sorrow ||
|
|
|
|
|
muktoham wrote: It does not resond to any of its functions like SetFileName, SetEnabled,Play.
Where are you getting these "functions" from?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
muktoham wrote: SetFileName
I think there is another function called SetURL(). call that function instead of the SetFileName().
|
|
|
|
|
I got my answer through another forum, My approach and functions where right,my control seems to be not installed correctly because same code worked fine on another machine.
|| Lust Causes Sorrow ||
|
|
|
|
|
Can i use and redistrubute GDI+ v1.1 with my application???
From Where can i download GDI+ V1.1?? Microsoft site still has old version for GDI+.
-- modified at 8:14 Tuesday 3rd July, 2007
|
|
|
|
|
It's available on Vista+.
I thought I heard something about it being with .NET 3.x as well but I could have dreamed it
No, you can't redistribute it.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
I am porting a COM object from VC6.0 to Visual Studo 2005 and I get the following error:
error C2011: 'spcADO::CursorTypeEnum' : 'enum' type redefinition
The reason for this is that the file msado15.tlh gets generated in the DebugU directory AND the project directory.
Any idea how I can solve this?
Thanks,
Jerome
|
|
|
|
|
Strange, #import doesn't generally do this. Have you tried quitting VS, removing the tlh/tli files, and doing a clean and build?
Steve S
Developer for hire
|
|
|
|
|
Yes it was weird - I tried that indeed but it did not work.
I think it was caused by the fact that two cpp files had the same name. For some unknown reason, the obj files were generated incorrectly. I removed them from the project and re-added and it now works. Touch wood!
Thanks for your help anyway!
|
|
|
|
|
My requirement is
If i select an item in a tree Control that Selected item's color of text should be changed.(or i want to recognize whether it is selected or not--some way to identify)So can you please tell me how to do it.
bhw
|
|
|
|
|
|
Handle the NM_CUTOME draw message and put the following code inside it.
void TreeCtrlEx::OnCustomDraw( NMHDR* pNMHDR_i, LRESULT* pResult_o )
{
NMTVCUSTOMDRAW* pLVCD = reinterpret_cast<nmtvcustomdraw *="">( pNMHDR_i );
NMCUSTOMDRAW &nMcd = pLVCD->nmcd;
*pResult_o = CDRF_DODEFAULT;
switch( nMcd.dwDrawStage )
{
case CDDS_PREPAINT:
// Item prepaint notification.
*pResult_o = CDRF_NOTIFYITEMDRAW;
break;
case CDDS_ITEMPREPAINT:
{
// Set the color of the text according to its state.
HTREEITEM nRow = reinterpret_cast< HTREEITEM >( nMcd.dwItemSpec );
if( CDIS_SELECTED == ( nMcd.uItemState & CDIS_SELECTED ))
{
pLVCD->clrText = clrSelText;// Selected text color
pLVCD->clrTextBk = clrSelBk;// Selceted backgroung
}
else
{
pLVCD->clrText = clrNormal;// text color in normal state
pLVCD->clrTextBk = clrBk// bakck ground color in normal state
}
// Allow it to do the default painting.
*pResult_o = CDRF_DODEFAULT;
break;
}
default:
*pResult_o = CDRF_DODEFAULT;
break;
}
}
|
|
|
|
|
Hi,
I have assigned a huge string of about 32800 chars to CString object, but i am getting this "error C2026: string too big, trailing characters truncated", does any one know how can i resolve it, or is there any work around?
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language, so please don't mind if i do some grammatical or spelling mistakes in my messages."
|
|
|
|
|
Can you tell me why you want to have this string? and what is it?
|
|
|
|
|
There is a compiler limit on string literals of 2048 characters, so this has nothing to do with CString .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How do you create this string in the First Place. You hardly typed it by hand!
Anyways:
Try CString MyString;
MyString.GetBuffer(32000);
The problem occurs with items such as strings which are zero terminated. If the compiler does not find a 0 after a reasonable number of chars, ( and 2048 is a reasonable limit in most cases)the compiler decides that there must be a syntax error (forgotten a terminating ") etc.
LateNightsInNewry
|
|
|
|
|
I have done an application in which i need to interact with 2 other systems using RS 232 cables.
Individually i am able to communicate with either systems but facing problems when executed and trying to interact with 2 systems simultaneously. The main reason for this is the I am using a Pentium 3 processor which is a must for me.Can anyone help me out to overcome this problem in pentium 3 processor.
NAVEEN
|
|
|
|
|
naveen27gupta wrote: The main reason for this is the I am using a Pentium 3 processor
Why the above is the main reason?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Your not trying to just connect the PCs together like this are you?
PC 1 <---\
PC 2 <---|
PC 3 <---/
Just connect all 3 ports together... RxD to RxD to RxD etc.
|
|
|
|
|
A simple question.
I define an array.How to calculate its length?
int[] arInt = { 1, 2, 3 ,4, 5 };
Thanks in advance.
|
|
|
|
|
Peter, Chan wrote: int[] arInt = { 1, 2, 3 ,4, 5 };
The correct syntax should be:
int arInt[] = {....
int nSize = sizeof(arInt) / sizeof(int);
this is this.
|
|
|
|
|
Then if it is a array of string.Should I write like this.
char * arLang[] = {"english", "chinese"};
int nSize = sizeof(arLang) / sizeof(char);
|
|
|
|
|
Nope
Then you get the number of char's in the array, not the number of strings
You can't count it this way, because each string has a different lenght.
You can determine the length of arLang, then loop on it and count the occurence of \0 (End of a String)
So you get the number of strings in the array, if i tell no mistakes
Good luck
|
|
|
|