|
Take a look at STARTUPINFO argument in CreateProcess function.
Thanks & Regards
|
|
|
|
|
Thank you for Tou help.
I have made the changes in STARTUPINFO structure.
STARTUPINFO si;
si.lpDesktop = _T("NewDesktop");
I am creatring userinit.exe after changing the desktop and its wokring.
|
|
|
|
|
Hi.
is it possible to personalize the Wallpapers and ICONS for the newdesktop.
If yes can you tell me how to do this.
|
|
|
|
|
Hello
I have been trying to implement the sample at the link http://www.codeproject.com/useritems/GetNtProcessInfo.asp[^]
Its mentioned in the article to add the files "NTProcessInfo.h", "NTProcessInfo.cpp" to my project and exclude them while building the project.
I have followed the instructions to add the files and exclude them while building the project. I did a #include "NTProcessInfo.h" at the top of my file MsiInfo.cpp.
However, I get the following linking errors mentioned below:
MsiInfo.obj : error LNK2001: unresolved external symbol "void __cdecl sm_FreeNTDLLFunctions(struct HINSTANCE__ *)" (?sm_FreeNTDLLFunctions@@YAXPAUHINSTANCE__@@@Z)
MsiInfo.obj : error LNK2001: unresolved external symbol "int __cdecl sm_GetNtProcessInfo(unsigned long,struct _smPROCESSINFO *)" (?sm_GetNtProcessInfo@@YAHKPAU_smPROCESSINFO@@@Z)
MsiInfo.obj : error LNK2001: unresolved external symbol "struct HINSTANCE__ * __cdecl sm_LoadNTDLLFunctions(void)" (?sm_LoadNTDLLFunctions@@YAPAUHINSTANCE__@@XZ)
Can somebody please tell me what is the reason for this?
Thanx.
|
|
|
|
|
It seems you need to import lib file or files to your project.
|
|
|
|
|
Please remove /Zl from the command line property page.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hello all,
Can someone provide me interview questions on VC++, COM, ATL.
I need those desperatly.
Thanks...... .
|
|
|
|
|
They normally provide those at the interview..
To get you started there are tens of thousands of MFC/C++ questions on this forum - mostly with answers.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Yesterday somebody on this forum told about this site http://sumedh.shende.googlepages.com/.
|
|
|
|
|
Hamid. wrote: Yesterday somebody on this forum tell about this site http://sumedh.shende.googlepages.com/
humm advertising.. but that site contain nothing, you have to ask the question to get answer there!. god knows how much time it will take to work out or create question bank!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Of course I said that somebody told about this site therefore I didnt use of a link.
|
|
|
|
|
softlookup.com and functionx.com
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hi,
I have a splitter window project with 2 colums.
My left pane base class is "CFormView" and right pane is "CScrollView".
How to share a common Vertical scroll bar for both panes ?
Thanks in advance.
Aby Jacob
|
|
|
|
|
I dont know how to share it, but you can always sincronize both of them when one is moved.
In the OnScroll () or by OnScrollBy () you can make something like:
int nVertPos = pDoc->m_csbMyScrollBar1->GetScrollPos (SB_VERT);
pDoc->m_csbMyScrollBar2->SetScrollPos (SB_VERT, nVertPos, bRedraw);
pDoc->UpdateAllWindos (NULL);
I'm supposing a CScrollBar* for every one of them in the document, to have easier access to both with independance of which view is the active.
Or something like this.
Hope it helps
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
One method is that when you receive the VScroll messages for one view, send them to the other also, provided the range and thumb size are same for both.
- NS -
|
|
|
|
|
Hello all;
I'm currently working on encryption algorithm for small embedded systems.....I had selected a combination of RSA and Blowfish.....where RSA is used for the session key encryption...
Could any body suggest a method of transferring the public keys to the recipients with authentication without using the CA certification or PKI....as its dealing with embedded systems and having a third party to monitor the public key transfer is a major area of concern..
Any help in this regard will be greatly appreciated..
Thanking you'll in advance..
sc_emb
sc_emb
|
|
|
|
|
Don't cross post!
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
I am trying to create a scheduler using ITaskScheduler but I am struck up while running the job. I am able to create the job but it is throwing an error while saving the job at
hr = pIPersistFile->Save(NULL,TRUE);
The Error that is getting logged is
The attempt to retrieve account information for the specified task failed; therefore, the task did not run. Either an error occurred, or no account information existed for the task.
The specific error is:
0x8004130f: No account information could be found in the Task Scheduler security database for the task indicated.
I am using XP , do anyone has any idea why it is failing while saving?
|
|
|
|
|
Did you call IScheduledWorkItem::SetAccountInformation() ?
|
|
|
|
|
Yes , i pass both the parameters username and password but the still same error exists.
I went through the microsoft site , it seems this was a bug in earlier XP versions but that fix was made.
I am using XP version 2002 service pack 2, is this the version in which fix is made or not?
Thanx for reply!!
|
|
|
|
|
Can you create the job manually, and have it run?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yes, if i go to that job and specify the password in the properties, the job runs fine , its just that through setAccountInformation I am not able to run that job?
It is picking my default Windows login and not the userID I specify in setAccountInformation.
What could be the reason?
|
|
|
|
|
How are you using the SetAccountInformation() method?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This is the flow :
hr = pITask->SetApplicationName(pwszApplicationName);
TCHAR pszName[500] = "User";
TCHAR pszPwd[500] = "Password";
hr = pITask->SetAccountInformation((LPCWSTR)pszName, (LPCWSTR)pszPwd);
hr = pITask->CreateTrigger(&piNewTrigger,&pITaskTrigger);
hr = pITaskTrigger->SetTrigger (&pTrigger);
hr = pIPersistFile->Save(NULL,TRUE); // Here Error is getting Logged in SchedLgU
|
|
|
|
|
What is the value of hr ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|