|
okay.. i don't know if this is the right forum..
can anybody explain me the regular expression search & replace utility?
(or is there any documentation on this topic.. i couldn't find any)..
e.g. i want to change all the occurences of char XXX[] to const char* XXX
it would be something like
char(.*)?\[\] (at least as much as i know)
now i would have to replace this with const char* $1
how to do this with the find / replace dialog.
would be very handy if it worked..
bernhard
"I'm from the South Bronx, and I don't care what you say: those cows look dangerous." U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
|
|
|
|
|
Find: char \(.*\)\[\]
Replace: const char *\1
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi!
I tryed to use http://www.codeproject.com/treectrl/coptiontree.asp
During the compilation i got following error
MainFrm.obj : error LNK2001: unresolved external symbol Symbol "public: virtual __thiscall COptionTree::~COptionTree(void)" (??1COptionTree@@UAE@XZ)
MainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall COptionTree::COptionTree(void)" (??0COptionTree@@QAE@XZ)
MainFrm.obj : error LNK2001: unresolved external symbol "public: int __thiscall COptionTree::Create(unsigned long,struct tagRECT,class CWnd *,unsigned long,unsigned int)" (?Create@COptionTree@@QAEHKUtagRECT@@PAVCWnd@@KI@Z)
I've added the lib from COptionTree in my Project and put the DLL in my Debug folder.
What have i done wrong?
Thx mike
|
|
|
|
|
Do you include the header file for the lib?
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Hi!
Yes, I have added #include "OptionTree.h" to my *.h were the Instance of COptionTree is declared.
mike
|
|
|
|
|
Hi!
Where can i get a sample build with a DLL? Can somebody send it to me?
pleeaazzze
mvodep@gmx.net
thx mike
|
|
|
|
|
hi..
Please tell me How disable or enable a NIC using MFC class.
like on widows system to double-click My Computer, Control Panel, and System.
then Click the Hardware tab and Device Manager.
Under Network Adapters, desable or enable the Network card.
can u help me?!
thank a lot.
/neil
SADAS
|
|
|
|
|
Can anyone tell me where can I find a dis-assembler for pc? I have heard of a popular software called SoftIce. If any one can tell me about SoftIce then it would be great ! thanks in advance
___________________________
When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
|
|
|
|
|
|
i want to debug .COM file also..
can we use OllyDbg for that too?
___________________________
When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
|
|
|
|
|
Hi, I have a Small service which installs and runs fine on most machine, yet on some machines, when I try to install the service, using the CreateService() API function, the function hangs and I need to kill to process manually.
Any ideas?
|
|
|
|
|
Who knows why I can't type through Keyboard in dialog box after calling SetTimer function of CWnd object? I need to kill the timer everytime when the dialog box pop up for allow users to enter the data... it is very inconvenience...Please help...
Thank you.
Terry
|
|
|
|
|
Perhaps you could post the code what you are doing in the timer function?
Make sure you don't call any UpdateData(FALSE) without UpdateData(TRUE) in your timer function. Also make sure you don't disable, enable, or focus another control in the timer function.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
hi,
i need dial up connection statistics (speed, send & received bytes etc.). i try to use RasGetConnectionStatistics function. it shows an error (RasGetConnectionStatistics' : undeclared identifier) but i include <ras.h>.
If do you know the solution, please help me.
|
|
|
|
|
Include file ras.h and link to rasapi32.lib.
You know that this function only works on Windows XP, Windows 2000 Professional, Windows Server 2003 and Windows 2000 Server, or?...
On Win95, Win98, WinME and WinNT this function won't work.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
yes, i Include ras.h and link to rasapi32.lib.
also i know that it doesn't work in win95/98/me.
do you have any solution?
Please tall me.
|
|
|
|
|
Hey Friends
I wish to Create a control just like Shape Control available in Visual Basic.It will be possible to Change its Shape and relocate to some other location.It should be visible properly.
I Tried Inheriting a Class From CWnd and Providing Body to OnPaint But the areas which i do not paint do not get updated and show the Background which looks Bad.
Pl Suggest.Will Regions Solve the Problem ?
Sample Code
void CShapeCtrl::OnPaint()
{
CPaintDC dc(this); // device context for painting
CRect rRect;
CBrush br;
GetClientRect(&rRect);
br.CreateSolidBrush(RGB(255,0,0));
dc.Rectangle(&rRect);
if(!m_bShapeSet)
{
HRGN hRgn;
rRect.DeflateRect(5,5);
hRgn = ::CreateEllipticRgnIndirect(&rRect);
SetWindowRgn(hRgn,TRUE);
m_bShapeSet = TRUE;
}
}
|
|
|
|
|
You need to call SetWindowRgn() in OnCreate() , and whenever the shape changes, not each call to OnPaint() . If it still updates incorrectly (although it should work), then try setting the WS_EX_TRANSPARENT extended style for the control.
Hope this helps,
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
This is an SDI application. I wish to perform some initialization in OnInitialUpdate(). But to my horror, I discovered that OnInitialUpdate() is not getting called at all! I know I didnt add some piece of code required to do this, but am not sure what it is and how to do it. Could someone pls guide me?
|
|
|
|
|
I have a ListView control and I want it to do something when the user presses enter. So, I have put in a case for LVN_KEYDOWN, which seems to work fine for most keys except enter. I never recieve a VK_RETURN in the wVKey member, no matter how much I press the button
So, is there some style I need to set or something? What do I need to do to be notified when the user presses enter in the ListView control?
Thanks,
Melekor
|
|
|
|
|
This question is asked so often, I'm disgusted at how many people don't search the forum before asking questions. It must have been asked 5 or 6 times in the last week
Override PreTranslateMessage() in your dialog and check for WM_KEYDOWN where wParam == VK_ENTER.
If you're not using MFC, it shouldn't be a problem - just check in your message loop.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote:
This question is asked so often, I'm disgusted at how many people don't search the forum before asking questions
Same for me. If you only knew how many times I've answered the question "How do I change the caption of my window" or "How do I convert my CString into a ..." I think the link to Mike's C++ FAQ should be as big as the advertisement banner, and even that would not help .
~RaGE();
|
|
|
|
|
Rage wrote:
If you only knew how many times I've answered the question "How do I change the caption of my window" or "How do I convert my CString into a ..."
I can guess. I visit the VC++ forum a few times a day, so I see all the questions.
Rage wrote:
I think the link to Mike's C++ FAQ should be as big as the advertisement banner, and even that would not help
Unfortunately it probably wouldn't. I lot of people who ask questions don't appear to be interested in helping themselves. They just want other people to solve all their problems.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Rage wrote:
I think the link to Mike's C++ FAQ should be as big as the advertisement banner, and even that would not help .
My browser blocks banners, ads and popups
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greg S. wrote:
My browser blocks banners, ads and popups
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|