|
thanks, but i like to earn some code
sepel
|
|
|
|
|
sooo... you want to distribute a program via a image? a virus perhaps?
.. I dunno why but alot of the people here seem to want to do something oddly suspicious. correct me if im wrong though.
|
|
|
|
|
yes i want to embede my exe in an image but not as only as a virus.
you are right .so can help me?
sepel
|
|
|
|
|
in that case i would be glad to help. if only i knew how. Have you seen this done before, so that you know it is possible? the only way i can think of it being possible is if there is a program on the target computer that can extract the .exe once it arrives inside of it's image.
|
|
|
|
|
yes it seems to need a program on client but i try to find a better solution
for it .such as execute it on cclick;
what are you tihk about subseven ?
how it work?
it send a exe file in a piture to client then wait for it's information .
i think taht there is a way .
sepel
|
|
|
|
|
Hi,
In one of my projects i am reading data from a XML file.
The file looks like this.
<ExtensionInfo >
<ObjectExtension>
<Extension Name="test123" ExtensionType="SymbolExtension" InheritedFromTagName="" / >
<Extension Name="test123" ExtensionType="ScriptExtension" InheritedFromTagName="" / >
</ObjectExtension>
<AttributeExtension / >
</ExtensionInfo>
when i pass test123 ,get_nodeValue is returning SymbolExtension.
But if you look at the above file, you can notice that ScriptExtension extension name also test123.
Is there any way to get ScriptExtension ,rather than SymbolExtension.
Thanks in Advance
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
NiceNaidu<extension name="test123" extensiontype="SymbolExtension" inheritedfromtagname="">
<extension name="test123" extensiontype="ScriptExtension" inheritedfromtagname="">
Doesn't these two qualify as separate nodes in this case ?
|
|
|
|
|
I did not understand u r Q ??
But my Q is how will the search be done in XML.
Is there any chance of getting all nodes ??whose texts are same (in this case "test123")
Thanks
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
NiceNaiduI did not understand u r Q ??
I mean to say, if they are two separate XML nodes, you need to use get_nodeValue on that node's IXMLDOMNode pointer.
NiceNaiduIs there any chance of getting all nodes ??whose texts are same (in this case "test123")
You need to traverse doucment for that.
p.s. - Dont use SMS english, for others disliking here.
|
|
|
|
|
Ok..
Thanks for the reply and also for your suggestion.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Use XPath and do a select for //Extension[@Name='test123'] which will return a collection of all nodes with the given Name attribute. Then you can iterate over that collection and do whatever you need to with the <Extension> nodes
|
|
|
|
|
Thanks Dunn,
This is what i am looking for.
Thanks again.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
The code below is a text-to-speech program, building in the debug mode is all right, but building in the release mode, there is an error:
Linking...
LINK : fatal error LNK1104: cannot open file "sapi.lib"
Error executing link.exe.
I have no ideas where is wrong in the project configuration, Thanks for help!
------------------------------------------
#include <sapi.h>
#include <sphelper.h>
#pragma comment(lib,"ole32.lib")
#pragma comment(lib,"sapi.lib")
int main(int argc, char* argv[])
{
ISpVoice * pVoice = NULL;
if (FAILED(::CoInitialize(NULL)))
return FALSE;
HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
if( SUCCEEDED( hr ) )
{
CComPtr<ispstream> cpWavStream;
CComPtr<ispstreamformat> cpOldStream;
CSpStreamFormat OriginalFmt;
pVoice->GetOutputStream( &cpOldStream );
OriginalFmt.AssignFormat(cpOldStream);
hr = SPBindToFile( L"c:\\output.wav",SPFM_CREATE_ALWAYS,&cpWavStream,&OriginalFmt.FormatId(), \
OriginalFmt.WaveFormatExPtr() );
if( SUCCEEDED( hr ) )
{
pVoice->SetOutput(cpWavStream,TRUE);
WCHAR WTX[] = L"<voice required="\"gender=female\"">Hello world!";
pVoice->Speak(WTX, SPF_IS_XML, NULL);
pVoice->WaitUntilDone( INFINITE );
pVoice->Release();
pVoice = NULL;
}
}
::CoUninitialize();
return TRUE;
}
========================================================================
Have you ever made phones on the internet
========================================================================
|
|
|
|
|
You've obviousy defined the path this this file in your debug settings and not the release.
When you change settings like that, change it to work on 'all' first.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Check the settings of the replease mode and ensure that the lib file is existing in the specified path.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Thank you Christian Graus , you pointed out the error, I made a mistake, the project link configuration in debug and release were not the same, I changed release configuration as same as the debug, now the link 1104 errror diappeared,
Thank you again!
|
|
|
|
|
BY the way , why I can't see the two included header files in the begining of the code ?
|
|
|
|
|
Just chk the FAQs once.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
chocm wrote: BY the way , why I can't see the two included header files in the begining of the code ?
Because you did not click the < and > above the smileys.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
where do i find the file atlstr.h? please this is a matter of urgence, i need to resolve this issue ASAP.thank you
Li Zhiyuan
16/02/2007
|
|
|
|
|
You can find it in
$InstalDir\Microsoft Visual Studio 8\VC\atlmfc\include
$InstalDir\Microsoft Visual Studio 8\VC\ce\atlmfc\include
$InstalDir is Visual Studio Installed Directory.
|
|
|
|
|
The usual caveat. If you need to include this file to get something you need, the file itself may well not help you. It's possible that you also need a .cpp file, a .lib file, or perhaps even an entire SDK ( not in this case, but in general ), which a header file simple represents a way to enter.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi there,
Is there anyone who knows how to allow a drawing using CDC (such as MoveTo and LineTo)to be always "visible and stationary" on the left although i scroll to another side of the custom control with Cwnd base class. The other drawing in the same custom control should be allowed to scroll normally. I'm using a mfc dialog application.
Please help. Thank You.
|
|
|
|
|
CWnd::ScrollWindow does allow you to specify which part of the window to scroll. You do not have to scroll the entire client area.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Hi all,
I have created a Project using VC++ 6.0. It has a normal (parent) thread.
I have created another thread (infintely queries the server) using AfxBeginThread() .
The problem is :
The project is taking "99% CPU Usage". Hence other application that are running along will get struck.
What is the solution for this? Please help me.
Thanks in Advance.
|
|
|
|