|
Hello,
Anyone can point me working a find string / replace function written in C (ANSI C).
Thanks.
|
|
|
|
|
Find a string in where?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Sorry,
I have an initial string, in which I have to find a substring and replace it with a diffrent one. Like Replace() from CString.
Thanks,
|
|
|
|
|
Check out the MFC source for CString?
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
micutzu wrote: I have an initial string, in which I have to find a substring...
Have you looked at strstr() or strchr() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear friends,
I want ot change look and feel of the basic screen to XP look and feel.
Please help me.
Megha
|
|
|
|
|
Are you looking for this[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can create an XML file with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <br />
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><br />
<assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="XPLooks" /> <br />
<description>Test Application</description> <br />
<dependency><br />
<dependentAssembly><br />
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="x86" /> <br />
</dependentAssembly><br />
</dependency><br />
</assembly>
Save the file as, for example, xptheme.xml
Then go to ResourceView and import this file. In Custom Resource Type, fill in "24" in Resource type. Finally, set the ID to "1".
-Houari
|
|
|
|
|
Hi,
I need to handle del key for a dialog based appliation.what should I do??
I did as shown below .
void C3DColorCardDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
AfxMessageBox(_T("C3DColorCardDlg OnKeyDown"));
if (nChar == VK_DELETE)
{
}
CEFCBaseDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}
The problem is I am not getting the Message box on pressing a char or Del key.
Any Suggestions would be helpful.
Thanks
Satya
-- modified at 6:28 Friday 6th April, 2007
Today is a gift, that's why it is called the present.
|
|
|
|
|
Look here[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Do you have any control on the forum?
|
|
|
|
|
Hi Folks,
why is MSVCP71D.dll being used? Regardless of release mode in the project settings it still link to this debug version DLL. I verified the additional dependencies and found no explicit link to this DLL.
i used dependency walker and found my release version DLL linking to this debug version DLL(MSVCP71D.dll)
Can anyone pls help me out of it ?
Hariharan.T
|
|
|
|
|
are you using some other debug library which uses this one ?
|
|
|
|
|
No.. all other dependencies are third party release versions DLL's and libraries, I verified.
Thanks,
Hariharan
|
|
|
|
|
Hariharan.T wrote: ...my release version DLL linking to this debug version DLL(MSVCP71D.dll)
Directly or indirectly?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It got fixed.. Thanks a lot for your suggestions.
The problem is the preprocessor settings pointed to _DEBUG, now i changed it to _NDEBUG. This solved the problem.
Hariharan.T
|
|
|
|
|
how to get DNS server address usin wmi
|
|
|
|
|
|
IWbemServices *pService = NULL;
IEnumWbemClassObject *pEnum = NULL;
...
HRESULT hr = pService->CreateInstanceEnum(_bstr_t("Win32_NetworkAdapterConfiguration"),
WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_FORWARD_ONLY,
NULL, &pEnum);
if (WBEM_S_NO_ERROR == hr)
{
IWbemClassObject *pClass = NULL;
ULONG ulReturned;
hr = pEnum->Next(WBEM_INFINITE, 1, &pClass, &ulReturned);
if (WBEM_S_NO_ERROR == hr)
{
_variant_t v;
hr = pClass->Get(L"DNSServerSearchOrder", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
{
LONG lBound;
BSTR Value;
SafeArrayGetUBound(V_ARRAY(&v), 1, &lBound);
while (lBound >= 0)
{
SafeArrayGetElement(V_ARRAY(&v), &lBound, &Value);
TRACE("DNSServerSearchOrder[%u] = %S\n", lBound, Value);
lBound--;
}
}
}
}
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
hi all
i am developing my own WAV toMP3 converter.i have seen method for mp3 conversion and they say that particular frequency range of sound data should be eliminated.
i wanted to know how to do that?as there is no field in WAVE header from where i can know the frequencies.
thanks i advance
|
|
|
|
|
The asnwer is that you must manually analyze the raw wave data stored in WAV file, either by fourier analysis or any other means. That is the way good WAV->MP3 converters work.
-------------------------
Don't worry, be happy )
|
|
|
|
|
The MSN messenger log can be enable or disabled by the messenger client itself.
Also. you can find a regisrty key "MessageLoggingEnabled" in the HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\3116053233 -- This in my PC, other PC should have a different number,
But the "MessageLoggingEnabled" is a binary code, total 170 bytes, don't know what it measn.
log will store on a file path in the registry key "MessageLogPath", the next of "MessageLoggingEnabled" .
"MessageLoggingEnabled"=hex:03,04,01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,\
c0,4f,c2,97,eb,01,00,00,00,f1,0c,12,f8,13,75,00,4a,ab,52,9a,a9,12,ba,1a,54,\
00,00,00,00,02,00,00,00,00,00,03,66,00,00,a8,00,00,00,10,00,00,00,09,cd,06,\
79,de,00,e8,8d,c7,ef,37,06,54,ed,43,ec,00,00,00,00,04,80,00,00,a0,00,00,00,\
10,00,00,00,34,a2,51,34,8b,83,b1,28,30,a6,1c,0c,ff,18,86,0b,20,00,00,00,4c,\
ff,52,a5,80,37,75,f0,b1,f6,72,31,9c,55,03,7c,94,f1,b7,04,33,c9,08,b8,7c,0a,\
19,ff,95,a0,1d,a7,14,00,00,00,61,fd,0c,39,ba,0c,6a,fa,aa,ac,8f,c8,66,3b,91,\
2f,cb,12,42,b5
|
|
|
|
|
The MSN messenger log can be enable or disabled by the messenger client itself.
Also. you can ind a regisrty key "MessageLoggingEnabled" in the HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\3116053233 -- This in my PC, other PC should have a different number,
But the "MessageLoggingEnabled" is a binary code, total 170 bytes, don't know what it measn.
log will store on a file path in the registry key "MessageLogPath", the next of "MessageLoggingEnabled" .
"MessageLoggingEnabled"=hex:03,04,01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,\
c0,4f,c2,97,eb,01,00,00,00,f1,0c,12,f8,13,75,00,4a,ab,52,9a,a9,12,ba,1a,54,\
00,00,00,00,02,00,00,00,00,00,03,66,00,00,a8,00,00,00,10,00,00,00,09,cd,06,\
79,de,00,e8,8d,c7,ef,37,06,54,ed,43,ec,00,00,00,00,04,80,00,00,a0,00,00,00,\
10,00,00,00,34,a2,51,34,8b,83,b1,28,30,a6,1c,0c,ff,18,86,0b,20,00,00,00,4c,\
ff,52,a5,80,37,75,f0,b1,f6,72,31,9c,55,03,7c,94,f1,b7,04,33,c9,08,b8,7c,0a,\
19,ff,95,a0,1d,a7,14,00,00,00,61,fd,0c,39,ba,0c,6a,fa,aa,ac,8f,c8,66,3b,91,\
2f,cb,12,42,b5
|
|
|
|
|
Hi!
I am using rich edit box in my application in VC6.
I am getting the content of the rich edit box and taking the bunch of three characters at a time to pass its value to a function.
The function having 3 arguments of the type _TCHAR.
Now when i am passing the value for this 3 arguments say 225,226,227 which is my
bunch of 3 characters taken from the rich editbox the function changes this values to
negative values like -31,-32,-33.
Can anybody tell me what is the problem?
Thanks in advance.
Viral
|
|
|
|
|