|
Then we hope you understand it's a little bit difficult for us to ... help you ...;)
SkyWalker
|
|
|
|
|
chenxiujie wrote: but I couldn't provide the code.
Ok... You under NDA... But what about showing defination of structure AAA...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Struct AAA is inherit from struct BBB, structs AAA and BBB are very simple, only had data member, six "Unsigned Long" type data.
I think there is some memory error in my program, but I cann't find it.
Vc's debugger is no use.
|
|
|
|
|
chenxiujie wrote: I think there is some memory error in my program, but I cann't find it.
Vc's debugger is no use.
Thats cannot be answer without seeing codes... I believe you have to ask your seniors on this matter
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 4:45 Monday 31st October, 2005
|
|
|
|
|
I guarentee you that your companies security will not be compromised by such a small code snippet, and no-one is going to steal code that is broken.
You could at least answer my question - does it break the first time you go through the loop, or after lots of times ?
Perhaps you could write a similar piece of code in your own time, and see if it works or not. If it does, work out what is different, if it does not, post it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
When I am creating ImageList for the listctrl which i am trying to implement in dll is throwing some strange error .
m_cImageList.Create(IDB_BITMAP1, 16, 3, RGB(255, 0, 255));
It is throwing error that IDD_Bitmap1 is undeclared.
please help
|| ART OF LIVING ||
|| ART OF LIVING ||
|
|
|
|
|
|
What makes you sure that IDB_BITMAP1 is not undeclared ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Compiling...
YatinList.cpp
C:\VC6book\Copy of Copy of OilHomeFinal3092005FINAl\JCALIST\YatinList.cpp(20) : error C2065: 'IDB_BITMAP1' : undeclared identifier
Error executing cl.exe.
JCALIST.dll - 1 error(s), 0 warning(s)
|| ART OF LIVING ||
|
|
|
|
|
I'll ask again. What makes you sure that this error message doesn't just mean what it says ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I AM NOT UNDERSTANDING WHAT YOU SAY. i HAVE INSERTED NEW BITMAP
REBUILDED APPLICATION ,WHAT TO DO MORE?,PLEASE EXPLAIN I AM BEGINNER
|| ART OF LIVING ||
|
|
|
|
|
STOP SHOUTING.
The bitmap is obviously not visible for one reason or another. So, I'm asking you how you're sure that this should work. Is the bitmap present in your resources ? Have you #included the resource file, so that IDB_BITMAP1 is #defined in the scope of this code ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
you are great,my problem got solved?
who are you, what means Microsoft MVP?
|| ART OF LIVING ||
|
|
|
|
|
shivditya wrote: who are you
I'm just this guy, you know ?
shivditya wrote: what means Microsoft MVP?
It means I spend too much time answering questions and not enough doing my own work
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: It means I spend too much time answering questions and not enough doing my own work
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
shivditya wrote: what means Microsoft MVP?
I believe this will answer your question :- https://www.microsoft.com/mvp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
YatinList::YatinList()
{
m_bHeaderIsSubclassed = FALSE;
m_cImageList.Create(IDB_BITMAP1, 32, 1, RGB(255, 0, 255));
coltype=NULL;
ptr=NULL;
checkarr=NULL;
m_query=NULL;
dbinit=NULL;
startrow=0;
}
|| ART OF LIVING ||
|
|
|
|
|
Hey, I'm trying to find some good information (articles, samples, whatever) on changing the access rights of a process. I believe the API methods include, OpenProcess, GetKernelObjectSecurity, GetSecurityDescriptorDacl, GetAclInformation, SetKernelObjectSecurity, etc.
I am trying to disable some rights in a process like PROCESS_TERMINATE though I am having trouble finding some good information.
Thanks all
Luke
|
|
|
|
|
After u OpenProcess, u should OpenProcessToken and AdjustTokenPriviliges.
In addition, u'd probably wanna use LookupPriviligeValue.
For some more info and examples search for how to shutdown the syste
HTH
Yakov
|
|
|
|
|
Cool, what privilege name do you use in LookupPrivilegeValue as I can not find something that seems to disable the right to terminate the process.
I had found some things pointing to using Dacl's etc whihc is really annoying, to disable PROCESS_TERMINATE.
Thanks
|
|
|
|
|
|
Thanks for the reply.
What I am trying to do is disable the user from killing the app in task manager.
first the program enabled SE_SYSTEM_NAME and then open the current process with ACCESS_SYSTEM_ALL (or something, dont have the code infront of me). Then I use GetKernelObjectSecurity to get the Dacl of the process and I adjust that by adding a AddAccessDeniedAce for the PROCESS_TERMINATE mask. and apply that to the Security descriptor and use SetKernelObjectSecurity to set it. Now this work for Windows NT. the task manager gets a 'access denied' when trying to kill the app. But in Win XP the Task manager gives itself the SE_DEBUG_NAME rights and can kill the app.
How do I get around this? other programs acheive this, like some firewall apps still return access denied when trying to kill the task in Win XP.
I understand using the kill cmd line tool from one of the SDK will always force the app to die. but I want to be able to stop the task manager form end task the app. Any ideas?
Thanks
Luke
|
|
|
|
|
I use the EnumJob to get the job from printer my local or network printer.
every job include pszdocument,page,bytes,user so on .
if I use microsoft word to print,the pszdocument is only the file name,just "microsoft word 11.doc".
but if Use UltraEdit to print,the pszdocument is the file's full path,just "c:\\tmp\1.txt".
why?
I want to know the file's full path by using word to print,
how to do that?
-- modified at 21:19 Sunday 30th October, 2005
|
|
|
|
|
The pDocumen member of the JOB_INFO_2 structure points to a null-terminated string that specifies the name of the print job, as it was communicated by the thread/app which ordered the printing. MS Word communicates something like this: MS-WORD: YourDocument.doc, while UltraEdit seems to communicate more.
You / we must think of another way of getting that information (if possible)
SkyWalker
|
|
|
|
|
i have been tring to write a program that can perform common tasks by voice. i am using microsoft visual c++ 2005 express edition beta 2 (had other problems with so if anyone knows of anything better that is free, since i only do programming as a hobby right now, that would also help).
i need help with the voice recognition. i have downloaded the microsoft speech sdk 5.1 and have tried the examples with it but when i try to compile the examples it gives me several errors. i have also searched this website and search engines for some help but i cannot find any thing that helps. the ones on this website helped a little bit but most of the code they used gave me errors such as undefined variables when i try to compile them. i dont know if there are other include files that i am forgetting or what.
the include file sphelper.h also gives me several errors by itself when i try to include it in any program.
i have also been trying to make a tree view control to display the list of commands from the xml file that i have so if anyone knows how to do this it would also help me out a lot.
any help would be greatly appreciated (code samples and tutorials are extremly helpful)
thank you in advance for the help.
- Kyle
|
|
|
|