|
Dear all:
I need regex's head file and lib file.But I can not find it.
Could you pls give me the address to download?
Thanks!
|
|
|
|
|
A bit more information about which regex library you are looking for would be helpful.
You might try boost::regex, available from www.boost.org
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
|
I have a release build in VC6, with Optimizations on for Maximize Speed
I have a DLL that is loaded dynamically, which calls a member function of a class that is declared (and exported ) from another (also built in release).
The function adds an entry into a std::map
where the map is a member variable of the class and declared map<std::string,std::string>
This crashes within the STL impl of the map.
If I turn off the Maximize speed option it works fine.
Any suggestions as to how to track this down? I have seen something like this before where direct access to the map is allowed, but in this case it is not made publicly available - all access is wrapped with methods of the class.
I have rebuilt things several times from scratch and still have the error. 2-3 weeks ago everything was working fine. Crap
Any suggestions are most welcome at this point
Thanks
<i>¡El diablo está en mis pantalones! ¡Mire, mire!</i>
<i>Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!</i>
<font size="1" color="black">SELECT * FROM <b>User</b> WHERE <b>Clue</b> > 0
<b>0 rows returned</b>
</font>
|
|
|
|
|
You can compile software in release mode, but with debug symbles. This may help you track the
fault down. For example memory is allocated with room at each ends in debug mode, but not in release,
thus hiding bugs...
Look for "Debugging Release Mode" on MSDN as I remember.
Iain.
|
|
|
|
|
Hello, i am fairly new to c++ (worked mainly with java 'til now) and i was wondering if anybody could help me with with a certain linker error i am getting, the error that tells me i have unresolved externals (lnk2001, lnk2019) specifically in "_WinMain" in "_CRTstartup@16" i think this has something to do with my WinMain method be a member function (it is static so there is no hidden "this" parameter) but don't don't know what else to do, is my WinMain declaration:
static int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
thanks to anyone who can help me.
|
|
|
|
|
Please consult the docs for compiler/linker errors! You need to create an entry point to wWinMainCRTStartup . Go to the Project Settings dialog box. Click the Link tab, and click Output in the Category box.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
The compiler is right, as is the previous replier.
The stub code from the compiler is trying to link to a WinMain function. You've provided a static
(well done!) function in a class, which is not actually called WinMain. Its name is CMyClass::WinMain.
Just to complicate things, due to overloading considerations it will actually be called
£$%^&CMyClass£$%^&WinMain£$%^&. The punctuation is my pretend name decoration.
So you need a class plain WinMain function. Feel free to have only one line of code in it which calls
your class's static WinMain function though.
Iain.
|
|
|
|
|
try #pragma comment( linker, "/ENTRY:WinMain" ), but the function mustn have any parameters!!
get the hinstance by GetModuleHandle, and the cmdline by GetCommandLine
Don't try it, just do it!
|
|
|
|
|
RegSetValueEx(SubKey3,"ValueName",0,REG_DWORD,?,?);
I know it's supposed to look kinda like this, but I can't figure out how to properly set those last two variables. I don't have any trouble with String values, but for some reason, I just can't seem to make DWORDs work for me.
halblonious
|
|
|
|
|
Straight from MSDN:
HKEY hk;
DWORD dwData = EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE | EVENTLOG_INFORMATION_TYPE;
RegSetValueEx(hk,
"TypesSupported",
0,
REG_DWORD,
(LPBYTE) &dwData,
sizeof(DWORD));
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Sweet! It works! It seems so simple now that you've told me. Hehe...I'm a dummy. Thanks a ton!
halblonious
|
|
|
|
|
When I start the VS.Net 2003, it shows the projects name and the
last modified date. However, the last modified date would not update
as I modified it. For example, I opened a project called "BlackJack"
on 10/1/03, and I have been working on it ever since. However, the
modified date still shows 10/1/03.
This problem only occurs in VS.Net version 2003. When I was using
VS.Net 2002, it was okay, and no this problem.
Anyony knows how to fix that?
|
|
|
|
|
Why wouldn'y anyone just answer me? I just want to know if that happened
to you too.
Thanks.
|
|
|
|
|
Hi,
I have 4 toolbars on top of my application and if I right-click on the menu
, i can enable/disable the toolbar. The thing is I have done for 3 of 4 toolbars in my application, but not the last one.
MainFrm.cpp messagemap
ON_COMMAND_EX(IDR_MYTOOLBAR, OnToggleBar)
ON_UPDATE_COMMAND_UI(IDR_MYTOOLBAR, OnUpdateBarMenu)
two function for this particular toolbar
in side of OnToggleBar my code is like this.
CControlBar * pToolBars = GetControlBar( nID );
if ( pToolBars != NULL )
{
ShowControlBar( pToolBars ,!IsBarVisible( pToolBars ), FALSE );
return TRUE;
}
the problem is GetControlBar returns ??? for IDR_MYTOOLBAR at the invocation.
I have checked with the resource ID conflict with others. no problem.
What could be the reason ? Anyone can help me?
Thanks in advanced.
Shin
|
|
|
|
|
i have a bitmap image loaded into an HBITMAP
i need to copy a part of it to a new HBITMAP
or crop the current HBITMAP...
how do i setup the DC's and bitblt it to the new HBITMAP
i'm not drawing anything on screen this is done on a button click....
thanks,
-Slim
|
|
|
|
|
Create a pair of temporary DCs ( CreateCompatibleDC (NULL) ).
Create your destination bitmap. ( CreateCompatibleBitmap / CreateBitmap ).
Select the two bitmaps into the two DC (remembering to keep the HBITMAPS returned from SelectObject).
BitBlt from A->B. Or StretchBlt.
Select the "old" bitmaps back into the temporary DCs.
Destroy the DCs.
Enjoy your new cropped bitmap.
Iain.
|
|
|
|
|
Hi have a quick question(hopefully).
I've got a multithreaded ATL component for dealing with RAS.
I've been told I should put CriticalSections around certain areas of the system.
My container application creates 8 instances of the Component and each instance creates 2 child threads.
Do I need some form of parent Container to put in a CriticalSection, or do I put the criticalsection in each instances constructor/destructor.
|
|
|
|
|
It is less simple than that. You need to put Enter/LeaveCritSect's around access to shared resources.
If each of your instances are independent, then you don't need any critical sections. You may need
CritSects in the sub-threads if they can collide when accesses common resources.
So the general answer is "it depends".
The fewer CriticalSections you have the better as it means your components will run that little bit
more smoothly, especially on multi-threaded systems. But it is more important to be safe.
I hope this sort-of-helps.
Iain.
|
|
|
|
|
Hello all,
I created a Month calendar control into my form, and I want to use it as a date picker, so when the user selects a date, I will fill other CEdit controls with the date selected.
But I realize that within MCN_SELECT, the value associated with my Calendar Control, gets the wrong date.
void CPlanmView::OnSelectMonthcalendar1(NMHDR* pNMHDR, LRESULT* pResult)
{
// Users Selects a Date, so MCN_SELECT triggers this.
// User selected October 31, 2003 but returns
// Feb,10,2004
*pResult = 0;
UpdateData();
m_DiaPlm.Format("%d",m_CalendarVal.GetDay());
m_MesPlm.Format("%d",m_CalendarVal.GetMonth());
m_AnoPlm.Format("%d",m_CalendarVal.GetYear());
UpdateData(FALSE);
}
I have also seen the sample provided in the msdn, and it has the same problem, for this control.
Any Ideas on how to workaround this issue.
Best,
-Alfredo
|
|
|
|
|
Alfredo,
I use that control and never had that problem...
How you are initialing it. please put some of code
best regards
Carlos Antollini.
Pi Five[^]Creator
|
|
|
|
|
Carlos,
Thanks for your reply, well I just created it with no code. I mean I put it on my form dragging the control.
But I just saw that msdn sample and here is the code, still doesn't work in that way.
BOOL CMonthCalPage::OnInitDialog()
{
CPropertyPage::OnInitDialog();
CWnd *pFrame = GetDlgItem(IDC_MCFRAME);
CRect rcWnd;
pFrame->GetClientRect(rcWnd);
pFrame->DestroyWindow(); //pFrame was just a placeholder anyway.
m_MonthCal.Create(WS_CHILD|WS_VISIBLE,CPoint(rcWnd.left,rcWnd.top),this,IDC_MONTHCAL);
UpdateData(FALSE);
return TRUE;
}
Thanks for helping
Alfredo
Best,
Alfredo
|
|
|
|
|
I've got an SSL app (SSL=Yes,HTTPS=No), it communicates to the internet on port 443.
Some customers require all traffic on 80/443 to be routed into a proxy (HTTP/HTTPS).
Does anyone have any information on how to communicate with a (https) proxy server, on the SSL channel (port 443)?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Hi ALL,
I have overriden the OnSetFocus() for CComboBoxEx control by trapping the WM_SETFOCUS event. This event gets fired only when i tab to that control from another control. This function does not get invoked when i click on the ComboBoxEx control using the mouse. I have some edit controls also on the same dialog and the setfocus event gets fired when i click those controls.
Any ideas why the CComboBox is not working?
thanks,
Suresh
|
|
|
|
|
It works for me,
In your combo properties, what type you have specified.
DropDown, Simple, DropList.
Have you tried that?
Best,
-Alfredo
|
|
|
|