|
Go to resource file and place the code of bitmap at the top of the dialog properties and then place button properties.
|
|
|
|
|
Advapi32.dll
As what I understand by reading the Microsoft Cryptographic Service Provider Development Kit manual, in order for me to perform signing I need to replace the advapi32.dll in c:\windows\system32 folder.
For Windows 2000, from the manual – I need to rename the current advapi32 to advapi32.bak. Then I expand it the appreciate advapi32.dll for the test platform and replace it in the c:\windows\system32 directory.
For Windows XP and Vista, can I do it the same way/do I also need to replace the advapi32.dll for the purpose to test the signing process?
I try to do it in Vista, but I get a warning message seems that not allowed to modify any files in c:\windows\system32 directory.
UAC in Vista
After I get stuck to replace the advapi32.dll in Vista, one of my colleague told me that it is not necessary to replace the advapi32.dll coz it is only for the purpose to test the signing. So I start to register the dll in Vista. But I got the error msg -the module “mimoscsp.dll” was loaded but the call to DllregisterServer failed with error code 0x800900006-.
I check from the net and I found out that it might be regarding the UAC in Vista. So, I’ve tried to look from net and find out that I need to create a manifest file.
So, my manifest file is like this:
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
<ms_asmv2:trustinfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedprivileges>
<ms_asmv2:requestedexecutionlevel level="asInvoker">
But I still get the same error.
I already try to run the cmd prompt in Vista-Run as Administrator – but still get the same error.
I try to run VS Studio 2005-Run as Administrator, compile the file, replace to file in c:\windows\system32 – register the dll-> but still get error.
And now I’m stuck. I’m not sure what direction should I take now. Hope you can give opinion about this. Thanks.
|
|
|
|
|
Greetings fellow coders!
Any ideas how i could drop (like in drag-drop) a file onto any application that can receive dropped files programatically? I know this has been asked a few times already but i didn't find any answers yet. Thanks in advance for any suggestions.
|
|
|
|
|
Hi,
I need help in reading a cvs tag/tag name of a file from the C++ program. The OS is Linux.
It would be great even if it is an idea of how to do this?
Thanks in advance.
|
|
|
|
|
scamguru wrote: I need help in reading a cvs tag/tag name of a file from the C++ program.
I'm not sure what type of file that is, but with C++ you can read files using an ifstream object.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Problem is how to get the most recent tag read. if i run a cvs command, it gives me lot of information regarding the tags. But i can't get the most recent tag. And again I have to read the output from the standard output, which is little bit complicated.
Any suggestions?
|
|
|
|
|
scamguru wrote: And again I have to read the output from the standard output...
Which looks like what?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
it is a list of tags. example below,
for example
CODE_1-2-0:1.0.0.1
CODE_1-1-4:1.0.0.1
CODE_1-1-3:1.0.0.1
CODE_1-1-2:1.0.0.1
CODE_1-1-1:1.0.0.1
CODE_1-1-0:1.0.0.1
this will be standard output. and i have to read 1-2-0. This is a command output of cvs log <filename>
|
|
|
|
|
So read each line, and if the first 10 characters are "CODE_1-2-0", you've got a match.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
How can do that ?
"The Awaited Saviour", Mohammed Baqir Al Sadr
modified on Thursday, November 20, 2008 5:09 AM
|
|
|
|
|
Do you have a variable? If you do then you have a reference to it.
void foo(int &bar)
{
bar += 3;
}
int main()
{
int bar = 3;
foo(bar);
int *ptr = &bar;
foo (*ptr);
return 0;
}
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
PJ Arends wrote: Do you have a variable? If you do then you have a reference to it.
ROTFLMAO You left out, "is it plugged in?"
led mike
|
|
|
|
|
That is exactly the problem : I do'nt have a variable.
in my case, the function fo is a callback triggered by external code (that cannot be changed).
i have a local function F1 where i would like it to trigger that callback,same as the external code does. The aim is to enable two scenarios to be handled together. Problem is that even if that function F1 would not require to pass a certain parameter, and that neither the processing code in the callbackwould need to collect its content at that case, then the parameter is a reference to a class type which constructor is private (meaning I cannot simply instantiate a temporary var then pass it). Adds to that the fact that the external code can't be changed and it even does not expose a class factory for that type.
Are there any workaround though ?
Thank you.
|
|
|
|
|
Please post some code, the above scenario is soooooo funny!
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]
|
|
|
|
|
see last message M.Pallini. BTW, how are you ?
|
|
|
|
|
What's the last message?
BTW Voting 1 won't help you.
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]
|
|
|
|
|
=the last reply in the whole set of recursive replies related to the forum thread.(the reply where I replied to myself).
I always vote either 1 or 2 or 5.
|
|
|
|
|
hINTModuleState wrote: the reply where I replied to myself
OK.
hINTModuleState wrote: I always vote either 1 or 2 or 5.
This is (of course) up to you. I was pointing out that our replies were indeed reasonable, since you possibly want to insist on bad design, and providing a cluttered scenario to justify your choice. You're basically saying (roughly):"Ok this is an ugly trick but I want it because my scenario is complex", that is bad design.
I hope toxcct is not looking at this thread, since I'm doing desing philosophical statements.
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]
|
|
|
|
|
CPallini wrote: since you possibly want to insist on bad design, and providing a cluttered scenario to justify your choice. You're basically saying (roughly):"Ok this is an ugly trick but I want it because my scenario is complex", that is bad design.
If it was not because of the "possibly" adverb, then I would have felt accused. I am a good guy standing on the hand of those who worries about good design ( for the least).
|
|
|
|
|
hINTModuleState wrote: If it was not because of the "possibly" adverb, then I would have felt accused.
Well, I give a chance even to the worst coder (I'm kidding).
hINTModuleState wrote: I am a good guy standing on the hand of those who worries about good design ( for the least).
You're a good guy who possibly needs a deeper knowledge about OOP .
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]
|
|
|
|
|
Usually the purpose is not to fool the compiler...
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]
|
|
|
|
|
CPallini wrote: Usually the purpose is not to fool the compiler...
Which was my point here: [.]
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thank you, following the link I got the today's CP memorable quote[^].
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]
|
|
|
|
|
CPallini wrote: Thank you, following the link I got the today's CP memorable quote
Glad to be of service.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Usually functions are declared that way to be certain that an existing object is provided, because otherwise it would not serve any point of calling the function. Compare with the copy constructor.
If you feel you should call that function without a valid object to pass as reference, you have either misunderstood what the function does or the one who declared it didn't understand the concept of references.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|