|
i dont know but how about CString::MakeLower() or ctype::tolower from the stl
|
|
|
|
|
Has to be a regex
How do I print my voice mail?
|
|
|
|
|
I don't know regex++ library, but in Perl, you'd do it with a translation regular expression, like this:-
$var = "I was HeRe, BuT NOw i'm GONE!!!";
$var =~ tr/[A-Z]/[a-z]/;
=~ is the reg.exp. operator
tr means translation
[...] group character classes
A-Z is the character class for UPPER CASE
a-z is the character class for lower case.
Bob is therefore your mother's brother.
#include <beer.h>
|
|
|
|
|
|
Hi,
Wt r HotKeys and wt r Shortkeys ?
as i guess that start with Alt r short keys
and that start with Ctrl and Shift r Hotkeys
Is it ???
thanx
Regards.
|
|
|
|
|
Short cut keys are the "key" or "key combinations" that can be used instead of actual action e.g."Alt+F+P" prints a document in word; the acual action is clicking file menu and then selecting print option. (they are short cut to an action)
Hotkeys are related to what we see at screen (not in menus) a character within a text with an underline, pressing that character activates thet particular action. They are single character.
kriaz.
|
|
|
|
|
kriaz wrote:
."Alt+F+P" prints a document in word
i'm a quite "off topic" but the '+' caracter in such expressions means that the keys are pressed at the same time ; in the case of the print action in Word, the key combinations should be : "Alt, F, P ".
TOXCCT >>> GEII power
|
|
|
|
|
2 threads
first threads,DllRegisterServer the 1.ocx(MFC),then FreeLibrary it; and 2.ocx,3.ocx.....
secend threads,DllRegisterServer the A.ocx(MFC),then FreeLibrary it; and B.ocx,C.ocx.....
A thread deadlock in GetModuleFileName when another thread is in FreeLibrary.The GetModuleFileName is called by
DllRegisterServer.-_-!
why???? MFC's Bug?GetModuleFileName is a API!!!!!!
|
|
|
|
|
The DLLMain is only supposed to be called for a single thread within a process at a time.
If you are loading and freeing libraries from various threads, none of those libraries should have ANY dependencies upon each other, or you will see strange results.
Also, no threads that are 'created' within the DllMain context will actualy start running until the DllMain that created the thread returns.
This could be part of your problems.
|
|
|
|
|
1、The libraries have not any dependencies upon each other.
2、Threads aren‘t created in the DllMain.
The thread really is deadlock in "GetModuleFileName" and FreeLibrary.
The GetModuleFileName is called in DllRegisterServer(MFC).
If DllRegisterServer isn't called in thread, the thread can't deadlock.You can test it.
|
|
|
|
|
HI,
I have posted my query that how can i use gif images as a skin on dialogs.
Bcoz there r many examples on CP abut BMP image as skin
some one said me same as BMP files but decompress the gif file.
i want to know how can i decompress that file ,, n how to use
guid me in proper steps .. Plz
any sample code there.
thanx
Regards.
|
|
|
|
|
I'm trying to programatically create an email using the current mail client, with an attachment. I don't want to send the mail from my program, because I'd like the user to customize his mail after my program starts the mail and adds the attachment for him.
Isn't there a simple way to simply duplicate the 'Send To Mail Recipient' functionality in Explorer?
Maybe there is a way I can simulate someone performing this action from my program, to get the desired results?
I've seen some samples on here, but they all work independent of the mail client, which is the opposite of what I need. Thanks!
|
|
|
|
|
try to use WriteProcessmemory() func and make the explorer do all the dirty work :DD
gabby
|
|
|
|
|
hello all,
i have the following code to print the excel file
<br />
VARIANT tv;<br />
VARIANT tv1;<br />
VARIANT tv2;<br />
VARIANT tv3;<br />
VARIANT tv4;<br />
VARIANT tv5;<br />
VARIANT tv6;<br />
VARIANT tv7;<br />
<br />
tv3.vt = VT_BOOL;<br />
tv3.iVal = false;
<br />
tv4.vt = VT_BSTR;<br />
tv4.bstrVal = printerName.AllocSysString();
<br />
tv5.vt = VT_BOOL; <br />
tv5.iVal = false;
<br />
tv6.vt = VT_BOOL;<br />
tv6.iVal = true;
<br />
tv7.vt = VT_BSTR;
tv7.bstrVal = CString("").AllocSysString();<br />
<br />
tv.vt = VT_I4;<br />
tv.lVal = 1;
<br />
tv2.vt = VT_I2;<br />
tv2.iVal = 1; <br />
<br />
sheets.PrintOut(covOptional, covOptional, tv2, tv3, tv4, tv5, tv6, tv7 );<br />
the excel file contains charts and it is giving me error. if there is no charts i don't get error at all and it is printing.
why is it chart giving me error?
|
|
|
|
|
tv3.vt = VT_BOOL;
tv3.iVal = false; VT_BOOL is not the same as a C++ bool nor a C++ BOOL . Use this:
tv3.vt = VT_BOOL;
tv3.boolVal = VARIANT_FALSE; The legal values for a boolean VARIANT are VARIANT_TRUE and VARIANT_FALSE .
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
"die"
ahhhh!
"diet"
AAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!
|
|
|
|
|
No.. it doesn't help.
As I told you.. printout method doesn't give me any problem when the excel file doesn't contain chart.
the file get print out automatically. but the file with charts.. i get error.
is it because of covOptional?
<br />
COleVariant covTrue((short)TRUE),covFalse((short)FALSE),covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);<br />
<br />
sheets.PrintOut(covOptional, covOptional, tv2, tv3, tv4, tv5, tv6, tv7 );
No it can't be either.. because I had tried setting up from = 1 to To = lastPage. and got the same result which is the file without chart sheet in it print out automatically. but not the file with the chart sheet in.
<br />
tv.vt = VT_I4;<br />
tv.lVal = 1;
<br />
tv1.vt = VT_I4;<br />
tv1.lVal = lastPage;
<br />
tv2.vt = VT_I2;<br />
tv2.iVal = 1;
<br />
sheets.PrintOut(tv, tv1, tv2, tv3, tv4, tv5, tv6, tv7 );<br />
|
|
|
|
|
I found out why there is an error
It is nothing to do with chart..
Printout method get error because there are some hidden sheet
to solve the problem, I only have to set the sheet to visible.
sheet.SetVisible(1);
|
|
|
|
|
|
Hi Mike.. I did changed to VARIANT_BOOL field.
Thank you.
|
|
|
|
|
I want to prevent computer from being shut,my codes as below:
BOOL CMyTestDlg::OnQueryEndSession()
{
return FALSE;
}
BOOL CMyTestDlg::OnInitDialog()
{
if(SetProcessShutdownParameters(0x4ff,SHUTDOWN_NORETRY)==0)
{
MessageBox("SetProcessShutdownParameters Failure");
return ;
}
}
void CMyTestDlg::OnButtonOk()
{
ShutDownCodes();
}
MSDN say program can prevent computer from being shut by enhance the program level by SetProcessShutdownParameters,but After I clicked the OkButton the Computer is shut down,what should I do?
|
|
|
|
|
msdn says this about SetProcessShutdownParameters()...
"This function sets a shutdown order for a process relative to the other processes in the system."
Its does not say that it allows a process to terminate the shut down process.
I think this fucntion AbortSystemShutdown() is what you are looking for but Im not sure
|
|
|
|
|
WM_QUERYENDSESSION
The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls the ExitWindows function. If any application returns zero, the session is not ended. ////The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero.
/////
After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message.
A window receives this message through its WindowProc function.
WM_QUERYENDSESSION is sent to program from the high Shutdown priority to low
|
|
|
|
|
Hi everyone, i am getting angry while trying to insert richedit control, to my small dialogbox application.
Well, everything works fine to the moment i put the richedit control on my dialogbox, then
application starts and exits in some of 1ms.
My program is basically a dialogbox application, i wanted to implement a nicee richedit control but when i only put her inside the dialogbox, the app does not work!
Any ideas?
ps1. hwnd= DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAIN), 0, MainDlgProc);
that's how i init my main program dialog box
ps2. all other controls beside richedit - work fine, i'm having a big problem.
|
|
|
|
|
If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time.
e.g.
BOOL CMyApp::InitInstance()
{
AfxEnableControlContainer();
AfxInitRichEdit();
………………………….
}
Naveed Shoaib
|
|
|
|
|
Hello,
what 'bout not MFC app ? I'm writing in pure w32 API, is there any
chancee to run that?
|
|
|
|