3
Answers

Regex for filename

Photo of sampath meka

sampath meka

10y
663
1
Hello All,
 
                   My question is i have following file names where it process based on the extension type using regular expression only.
 
 
  myname.c 
 myname.csi
 myname.ctr
 myname.hsi
 myname.h 
 myname.htr 
 
                          For the above strings if we apply regular expression the output should be
 
myname.c 
myname.h 
 
I want only file name with extension .c and .h only
 
 
Thanks & Regards,
Sampath

Answers (3)

0
Photo of aryego
NA 4 0 20y
The exception occurs in drawinternal, this is not a method of directdraw, but an internal directdraw method. I just don't see a way to show the graphics on the MDI child. Catching the exception just does not fix the problem: We can not adress the drawinternal function directly. By the way: when use a normal form the application runs fine.. the problem really lies in the combination MDI with directdraw..
0
Photo of Mykonine
NA 520 0 20y
You will have to handle the exception. There's no workaround for lost surfaces or loss of the drawing device that occurs when another window activates.