|
|
|
What are you trying to do? Do you want to find, given two strings, a common subtring?
Please elaborate.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
Hope this question is relevant to this forum. Would like to know how to set a break point in kdbg in a .cpp file that is not in the same directory as the exe (such that I cannot see the source code in the debugger where I wish to set the breakpoint).
Thanks for any information.
|
|
|
|
|
Hello ALL,
In one of my applications running under local user account, I need to spawn a process internally from system account.I was using OpenProcessToken () and was trying to collect token of winlogon.exe running under system account and was specifying flag as TOKEN_ALL_ACCESS but this fails.
Also if I specify the FLAG as TOKEN_QUERY then I get the handle but then trying to CreateProcesswithUser resulted in Error "Access is denied". Can some body suggest me a solution through which I can spawn a new process through SYSTEM account when my process itself is running through a user account .
Regards,
Kushagra
I hate to code but I luv to develop
modified on Friday, October 9, 2009 3:29 AM
|
|
|
|
|
Kushagra Tiwari wrote: I was using OpenProcessToken () and was trying to collect token of winlogon.exe running under system account and was specifying flag as TOKEN_ALL_ACCESS but this fails.
The API documentation states that you could call GetLastError()[^] to get extended information on the reason for failure. Have you tried that?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I got "Access is denied" (using getlasterror())error while trying to call openprocesstoken as I already mentioned. But some how I want to spawn a process through system account while my base process is running under user account.
Kushagra
|
|
|
|
|
Hi all,
i have a excel files,
i want to divide into known number of small files.
for example::
if original excel file have 10000 rows,and we want to divide it in 6 parts.
its means create 6 files those have 10000/6 row in each file.
but the serial of copying data in small file not according to serial it must be on random basis.
means 10000/6==1666.67
any 1666 row of original file write in any other excel file.
please tell me how can i do this.
if possible please provide me any example.
thanks in advance.
|
|
|
|
|
|
Useless.
Simply copy one of the numerous Microsoft COM samples to parse Excel files
|
|
|
|
|
It isn't "useless". Someone has put their efforts into it.
If you have something "useful" to say, say it to the OP by replying to his message.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I think this jerk is after you. Look out!
Edit:
Having looked at some of his previous messages it seems that he has some kind of "I-have-to-contradict-everybody-just-for-the-sake-of-it" disorder.
|
|
|
|
|
I just saw his posts. I'm not able to see him answering any queries, but majority of his posts are made to tell that the answers given by others are bad or "useless" in one or the other way. What a jerk!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: You could use BasicExcel - A Class to Read and Write to Microsoft Excel[^] to deal with excel files
Thanks Rajesh, I was looking for just such a sample. Strange I couldn't find it searching articles with "Excel C++"
|
|
|
|
|
You're welcome, Richard.
The search seem to be temporarily broken (I'm unable to get some of the search options at all! I'll take this up with Chris).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
"_$h@nky_" wrote:
any 1666 row of original file write in any other excel file.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All
suppose i ve a class
class BAse
{public:
virtual void f();
};
class derive: public Base
{
public:
void myFunc();
};
in this case vtable ll be created for derive class or not?
Thank you all in advance.
|
|
|
|
|
kanungosudhansu wrote: in this case vtable ll be created for derive class or not?
In this case you get compiler errors...
Rearranging to make it compile
#include <stdio.h>
class Base
{
public:
virtual void f(){printf("hi\n");};
};
class Derived: public Base
{
public:
void myFunc(){printf("people\n");};
};
void main()
{
Derived d;
d.f();
}
You may verify that the virtual table is, of course, created.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Of course it will create, if one parent class has atleast one virtual function.
Anish C.V
http://www.iedetech.com
|
|
|
|
|
It'll have a vtable, but it may be the same vtable as the base class, as no virtual methods are overridden in the derived class.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi Experts,
Please help me in this issue..
I need to zip a folder (working in vs2005). i have tried a lot used SHFileOperation() to copy files. But copying to a zip file is not yet worked. Please suggests the other ways to do it.
Regards,
Spk
|
|
|
|
|
|
No.
Use Win32 Native Zip apis from Shell
|
|
|
|
|
Hello,
I have a cricheditctrl window which is drawn on a cmdichildwnd but the border doesnt appear with WS_BORDER.
Pritha
|
|
|
|
|
I want the border to appear with CrichEditCtrl . Is there any other windows style to be used with WS_BORDER
|
|
|
|