Thanks for your response. I ended up drastically simplifying my regex by controlling the greedyness. In the end, I ended up with: Thanks again. It's been awhile since I've dealt with regexes, and I'm definitely out of practice.
telstar
Posts
-
Help me with my regex -
Help me with my regexI'm trying to write a regex using Regex++ with C++ to match on URLs. The regex I'm using is It's weird ... it seems to work for: and but not for Any ideas why it wouldn't match on the second one, or anyone have a better pattern-matcher for URLs? Thanks
-
Boost Library InclusionI ended up including the path to the .lib files in the linker section of the properties. I'd forgotten to do that, and the setup instructions were somewhat vague.
-
Boost Library InclusionI tried adding the C:\boost path to the VS.NET library includes path, and it diesn't work. I also tried adding C:\Visual Studio .NET\Vc7\lib (where that library file actually resides) to both the VS.NET library path definition, and the project library definitions path and no luck. One more thing ... I'm not using pre-compiled headers ... if that would make any difference. Thanks for the suggestion. Any others?
-
Boost Library InclusionI'm trying to use the Boost Regex[^] library in my MFC SDI app but am having some problems including the files as they instruct. I've built the library per their instructions[^] I added the C:\boost path to my include directories for my project I added #include <boost/regex.hpp> to the top of the file I intend to use it in ... yet I still get a compile-time error saying the following:
MyAppName fatal error LNK1104: cannot open file 'boost_regex_vc7_mdid.lib'
Any ideas what I'm doing wrong, or how to fix it? Thanks very much, Dave -
how can i make some pictures into Panoramic imageThe best way to handle this is to give the user some intervention. Step-through each pair of images and display then side-by-side. Give the user an interface where they can click a point in picture #1 then click the corresponding overlap point in picture #2. Collect as many data points as you want to manipulate. Then when you merge these two images, overlay those designated points, and weight the pixels surrounding those points so as to "stretch" or "shrink" those regions based on how close they are to the clicked points and how much stretching or shrinking you need to do. You can also adjust the transparency around those regions to blend the two images together. That usually helps with the transition. Good luck. It's not as easy as just slapping 3 or 4 images next to one another.
-
Build 2003 version source code using version 2002I didn't try, but that conversion program doesn't handle version 7.10 files? If it does, you could convert from v7.10 to v6.0, then re-open the v6.0 file in VS2002 and allow it to do the conversion for you. If not ... I can't help you. Just figured it was worth a shot. Good luck.
-
Build 2003 version source code using version 2002You might be able to step it back using this tool, then re-open it in VS2002.
-
Communication with SplittersEDIT: I Solved my own problem I moved my button-logic to the MainFrm.cpp class, and used the GetPane() function to access the correct pane. I guess the best solutions are the ones you come up with yourself. ******************************************************************************************** Original Post Below: I've read a number of posts here about communicating when using splitters, but I'm still having a problem, so I'd appreciate any help. I have an SDI application with a toolbar and three views ... one of which is a CHtmlView derived view. I'm trying to control the web browser control using the toolbar buttons. Here's what I have: ------------------- I have a pointer to the MainFrm object in my MyApp.cpp (defined MyApp.h). In my MainFrm.cpp, I'm using the RUNTIME_CLASS(CClassType) macro to create each of the three splitter panes, and I'm saving pointers to each views. In MyApp.cpp, I have a message handler for the user clicking the "Back" button:
void CMyApp::OnBack(){ CMainFrame* p_localMainFrameRef = (CMainFrame*) p_viewMain; CMyAppHTMLView* p_localWebFrameRef = (CMyAppHTMLView*)(p_localMainFrameRef->p_viewWeb); p_localWebFrameRef->GoHome(); }
I'm getting the following error when I click the "Back" button:Unhandled exception at 0x7c1a8130 (mfc71d.dll) in YourApplication.exe: 0xC0000005: Access violation reading location 0x00003972.
Can anyone lend some advice as to what I'm doing wrong ... or suggest a better approach to allowing me to communicate between frames, and with the toolbar? Thanks very much, telstar -
C# Market Penetration for Freeware/SharewareEric Gunnerson (msft) wrote: On the other hand, it's generally much easier to write a windows program in C# than it was in C++. Yeah, that's why I'm surprised more people haven't flocked to C# as the language of choice for hobby-development. I'd guess that given the number of people with broadband these days, most people probably have the CLR installed, don't they?
-
C# Market Penetration for Freeware/SharewareI'm curious as to what kind of market penetration C# has achieved in the freeware/shareware/hobby-ware application segment. It seems that virtually everything that you see on sites like Download.com are still written in Visual C++ or VB. Am I wrong about that, or has C# been embraced by developers and users of this classification of applications and utilities?