|
Get the path where you have to copy the file from CFileDialog and use CopyFile(/*params*/) or see SHFileOperation
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi there people.
I'm trying to redirect the stderr of a process let's say cmd.exe to a raw socket.
I have completed this task by setting the sterr parameter = my socket handle.
I was looking for a function that can take this handle and encrypt the stderr before
sending it to the socket. I could use CreateFile for exampe in order to cache the data
to a file and encrypt it here but it's a bad ugly solution.
In fact I was looking something like CreateBuffer or CreateByte array or MemoryStream of C#.
In other words an intermediate function with a HANDLE input that can return the bytes or something
in order to encrypt them.
Thanx
|
|
|
|
|
hi
how can i read entries from a specified section in the registry while i don't know the entries names? i need to read them all, whatever they might be.
i know that a way is to put a key in the section with a specified name valued with the number of entries and specify retrievable names for the others.
but is there any way other than this? i like to enumerate all of them without having to know the names exactly.
i hope i could describe my question
thx
|
|
|
|
|
Does RegEnumKey [^] fit your needs?
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]
|
|
|
|
|
I began in 1984 with a ZX Spectrum, learning BASIC and Z80 Assembly, then I sleept for a while before returning to programming.
It is very unfair of you to have sleepted.
My troll needs to be attended here[^]
|
|
|
|
|
Rajesh R Subramanian wrote: I began in 1984 with a ZX Spectrum, learning BASIC and Z80 Assembly, then I sleept for a while before returning to programming.
Thank you for pointing out.
Rajesh R Subramanian wrote: My troll needs to be attended here[^]
Fixed. (Being so recent, in this morning patrol I didn't catch it).
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]
|
|
|
|
|
Some lardass downvoted this[^] too.
|
|
|
|
|
[military tone]
Fixed Sir!
[/military tone]
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]
|
|
|
|
|
Thanks pal. But why is your profile standing not corrected? Still shows "Sleept".
May be I am receiving a copy from some local server's cache.
|
|
|
|
|
Rajesh R Subramanian wrote: May be I am receiving a copy from some local server's cache.
0r maybe someone's is just too lazy...
[again militare tone]
Sir, I'm going to fix it, Sir!
[/again militare tone]
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]
|
|
|
|
|
And see here[^] if does nay help.
|
|
|
|
|
Hey everybody!
I am looking for a while a way to disable _com_errors being thrown through COM, and only get the HRESULT (S_OK or something else...) with no luck (I don't want to catch the _com_error).
From what I understood it is an attribute to the #import directive, but I can't really find one that causes that action.
So, is there a way to #import a dll and the prevent _com_error, so I can simply check the HRESULT alone?
Thanks!
|
|
|
|
|
raw_native_types perhaps?
|
|
|
|
|
First, Thanks for your help!
but that attribute forces BSTR and VARIANT instead of _bstr_t and _variant_t.
It still throws _com_errors...
|
|
|
|
|
Hey,
I had a little mistake when before I wrote the other thread.
It Works! , cause it simply disables the smart pointers...
But with it, it takes the _bstr_t and _variant_t and and all the other good things of smart pointer...
Oh well, at least I know what to do!!!
Thanks again!
|
|
|
|
|
Hi all,
My project requires TFTP server implementation in vc++.
If anybody is having the article or any info please share it.
Thanks in advance.
Sunil.
Regards,
Sunil Kumar
|
|
|
|
|
sunilkumar.d wrote: TFTP
Do you mean T errorist F inance T racking P rogram [^]?
BTW: Have a look at this page .
BTW2: You don't know we've also an article search engine, do 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]
modified on Tuesday, July 22, 2008 4:30 AM
|
|
|
|
|
Hi Pallini,
Thanks for the reply.
I already searched it in articles section, but nothing related I found.
Anyway I will do it again.
Thanks again.
Regards,
Sunil Kumar
|
|
|
|
|
I've developed a project in VC++ 2005. It works in Release mode. When I compile this project in Debug mode, I got many errors which states,
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall dtAnim::CharacterWrapper::SetGroundClamp(class dtCore::Scene *,float)" (__imp_?SetGroundClamp@CharacterWrapper@dtAnim@@QAEXPAVScene@dtCore@@M@Z) referenced in function "public: __thiscall dtAI::AICharacter::AICharacter(class dtCore::Scene *,class dtAI::Waypoint const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int)" (??0AICharacter@dtAI@@QAE@PAVScene@dtCore@@PBVWaypoint@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)
What to do to Compile and Run my project in Debug mode?
|
|
|
|
|
You probably forgot to link to a library file in the project options for the debug mode. Where does the class CharacterWrapper come from ?
|
|
|
|
|
It's from an external tool. I've included all the libraries mentioned in the guidelines for this tool. How can I find out which library is missing and where do I link that particular library?
|
|
|
|
|
Open the project settings for the release version and check in the linker category. There should be somewhere an option "Additional Dependecies" in the "Input" category (well, that depends on which IDE you are using). Check if the debug mode uses the same libraries as the release mode.
|
|
|
|
|
I have loaded a bitmap to a dialog.
But that bitmap contains white background and it looks odd in the dialog.
I need to match bitmaps background with dialogs menu (grey) color.
How to do this?
|
|
|
|
|
|
The technical word for Making bitmap background invisible is MASKING...
if ur using white color as Bitmap background then
Use below function to change it to backGround color
ColorTo( RGB(white),RGB(BkGroundColor));
Search in an MSDN for this concept and also follow the code
// Create a Bitmap object from an image file
Bitmap myBitmap = new Bitmap("Grapes.gif");
// Draw myBitmap to the screen
e.Graphics.DrawImage(
myBitmap,
0,
0,
myBitmap.Width,
myBitmap.Height);
// Get the color of a background pixel
Color backColor = myBitmap.GetPixel(1, 1);
// Make backColor transparent for myBitmap
myBitmap.MakeTransparent(backColor);
// Draw the transparent bitmap to the screen
e.Graphics.DrawImage(
myBitmap,
myBitmap.Width,
0,
myBitmap.Width,
myBitmap.Height);
|
|
|
|