|
Its very difficult to proces the text or object of word file programmatically. I will suggest, if possible, convert it into another format and then process it.
Anurag Gandhi.
|
|
|
|
|
thanks but I have to process it in Microsoft Word because I use rigth to left format and if I change the format to Plain text, the order of words will change. Does anybody know what should I do?
Thanks alot
|
|
|
|
|
try automation , see, for instance, http://support.microsoft.com/kb/196776/en-us[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Can any body tell me the root causes for above function?
In what all situations it will fail?
S Chandra Sekhar Reddy
|
|
|
|
|
whats the return value? Also what error code did you get when GetLastError() called after this?
nave
|
|
|
|
|
Hi,
I have a gridview which is bound to a SQL datasource. Various informaiton is pulled from this datasource including a URL that points to an images somewhere on the Interent
The problem is that the asp:ImageField times-out before it is able to pull the image from the external site. Some of the sites I get images from are faster then others; sometimes some images load and others do not.
My Question:
Is there a way to increase the timeout time for the Gridview/page/ImageField so that all the images have time to download correctly? Perhaps some sort of way of caching the images?
I noticed that when I go to the URL's manually in IE before I run my webapp, the images always come up ok becuase they are already cached in IE. I've tried searching for a way to cache before the gridview loads but I was unsuccessful.
Some help please.
Thanks in advance.
ShAm
|
|
|
|
|
|
Hello,
I have the following code in my Initinstance() of the Application class.
CMDIFrameWnd* pFrame = new CMainFrame;
m_pMainWnd = pFrame;
// create main MDI frame window
if (!pFrame->LoadFrame(IDR_MAINFRAME))
//return FALSE;
Now if I want to have a different menu other than IDR_MAINFRAME I have given the following
Menu M;
M.CreateMenu();
M.AppendMenu(MF_POPUP ,IDR_MENU2,(LPCTSTR)"DEMAND");
M.AppendMenu(MF_STRING ,IDS_STRING143,(LPCTSTR)"SUPPLY");
M.AppendMenu(MF_STRING ,IDS_STRING144,(LPCTSTR)"COST");
pFrame->SetMenu(&M);
The above code works only if I keep the
if (!pFrame->LoadFrame(IDR_MAINFRAME))
//return FALSE
statements
otherwise the code doesn't work.
What exactly LoadFrame(IDR_MAINFRAME) is doing?
Prithaa
|
|
|
|
|
prithaa wrote: What exactly LoadFrame(IDR_MAINFRAME) is doing?
Should read the docs first!
From MSDN:
Construct a CFrameWnd object in two steps. First invoke the constructor, which constructs the CFrameWnd object, then call LoadFrame, which loads the Windows frame window and associated resources and attaches the frame window to the CFrameWnd object. The nIDResource parameter specifies the menu, the accelerator table, the icon, and the string resource of the title for the frame window.
Use the Create member function rather than LoadFrame when you want to specify all of the frame window’s creation parameters.
The framework calls LoadFrame when it creates a frame window using a document template object.
|
|
|
|
|
Is there any easy way to print a small triangle that is
pointing to the right? There does not appear to be one
as an ascii symbol. Im wondering if there is any other
way.
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
The 52nd character in the Webdings font is a right arrow. Did you try that?
CClientDC dc(this);<br />
CFont fnt;<br />
fnt.CreatePointFont( 200, _T("Webdings"));<br />
TCHAR t = 52;<br />
dc.SelectObject( &fnt );<br />
dc.TextOut( 0,0, &t, 1 );
nave
|
|
|
|
|
my application want to response an action like the windows screen saver.
it means if there is no operation on your keyboard or mouse for 5~10min, then i want to get these action to do something.
the idea in my mind is to use the Keyboard hook and Mouse hook. so that can monitor the operation on Keyboard or Mouse. but it looks not a good solution.
This problem looks like the Screen Saver action. who knows is there have some API or other easy way to solve it?
thank!
|
|
|
|
|
Handle the WM_SYSCOMMAND message and look for the SC_SCREENSAVE as wparam.
nave
|
|
|
|
|
i want to set the sleep time in my program, but not accordin the Windows Setting.
and i don't want to see the Windows Screen Saver run~
how?
|
|
|
|
|
How about calling the SetPriorityClass() with the IDLE_PRIORITY_CLASS parameter?
you can get the idle time since the user's last activity using the GetIdleMinutes() API. May be u can put a timer of 1 minute and when the timer fires check whether the ideal time you need is reached.
nave
|
|
|
|
|
i just find these functions in MSDN.
the funcion DWORD GetIdleTime (void); and HRESULT GetIdleWait(WORD *pwIdleMinutes, WORD *pwDeadlineMinutes); both need include "Mstask.h".
but i found this header files is in the WinCE SDK.
my application is under Win XP/2000.
|
|
|
|
|
jakeyjia wrote: GetIdleTime
try GetLastInputInfo() function.
nave
|
|
|
|
|
thank you~ i got it~
note: in VC 6.0 must define the version like:
#define _WIN32_WINNT 0x0500
|
|
|
|
|
jakeyjia wrote: thank you~ i got it~
jakeyjia wrote: note: in VC 6.0 must define the version like:
#define _WIN32_WINNT 0x0500
_WIN32_WINNT denotes the verison of windows you use. And if you are using XP it is 0x501
nave
|
|
|
|
|
I'm trying to set a parameter through WMI.
I can read a value as follows:
IEnumWbemClassObject* pEnumerator = NULL;
hres = pSvc->ExecQuery(
bstr_t("WQL"),
bstr_t("SELECT * FROM CIM_VideoController"),
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL,
&pEnumerator);
HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1,
&pclsObj, &uReturn);
hr = pclsObj->Get(L"CurrentHorizontalResolution", 0, &vtProp, 0, 0);
But when I try to do a set as follows:
V_VT(&v) = VT_I4;
V_I4(&v) = 1024;
hr = pclsObj->Put(L"CurrentHorizontalResolution", 0, &v, VT_I4);
I get an error return value of: 0x80041005
Any guidance woudd be appreciated!
Jeremy
|
|
|
|
|
CIM_VideoController::CurrentHorizontalResolution
<br />
Data type: uint32<br />
Access type: Read-only<br />
Current number of horizontal pixels.<br />
so you can't set it by put method.
you can see more info in MSDN: http://msdn2.microsoft.com/en-us/library/aa388668.aspx[^]
|
|
|
|
|
Thanks -- I should have noticed the access-type. So, it seems that this stunning complicated wmi interface is just to get stuff.
So, back to ChangeDisplaySettings. I'll post another question on that!!
Jeremy
|
|
|
|
|
If I use SetWindowsHookEx() with the idHook argument as WH_CALLWNDPROC, if I want this to be a global hook and monitor messages to ALL windows in the current desktop, do I have to place the hook procedure defined in lpfn in a DLL? Also, if I want it to be a global hook, do I just set hMod to NULL and dwThreadId to 0?
Thanks for your help!
--PerspX
|
|
|
|
|
Perspx wrote: do I have to place the hook procedure defined in lpfn in a DLL
yes you need to put it in a dll.
Perspx wrote: do I just set hMod to NULL and dwThreadId to 0?
no hMod must specifiy the HINSTANCE of the dll. dwThreadId should be 0.
nave
|
|
|
|
|
Thank you very much
--PerspX
|
|
|
|