|
Thank God you posted this. Telling someone to create a stub process to test an ip app. I was going to flip if someone had not posted something as simple as testing on the same pc using the localhost.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
I do not know how to use the local loop. How to create a stub process and what is stub?
|
|
|
|
|
your server and you client are supposed to discuss through by IP network, aren't they ?
so, instead of using two distinct computer to be able to test, you use the internal IP address, which is 127.0.0.1 .
this works on every machine because it is defined in the IP Protocol standard. this particuliar Address is also recognized under localhost host name, and that's what's been call the local loop.
so, to test your programs, just put them on the same machine, start the server to listen on the localhost on the port it has to, and then run the client(s) which have to connect to the server on its ip address (locahost again)...
understand better now ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
in trying to use the wave class in a program, i had this error message.
I need help on how to resolve it. Thanks
error LNK2001: unresolved external symbol "public: struct tWAVEFORMATEX __thiscall CWave::GetFormat(void)const " (?GetFormat@CWave@@QBE?AUtWAVEFORMATEX@@XZ)
|
|
|
|
|
You probably need to add a source file to your project that will be compiled along with your code or you have to link to a library (see the linker settings).
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
or just missed the header to include...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
This would have caused a compiler, not linker, error.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
hum, yes, you're right... sorry
(5 for you )
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Make sure you are including the appropriate .lib file in your Imports
|
|
|
|
|
there's no nee to say again what's been posted just before you...
read the answers before posting a response.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
when we compile & making exe is has no error. but when executing it gives error assertion failed.
plz will u give code for transfer file using tcp from one pc to another in vc++.
|
|
|
|
|
manishgandhi wrote:
plz will u give code for transfer file using tcp from one pc to another in vc++.
File Transfer [^]
"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
|
|
|
|
|
manishgandhi wrote:
...it gives error assertion failed.
This is not a whole lot to go on. Perhaps you could provide the code snippet that caused the assertion to fire.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi All,
I want to perform variant comparison without considering case.
i am using VarCmp() function.
and passing flag NORM_IGNORECASE as last parameter to the function
but still i am getting case-sensitive comparison results.
and if i dont pass that parameter, then error comes up saying function does not take 3 parameters.
plz help in this regard if anyone of u knows.
Thanks in Advance,
Abhi
Abhijeet Jadhav
|
|
|
|
|
|
Hi Jose !
Firstly, Thanks For responding to my query.
Below is the code i am using for variant comparison
_variant_t serverVal, clientVal;
// nSize is computed earlier.
// obj1 and obj2 used below are user-defined objects in our application
// and getValue returns the value for given property as a variant type.
for (int nIndx = nSize-1; nIndx >= 0; nIndx--)
{
// other code
::VariantClear( &clientVal );
::VariantClear(&serverVal);
obj1->getValue(property, &clientVal); // getValue returns variant here
obj2->getValue(property, &serverVal);
if (clientVal.vt == VT_EMPTY && serverVal.vt == VT_EMPTY)
continue;
if(::VarCmp(&clientVal, &serverVal, 0, NORM_IGNORECASE )!= VARCMP_EQ )
{
// Not matched - Processing
}
else
{ // Matched - Processing
}
// other code
}
Please let me know in case there is something wrong.
Abhijeet Jadhav
|
|
|
|
|
abhi_code wrote:
if(::VarCmp(&clientVal, &serverVal, 0, NORM_IGNORECASE )!= VARCMP_EQ )
[...]
Try using LOCALE_SYSTEM_DEFAULT or LOCALE_USER_DEFAULT as the locale identifier:
if (::VarCmp(&clientVal, &serverVal, LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE )!= VARCMP_EQ )
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Okey..thanks a lot for your prompt reply.
i'll try with that.
Abhijeet Jadhav
|
|
|
|
|
How do i find out the list of usb cams connected to the PC without listing the scanners?
|
|
|
|
|
hiho@ll
i want to write an app which can iconify another application (should be independent what kind of application it is)
the problem:
i have a prog running the whole day
the prog itself can no the iconified to the systray
well, that's not correct
it is in the systray, but it is also in the task bar
so i don't want to see it in the taskbar because it just waits the whole day and does most of the time nothing (but it is needed!)
anybody knows how i can make the prog just sit in the systray?
|
|
|
|
|
This may help you[^]
"Success is the ability of going from one failure to another with no loss of enthusiasm" - W.Churchill
|
|
|
|
|
that was a great hint
but:
i made a prog as described in the tutorial
it worked great
now i tried to catch the HWND from a mouseclick to get the window for which i want invisible the task bar icon (the systray should be visible)
what i do:
catch the click
use WindowFromPoint to get the clicked window
create a new CWnd which is invisible
set the parent of the clicked window to the invisible window
well the whole window is invisible
hmm
don't realy know the problem/solution
what could be the problem?
anybody knows an answer?
thx
|
|
|
|
|
Search for the Shell_NotifyIcon() function.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
use_NIST_B_163 ();
EC_Domain_Parameters dp = NIST_B_163;
I write this two lines of code and get these errors
Linking...
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::~BigInt(void)" (??1BigInt@@QAE@XZ)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(class BigInt const &)" (??0BigInt@@QAE@ABV0@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_BigInt(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &,class BigInt &,int)" (?str_to_BigInt@@YAXABV?$basic_string@DU?$char
_traits@D@std@@V?$allocator@D@2@@std@@AAVBigInt@@H@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(void)" (??0BigInt@@QAE@XZ)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::~F2M(void)" (??1F2M@@QAE@XZ)
DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_F2M(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &,class F2M &)" (?str_to_F2M@@YAXABV?$basic_string@DU?$char_traits@D@std
@@V?$allocator@D@2@@std@@AAVF2M@@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::F2M(void)" (??0F2M@@QAE@XZ)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall EC_Domain_Parameters::put(class std::basic_ostream<char,struct std::char_traits<char=""> > &)const " (
?put@EC_Domain_Parameters@@UBEAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class Point & __thiscall Point::operator=(class Point const &)" (??4Point@@QAEAAV0@ABV0@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class BigInt & __thiscall BigInt::operator=(class BigInt const &)" (??4BigInt@@QAEAAV0@ABV0@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class F2M & __thiscall F2M::operator=(class F2M const &)" (??4F2M@@QAEAAV0@ABV0@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2X::~F2X(void)" (??1F2X@@QAE@XZ)
DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl setModulus(class F2X const &)" (?setModulus@@YAXABVF2X@@@Z)
DSProjDlg.obj : error LNK2001: unresolved external symbol "class F2X __cdecl Pentanomial(unsigned short,unsigned short,unsigned short,unsigned short,unsigned short)" (?Pentanomial@@YA?AVF2X@@GGGGG@Z)
Debug/DSProj.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
/////
I cant likn a library..I done all the steps according to the library manual but it doesnt help...can anyone tell me step by step how to link borZoi-1.0.2 to my VC project
|
|
|
|
|
titi@yahoo wrote:
I write this two lines of code and get these errors
If you remove them, do the linker errors persist?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|