|
Hi
Thank you for the answer, the class declaration goes as follows.
*******************************
HttpSoapContext Class
HttpSoapContext Members | Microsoft.Web.Services Namespace
Requirements
Namespace: Microsoft.Web.Services
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Microsoft.Web.Services (in Microsoft.Web.Services.dll)
Provides access to the SoapContext associated with a SOAP request and SOAP response for XML Web services created using ASP.NET. This class cannot be inherited.
For a list of all members of this type, see HttpSoapContext Members.
System.Object
Microsoft.Web.Services.HttpSoapContext
[C++]
public __gc __sealed class HttpSoapContext
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
The SoapContext provides access to the WS-Security, WS-Routing, and other XML Web services architecture-specific details associated with a SOAP message.
Use this class to gain access from within an XML Web service to the the SoapContext associated with a SOAP request through the static members RequestContext and ResponseContext.When an XML Web service method is a one-way method, an XML Web service cannot gain access to the SoapContext using the static members of this class. To gain access to the SoapContext for one-way methods, the class implementing the XML Web service should inherit from System.Web.Services.WebService and add code within the one-way method to get the Context property.
Requirements
Namespace: Microsoft.Web.Services
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Microsoft.Web.Services (in Microsoft.Web.Services.dll)
********************************
Regards
Daniel
|
|
|
|
|
This is the class documentation, not the declaration. A class's declaration is usually kept in a .H file.
|
|
|
|
|
Hi
Hmm.. I can´t find the declaration on my computer, is it possible? It´s under the namespace Microsoft.Web.Services imported from the dll with the same name.
How do I proceed?
// Daniel
|
|
|
|
|
Oh well. I just wanted to see the available constructors. Is HttpSoapContext a C# thing?
|
|
|
|
|
I guess so, but it has a "C++ definition" since
[Visual Basic]
NotInheritable Public Class HttpSoapContext
[C#]
public sealed class HttpSoapContext
[C++]
public __gc __sealed class HttpSoapContext
[JScript]
public class HttpSoapContext
... hence it should be supported in c++ also.
Is there a problem that the class is sealed? I haven´t had any problem with other conversions from C# into C++ when I have worked with web services.
Regards
Daniel
|
|
|
|
|
adaoja wrote:
Is there a problem that the class is sealed?
It just means that it can't be a base class. Other than that, I do not know.
Regardless, it sounds like you need to supply some parameters during construction of the object.
|
|
|
|
|
For starters, it should say
hsc = new HttpSoapContext();
Other than that, HttpSoapContext obviously needs something passed into it's constructor, there's no constructor that takes no parameters. You may or may not have worked that out from the prior response. The other possibility is that HttpSoapContext is a class in the .NET framework, unless you're using Managed C++, there is no guarentee this class even *exists* in the C++ framework you're using.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Are the brackets mandatory for the default ctor then, or are you just hammering home the point?
I know in the past I've done things like
ps = new CString;
without complaint/problems at runtime*
Steve S
*DEVELOPER101: Just because it compiles, that doesn't mean it will work.
|
|
|
|
|
Hi
Thank you both for the answer, I have previously tried both with and without the brackets.
It´s a sealed class, does that make any difference? I have copied the class declaration in a reply above.
Regards
Daniel
|
|
|
|
|
Christian Graus wrote:
For starters, it should say
hsc = new HttpSoapContext();
hsc = new HttpSoapContext(); and hsc = new HttpSoapContext; are identical. They both call the default constructor.
|
|
|
|
|
Under Windows 2000, you type "net send %computername% 12345" in Command Prompt. This will create a Messagebox titled "Messagener service". I can not log the message of this window. Nothing will display. Why? the process of this window is "CSRSS", which is a kernal process I believe, Is that the reason I can see its message?
What I want to do is send message to this window to simulate a mouse click on the OK button.
SendMessage(hwnd, WM_COMMAND, 1, 0);
I tried SendMessage, PostMessage, PostThreadMessage and Send NotifyMessage, none of them work!
Please
|
|
|
|
|
That is curious. However, a quick test to send WM_GETFONT shows that the window is responding. What happens if you send a mouse click to the window's button? Or you could also try to send a WM_SETFONT to the window to see if it does anything.
HPS HwndSpy - GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
|
|
|
|
|
Has anyone come across any resources for doing a webcam application ala cuseeme style. I have seen a couple things on Codeproject but it's not quite what I'm looking for.
Thanks!
|
|
|
|
|
So what are you looking for that you haven't found? Most webcams require use of Video for Windows, which is somewhat difficult. You might look at Microsoft's Vision SDK.
HPS HwndSpy - GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
|
|
|
|
|
I made a class to manage a list of connections to my server, u can call AddConnection and RemoveConnection to add or remove a connection given the socket handle and/or thread handle.
This is the struct that contains all the data for each connection so far:
struct ClientConnection
{
HANDLE hThread;
SOCKET s;
ClientConnection(): hThread(NULL),s(INVALID_SOCKET)
{
}
~ClientConnection()
{
}
};
then i define a type like this:
typedef list <ClientConnection*> CL;
typedef CL::iterator CLI;
and declare a new private variable in my class like this:
CL cl;
Now the code to remove a connection from the list is this:
void ConnectionManager::RemoveConnection(SOCKET _sd)
{
CLI cli;
for ( cli = cl.begin(); cli != cl.end(); ++ cli )
{
if((*cli)->s==_sd)
{
cl.erase(cli);
}
}
}
But for some reason the program crashes when it tries to erase the entry in the list... And i dont know why, if i just delete it, then it works fine but then the entry isnt actually gone. How do i get rid of the entry??? so that for example if i have 3 connections and i remove the 2nd, the 3'rd one will take the seconds place in the list?..
Thanks
Kuniva
--------------------------------------------
|
|
|
|
|
nvm i found the solution by pure luck
shows me i shouldn't come running here too quickly :P
Kuniva
--------------------------------------------
|
|
|
|
|
|
yup lol, sorry its just how i'm used to saying it from the game i play.
Kuniva
--------------------------------------------
|
|
|
|
|
Can any one tell me this:
there are rules for the IDR_MANIFEST and IDR_MAINFRAME , correct?
this resources must have a particular value?
normally there are ID,IDI,IDC,IDD,IDR,IDS,IDB...
can they have sequential values or they have to be divided in ranges?
which type of resources corresponds to each one of this macros?
_APS_NEXT_RESOURCE_VALUE
_APS_NEXT_COMMAND_VALUE
_APS_NEXT_CONTROL_VALUE
_APS_NEXT_SYMED_VALUE
I know that there are resource renumber tools out there, but ...
MSN:maxsnts@hotmail.com
|
|
|
|
|
1. No, not really, although IDR_MAINFRAME is normally 100, and will "just happen" to be the lowest numbered ICON resource too, so that your app has that as it's default icon.
IDR_MANIFEST applies to VC7 and up, and I don't have that here, so can't remember.
2. The ids can be almost any value, but there are some SDK imposed limits, and MFC specifies others. Check out the TNxxxx docs in the user guide which explains these.
3. CONTROL = dialog control
COMMAND = menu item/toolbar button
RESOURCE = icon/bitmap/menu
Generally speaking I tend to allocate ranges for different parts of a project, and then manually override the values anyway.
Steve S
|
|
|
|
|
Steve S wrote:
Generally speaking I tend to allocate ranges for different parts of a project, and then manually override the values anyway.
WOW! I have think of that to , but in a big project that will become a very big task
MSN:maxsnts@hotmail.com
|
|
|
|
|
Hi,
I'm exporting this class form a dll:
#ifndef _DLL_H_ <br />
#define _DLL_H_ <br />
<br />
#if BUILDING_DLL <br />
# define DLLIMPORT __declspec (dllexport) <br />
#else /* Not BUILDING_DLL */ <br />
# define DLLIMPORT __declspec (dllimport) <br />
#endif /* Not BUILDING_DLL */ <br />
<br />
<br />
class DLLIMPORT AES <br />
{ <br />
public: <br />
AES(); <br />
virtual ~AES(void); <br />
<br />
private: <br />
<br />
}; <br />
#endif /* _DLL_H_ */ <br />
and this is the programm, that uses this dll:
#include <iostream> <br />
#include <stdlib.h> <br />
#include "..\AES\dll.h" <br />
<br />
using namespace std; <br />
<br />
int main(int argc, char *argv[]) <br />
{ <br />
HMODULE AESLibary = LoadLibrary("../AES/AES.dll"); <br />
if (AESLibary) <br />
printf("AES.DLL found!\r\n"); <br />
else <br />
printf("AES.DLL not found!\r\n"); <br />
<br />
<br />
AES myAES; <br />
<br />
system("PAUSE"); <br />
return 0; <br />
} <br />
but everytime I compile this program I get these errors:
[Linker error] undefined reference to `AES::AES()' <br />
[Linker error] undefined reference to `AES::~AES()' <br />
(generating the .dll file is no problem...)
can anybody tell me why?
thx
CND
|
|
|
|
|
You can not use dynamic loading (LoadLibrary) in this manner. For this statement
AES myAES; to work you must statically link with the .lib file that is produced with the DLL.
John
|
|
|
|
|
ok, but so I which manner can I use DLLs?
Is it possible to load dynamicly a class.
so to use IDEA.DLL if the user selects this DLL and AES.DLL if he selects this one.
This I important for me, because, I want to add crypto algorithms step by step, like plugins...
|
|
|
|
|
Check DelayLoad if want to do that...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|