|
My guess would be that RegExp is throwing an exception because the regular expression passed to it in the constructor is invalid (i'm not a regexp guru though, so am not able to verify that your regexp is correct). I suggest you check your expression, and also check the docs for RegExp - it may throw an exception that tells you exactly what is wrong. At the moment you are ignoring any such exceptions, and hence the program terminates.
Dave
|
|
|
|
|
DOCs say the 2nd parameter of the constructor of RegEx is a RegexOptions (A bitwise OR combination of RegexOption enumeration values) and not a BOOL.
|
|
|
|
|
I am using the CRegex class as am not good in using stl,i know now the pattern to be used for searching is not correct but dont know what the problem is ,basically what i am trying to do is look for lmp() in each line and remove new lines after all the lines that dont have a line wih lmp() beofre them,that way all the lines will start with lmp()
|
|
|
|
|
I am looking in the dev environment and cant find (vc6) the setting which lets it get past handled exceptions....
Appreciate your help,
ns
|
|
|
|
|
|
Ah! Thanks!
Appreciate your help,
ns
|
|
|
|
|
I've been doing COM/DCOM for several years now but not a lot with windowing
or controls. I want to create an executable that behaves as follows:
1. Singleton process that is a window (dialog would be fine) that can be
launched from another app (toolbar). Currently we use this paradigm with
VB components but want to do this one in C++.
2. This main window will contain a dynamic number of buttons that when
pressed will display a modeless dialog that contains some static data (i.e.
no user interaction other than close).
3. The buttons in the main window contain both text and a bitmap. These
buttons are updateable (i.e the text and bitmaps change) when certain
underlying statuses change.
Right now I have this prototyped in MFC with a main app window. The
buttons are subclassed CButtons and I create as many as I need when the app
starts. The buttons are ID'd so when the user presses it I know which type
of dialog to open. The real problem is how to wrapper all this in COM so
that this app can be created/started once via COM and then handle the
windowing/controls. I guess I'm more comfortable with MFC and not used to
CDialogImpl and the like. Anyone got any pointers or examples to start
from? Thanks!
|
|
|
|
|
(1)How can i use a dll in VC++ which is designed or written in VB ??
please help me as soon as possible.
it is very urgent for my project.
Thank- You
sukhdeep
|
|
|
|
|
kulsukh wrote:
(1)How can i use a dll in VC++ which is designed or written in VB ??
Search the documentation for IDispatch.
|
|
|
|
|
you might be able to import the DLLs typelib. this will create a C++ wrapper class for any objects exported by the VB DLL, using _com_ptr .
look into the "#import" directive.
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
Does anyone know of a tutorial that will step me through how to use this class. I've found several that show how to use a class they created. I want to know how to use this class.
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
www.codeguru.com has a lot of mini-articles that show you how to do specific things with a CTreeCtrl. very handy for beginners (or old-timers who just forgot how to use that beast).
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
is it possible to read a hidden or minimized window into a bitmap?
Thanks to you all;)
|
|
|
|
|
|
Hello,
can anybody help me please?
Unfortunately I do have a problem with my FormView Frame Window. The Frame window shows always "unknown" as title name and I want to change it to a specific name, but without opening any document or creating any document.
Many Thanks
|
|
|
|
|
Look at overiding: CChildFrame::OnUpdateFrameTitle() and CMainFrame::OnUpdateFrameTitle()
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Another solution is UpdateFrameTitleForDocument().
Kuphryn
|
|
|
|
|
hy, i would like to make a toolbar in my mfc-app, that looks like the one from office 2003!
(pix: http://www.zdnet.com/supercenter/stories/review/0,12070,561909,00.html)
any idea how to do that??
thanx,cheers
|
|
|
|
|
Can someone explain to me exactly what an owner drawn listbox is? Is it like a button where you have full control of what it looks like and you use a bitmap, or is it just a box like the regular listbox where the contents are drawn by you? I am looking to create something where the "listbox" can have any shape and same goes for the scroll bar (Win32) because I am skinning my app. Can someone point me in the right direction concerning this issue?
|
|
|
|
|
An owner drawn list box allows you to customize the drawing of each entry. If you want to radically change the shape and appearance, you might want to derive from CWnd instead.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
In an owner drawn list box you can draw the items yourself. The CListBox class has several overridable methods such as DrawItem() - to draw each item in the list box, MeasureItem() - to get the height of each item if they are variable height, and CompareItem() - to sort the items in the list box.
You have pretty much full control over the client area of the list box, but AFAIK not the scroll bar.
Note that if you are using the Win32 API directly (not MFC), then DrawItem, MeasureItem, and CompareItem are actually sent as messages to the parent window.
Dave
|
|
|
|
|
I want to show an html-help file (*.chm) from my application when the user
press the F1 button but without using the HtmlHelp API..
This is the code I’m currently using:
void CMainFrame::WinHelp(DWORD dwData, UINT nCmd)
{
LPCSTR lpHelp = AfxGetApp()->m_pszHelpFilePath;
ShellExecute(NULL,
"open",
lpHelp,
NULL,
NULL,
SW_SHOWNORMAL);
}
This code launches my *.chm file, but it does it TWICE so I get two
instances of the same *.chm file.
Any idea?
TIA,
Carlos
|
|
|
|
|
Are you sure your function isn't being called twice? I would just use the HtmlHelp API!
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Yep, that was the problem, the function was called twice. I know that HtmlHelp API would be a better option but in my particular case I wanted to use ShellExecute.
Thanks
Carlos
|
|
|
|
|
Juan Carlos Cobas wrote:
Yep, that was the problem, the function was called twice.
You really should have thought of that yourself.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|