|
To get them to talk you have to change the firewall on the server side to forward a port to the server machine-- how you do this depends on your firewall.
|
|
|
|
|
Why this error comes?. is there any remedy for this?. can my application get relief from it, if i download VC6 service pack?.
ComputerNewton
|
|
|
|
|
You need to install the unicode version of your MFC lib which by default not set in your stardard installation.
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
hello all,
As mentioned in the MSDN, i had added "Shlwapi.h" and a library link "Shlwapi.lib". but the problem is that still my application is giving an error informing about the declaration of UrlEscape(...)
Error : UrlEscape undeclared identifier
how shall i fix this bug.
ComputerNewton
|
|
|
|
|
do you have platform sdk installed ?
greatest thing is to do wot others think you cant suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
ohhh i dont know that i am simply using MFC Applications. how shall i install that?.
what ever the application i am using that is MFC based application in that i got this error. for this type of applications too i need platform SDK?. where shall i get the platform SDK.
ComputerNewton
|
|
|
|
|
|
Hi NewtonOfComputers, instead of statically linking to shlwapi.lib , you should consider dynamic linking instead, because UrlEscape function was introduced in version 5.00 of shlwapi.dll so it requires Windows 98 (or Windows 95 with Internet Explorer 5.0 or later) in your system. To make your code compatible with all Windows versions, do something like this:
#ifdef _UNICODE
#define szURLESCAPEFUNC _T("UrlEscapeW")
typedef LWSTDAPI (*URLESCAPEFUNC)(LPCWSTR, LPWSTR, LPDWORD, DWORD);
#else
#define szURLESCAPEFUNC _T("UrlEscapeA")
typedef LWSTDAPI (*URLESCAPEFUNC)(LPCSTR, LPSTR, LPDWORD, DWORD);
#endif
HMODULE hModShlwapi = LoadLibrary(_T("shlwapi.dll"));
if (hModShlwapi != NULL)
{
URLESCAPEFUNC pUrlEscFunc = (URLESCAPEFUNC)GetProcAddress(hModShlwapi, szURLESCAPEFUNC);
if (pUrlEscFunc != NULL)
{
(*pUrlEscFunc)(...);
}
FreeLibrary(hModShlwapi);
}
Gurmeet S. Kochar If you believe in God, it's because of the Devil
My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|
|
hello all,
As i am trying to add a toolbar to InternetExplorer from VC++ applications, i had downloaded the said component kbbar.exe from
http://support.microsoft.com/support/ kb/articles/Q246/2/34.ASP
But this file is giving so many errors. How shall i overcome these errors.
ComputerNewton
|
|
|
|
|
Is it possible to make a dialog only enable to minimize from the System menu?
.....and justice for all
APe
|
|
|
|
|
yes we can do that. for that u need to control the system menu. first get the handle of System Menu and start working as we used do in case of general menus concept.
ComputerNewton
|
|
|
|
|
Any tip how to get that handle?
.....and justice for all
APe
|
|
|
|
|
Found!!
GetSystemMenu(...)
.....and justice for all
APe
|
|
|
|
|
GetSystemMenu() is an API through which u can get the handle.
ComputerNewton
|
|
|
|
|
Hi
Can someone please help me with this.
Given the following->
Write a function called Copy, witch takes two parameters
of type string. The first par is your Source(string to be copied) second is your Dest string(target) this function need not return anything(NOT ALLOWED TO USE strcpy)
I need to show how i would use this function(call) by writing code that copy one string into another.
A deep copy should take place not Shallow.
How can i implement the following in my function
clear, erase, resize, append and index operator.
How does the following piece of code look?
#include <iostream><br />
#include <string><br />
<br />
<br />
using namespace std;<br />
<br />
void Copy(string * Source, string * Destination);
<br />
int main()<br />
{<br />
string Source = "Robile";<br />
string Destination = "Lance";<br />
Source.append(Destination);<br />
<br />
Copy(&Source , &Destination);<br />
<br />
}<br />
void Copy(string * Source, string * Destination)<br />
{<br />
cout << "Destination String Now is " << *Destination << "\n";<br />
}
Not asking for complete code just tips on what to do and
howto(Correction of code above)
Thanks in advance
|
|
|
|
|
what do you want to know ?
how to write member functions ?
other thing, don't you prefer operator=() instead of Copy() ??
TOXCCT >>> GEII power
|
|
|
|
|
firstly how to write a function prototype that does
a deep copy (not a copy of the values only).
Secondly how would i write a member function from your
perspective.
What is the deference between operator=() and Copy()?
The code above compiles but is it the write way to do it
taking what i have stated in my thread in to mind?
|
|
|
|
|
bhangie wrote:
...a function prototype that does
a deep copy
I've never seen the adjective "deep" used with "copy." What does it mean?
bhangie wrote:
What is the deference between operator=() and Copy()?
Fundamentally, nothing. It's all a matter of how you want to use it. Which of these looks more natural:
Object a, b;
a.Copy(b);
a = b;
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi Everybody,
Im a novice in vc++. i want to create a MFC application that can open a powerpoint presentation and saves the slides as images, can anybody help me.
Thank You,
kedar
|
|
|
|
|
I am also in search of the same...
|
|
|
|
|
My service application(multithreaded) implemented with dundas's CU_Service stops when checked for dependensies from SCM.
and also sometimes when trying to start through command "net start my_service"
this time it gives msg
>The service did not report an error.
>More help is available by typing NET HELPMSG 3534.
im trying to find out this error two days and no luck yet.
please help me...
thanks in advance
|
|
|
|
|
can you paste the CU_Service's control handler function here..
greatest thing is to do wot others think you cant suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
hi suhredayan here is it
<br />
{<br />
DWORD currentState = 0;<br />
<br />
switch(controlCode){<br />
<br />
case SERVICE_CONTROL_STOP:<br />
<br />
currentState = SERVICE_STOP_PENDING;<br />
<br />
CUServ->SCMStatus(currentState,NO_ERROR, 0, 1, CUServ->m_StopTimeOut);<br />
<br />
CUServ->OnStopService();<br />
return;<br />
<br />
case SERVICE_CONTROL_PAUSE:<br />
<br />
if (CUServ->m_RunningService && ! CUServ->m_PauseService){<br />
<br />
currentState = SERVICE_PAUSED;<br />
<br />
CUServ->SCMStatus(SERVICE_PAUSE_PENDING,NO_ERROR, 0, 1, CUServ->m_PauseTimeOut);<br />
CUServ->OnPauseService();<br />
}<br />
break;<br />
<br />
case SERVICE_CONTROL_CONTINUE:<br />
<br />
if (CUServ->m_RunningService && CUServ->m_PauseService){<br />
<br />
currentState = SERVICE_RUNNING;<br />
<br />
CUServ->SCMStatus(SERVICE_CONTINUE_PENDING,NO_ERROR, 0, 1, CUServ->m_ResumeTimeOut);<br />
CUServ->OnResumeService();<br />
}<br />
break;<br />
}<br />
<br />
CUServ->SCMStatus(currentState, NO_ERROR,0, 0, 0);<br />
}<br />
|
|
|
|
|
change the first line as
DWORD currentState = SERVICE_RUNNING;
greatest thing is to do wot others think you cant suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
That worked like a magic !!!
Thanks .
I cannot believe Dundas had such a basic error !!!
|
|
|
|