|
you cant simply change the system language and hope your file to be changed to tht language, ya but there are ways,
|
|
|
|
|
Google language tools here[^] can do a rough translation.
|
|
|
|
|
|
I work with Visual C++ (currently in Visual Studio2005) on win xp. I have a resizable dialog bar - from a class I derived from CDialog bar to be resiable. The dialog box contain a list box and some button at bottom. Dialg bar is covering entire length of MDI. When i am resizing the main window the dialog bar is also resizing. But at resulution ( 1280 * 1024 ) pixels it covers only the 3/4 length of MDI.
What I did is increasd the length of the dialog bar in resource and that solved the problem. But is this right way of doing this or is there some method to increase the lenght of dialog at runtime.
Sandip
|
|
|
|
|
Can anybody give me a working version of portuser.cpp of Gary Nebbet,
i mean i must compile it properly with DDK2000/XP and PlatformSDK.
Thank you very much.
|
|
|
|
|
What will be best way of providing security to our application in MFC.I mean how to generate installation key to our Applicationn. can u post your suggestions..
Thaking you
swamy
|
|
|
|
|
See here[^], I hope it helps you.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi _AnShUmAn_,
Thaking for giving this article. But Iam asking about "In what basis we will generate the key" i.e., either by using System Hard Disk Serial number or MAC address??
Thanking you,
swamy.
|
|
|
|
|
Hi Experts,
Can i use CHtmlView to display html as well as text data.If yes,how to get a pointer of CHtmlView
CHtmlEditCtrl *HtmlCtrl=&Get?????????();
|
|
|
|
|
If you want to show html file or text file with ChtmlView you can do it.
|
|
|
|
|
Hello,
Can anyone help me with MFC framework concepts while creating windows . I have written a few programs for creating windows and child windows but still there is confusion regarding the call to ONInitdialog(),OnCreate(),DoDataExchange() and Update() functions of CWnd.
Pritha
|
|
|
|
|
|
|
|
Do you get any error or have problem on your program?
|
|
|
|
|
Hello,
Thanks for your concern.
You have also replied to my other mails where my problem is about creating dialogs without resource-ID.
You directed me to a link where a program example was given about the same.
It was helpful but still I am stuck in my program.
This is my code.
D dlg;
DLGTEMPLATE *d = new DLGTEMPLATE;
d->x = 10;//(short)m_Rect.left;
d->y = 10;//(short)m_Rect.top;
d->cx = 200;//(short)m_Rect.Width();
d->cy = 200;//(short)m_Rect.Height();
d->style = WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_SETFONT;
d->cdit = 0;
int iRet = dlg.InitModalIndirect(d);
dlg.DoModal();
Here in the above code I get iRet = 1 but the dialog box is not displayed even when I give dlg.DoModal()
Thanks
Prithaa
|
|
|
|
|
Im sorry I dont have any compiler know but I think if returns 1 so it can makes your dialog.
|
|
|
|
|
Dear all
how to understand parameters below. give me suggestion.thanks a lot.
CFileDialog dlg(FALSE,_T("BMP"),_T("*.BMP"),OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,_T("Save bitmap pattern(*.BMP)|*.BMP|"));
Li Zhiyuan
29/06/2007
|
|
|
|
|
CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );
Parameters
bOpenFileDialog
Set to TRUE to construct a File Open dialog box or FALSE to construct a File Save As dialog box.
lpszDefExt
The default filename extension. If the user does not include an extension in the Filename edit box, the extension specified by lpszDefExt is automatically appended to the filename. If this parameter is NULL, no file extension is appended.
lpszFileName
The initial filename that appears in the filename edit box. If NULL, no filename initially appears.
dwFlags
A combination of one or more flags that allow you to customize the dialog box. For a description of these flags, see theOPENFILENAME structure in the Win32 SDK documentation. If you modify the m_ofn.Flags structure member, use a bitwise-OR operator in your changes to keep the default behavior intact.
lpszFilter
A series of string pairs that specify filters you can apply to the file. If you specify file filters, only selected files will appear in the Files list box. See the Remarks section for more information on how to work with file filters.
pParentWnd
A pointer to the file dialog-box object’s parent or owner window.
hope this willget all clear
|
|
|
|
|
true mean file open dialog n false mean file save as dialog
|
|
|
|
|
hi guys,
i have a dialog application, i want to launch 10 worker thread and each worker thread will do a particular work, ie. each worker thread will connect to a url and download the page content, and they will parse the page and write some data to a database, so imagine if there are 1000 pages then if i go by general way of geting pages one by one it will take me around 20 mins to 45 mins, so i was thinking if launch 10 thread which in term each will collect 1 page then the time may be reduced,
my problem or query is,
as fas of today is, we all using single processor, so no matter how many threads u create, any given point of time only one instruction will carried out, but when i launch more then one application of mine and break up the collection say app1 collects 100 and app2 collects another 100, this is faster then collecting 1000 in 1 application, so breakin it to threads will help or not,
how to code for it, do you have any idea i mean any design for it, or any help for it,
cas i cant write 10 diff function for each thread,i want one function to do all the work but i will pass diff parameter for each thread, but then comes the problem resource access violation if i call the same function for each thread,
so is there a way i can the thread callback to a class, or i can put the whole code, for say
class mythrdcls
{
mythrdcls(char *)
{}
void create(){}
void dothetask(){}// like a thread callback function
void running(){}
void destroy(){}
}
so please give me an idea how to do it,
ya one more thing i forgot to add here, when i call createthread or afxbeginthread, i have to call a thread callback, i want to pass some arguments to my thread callback funcion, so i can pass them in param value, i want to pass more then one value so i have to create a structure and pass it, but the problem is in thread function it does not reflect the correct value,
ie struct th
{ int x;int y} x;
x.y=10,x.x=1
beginthread(function1, x);
x.y=20,x.x=2
beginthread(function2, x);
function1()
a=x;
a.x///////////does not alwys contain 1 ie cas by the time callback is called the value is changed to 2 so how can make sure tht unless the thread callback is called the 2nd thread cant be created or ast thread get the corect value and so 2nd thread also, i used waitforsingleobject but it did not help
Thanks a lot
|
|
|
|
|
thanks anyway,for no reply, figured it out myself, any one need help in tht case let me knw
|
|
|
|
|
Hi All,
I have an application that tries to print a PDF File to a network printer from the WebBrowser control. I am able to print the report if I just run the exe directly. But when I tried to start the application from a service as a new process then it could not find the network printers. Is there any secruity permissions to be applied when starting a new process from the service? Or what could be of the cause and its possible solutions?
Kindly help me.. I am just struggling a lot in this!!
Thanks,
Sivakumar R
|
|
|
|
|
Your service runs under the local account, which means that it won't be able to use network resources.
Start the service under a given user account instead. And use a user account that has the rights to do network printing.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hi,
You are right. The service is currently running as a local system account. But I have one more limitation here. My application is a Desktop Application, I am starting this through a Service to grant/deny some rights to my application. So the service needs to be on a Local System Account to enable this option.
I tried configure the service to work with the network user. But unfortunatly, my application is not displaying the GUI. I gone through the following article : http://www.codeproject.com/install/...vicedesktop.asp
to try to enable the service to interact with the service. But it does not seems to be working.
Here is what I was trying to do..
- I tried to login as a network user
- I change the Logon properties of the service to work with a specified account.
Is it possible to make the service to interact with the desktop even if we set it not as a local system account?
Thanks a lot for your suggestions!!
Regards,
Sivakumar R
|
|
|
|