|
Wrong forum. Please try VC++ forum to get quicker answer to this.
S o h a i l K a d i w a l a
To Err Is Human; to Debug, Divine
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hey All,
A very happy new year to you all. I am working on GoF design patterns. I want to know if it is feasible or possible to make a library like STL for design patterns using .net Generics? If there are some existing projects like this can someone please send me links to it?
thanks
RB
|
|
|
|
|
I'm not clear what you are asking. What have GoF design patterns got to do with generics? Or are you asking whether there is something similar to STL (i.e., algorithms and containers) but for .NET generics?
Kevin
|
|
|
|
|
Hi All,
I need to learn about ATL from the basic.Anyone can tell me the good tutorial for ATL.
Thankx in advance..
|
|
|
|
|
This[^] yielded a lot of hits...
|
|
|
|
|
ab_wahab wrote: ttp://rapidshare.de/files/14816390/Wordware_.Developers.Workshop.to.COM.and.ATL.3.0._2000_.LiB.rar.html
you can be in deep trouble dude!
"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
Support CRY- Child Relief and you
|
|
|
|
|
VC6.0 IDE has message-map Wizard to help us add ATL-style Message handle Macros .Like "MESSAGE_HANDLER()" etc .
Is there any tool to help me add WTL-style Macros likes "MSG_WM_CREATE()" ?
(my current WTL version in use is WTL 7.0 under VC6.0)
thanks !
|
|
|
|
|
There's a plugin here at CP called WTL Helper, but IIRC it's only for VC7. I don't know of anything for VC6, but I haven't looked that much either. I've memorized the most common MSG_WM_* macros by now.
|
|
|
|
|
Michael Dunn wrote: I've memorized the most common MSG_WM_* macros by now
LOL
|
|
|
|
|
how to upload 1gb data through mail in code behind using .net using C#
|
|
|
|
|
Hi Kalyankasula,
PJ Naughter has a SMTP mailer class on the site. Others have similar code.
I'm not aware of any mail server that will accept an email message that large. From my networking experience, a moderate limit is placed on the size of incoming messages. For example Exchange 2000 and 2003. An administrator must specifically raise the limit.
Just in case this is for an email bomb, you'll have to look the limits up yourself.
Jeff
|
|
|
|
|
what is the difference btn callback() and Ispostback()
|
|
|
|
|
Wrong forum.
|
|
|
|
|
Hi again,
I discovered a new problem and I have to share this with you as I can't solve this on my own...
My Browser Helper Object creates a window (inherits from CDialogImpl). I've managed to position this window in the lower right corner of Internet Explorer but the problem is that whenever the user resizes or moves Internet Explorer, my window stays put. I would like to move my little window as the parent window (IE) moves.
How can my window react upon move/resize messages from the parent window (IE)?
BTW: My window steals the focus once it's displayed, how can I give the focus back to IE?
All help is grea... well, you know I love you guys!
/T
|
|
|
|
|
Tommy Svensson wrote: BTW: My window steals the focus once it's displayed, how can I give the focus back to IE?
I can answer this part of your qestion.
Get handle to browser, as stated in last reply. And use SendMessage.
i.e.
SendMessage(hWnd,WM_SETFOCUS,0,0);
|
|
|
|
|
Thx Prasad, the latter part now solved! Thx.
Still, this question remains unanswered:
My Browser Helper Object creates a window (inherits from CDialogImpl). I've managed to position this window in the lower right corner of Internet Explorer but the problem is that whenever the user resizes or moves Internet Explorer, my window stays put. I would like to move my little window as the parent window (IE) moves.
How can my window react upon move/resize messages from the parent window (IE)?
/Tommy
|
|
|
|
|
Tommy Svensson wrote: How can my window react upon move/resize messages from the parent window (IE)?
If you manage to get a handle to IE's main window (a HWND), then you have the alternative to subclass that window, and trap relevant messages.
Please have a look at CContainedWindowT<Tbase, TWinTraits>, ALT_MSG_MAP(), and Subclass().
Here's the pseudo code:
class YourControl {
...
CContainedWindow m_wndIE;
BEGIN_MSG_MAP(YourControl)
...
ALT_MSG_MAP(1)
MESSAGE_HANDLER(WM_SIZE, OnIESize)
END_MSG_MAP()
};
YourControl::YourControl() : m_wndIE(this, 1 Unless IE is doing something totally radical, this approach should work. I'm assuming that IEs message pump is the same thread as your control. If it's not, well, then I'm not so sure that it'll work.. Lycka till!
--
Verletzen zerfetzen zersetzen zerstören
Doch es darf nicht mir gehören
Ich muss zerstören
|
|
|
|
|
Hi all,
I have developed a Browser Helper Object (Internet Explorer) and I have smart pointers to my html document, my web browser and so on. Is there any way I can find out if the current document/webpage has any visible scrollbars (horz/vert)?
/Tommy
|
|
|
|
|
You can get handle to main window by using IWebBrowser2::get_HWND .
I could not find API to get visibilty of scrollbars.
But, see if using this handle , you can find the way out.
ie. By using API's like GetScrollInfo using handle you got.
|
|
|
|
|
I need to implement a GUI which has two panes with some draggable line between them that resizes both of them accordingly, like the one in windows explorer between the 'folders' and 'contents'.
It would be best if this would blend in with a dialog-resize class (something that accepts several resize rules and when the dialog resizes makes sure everything is resized like you want). I'm currently using WTL's CDialogResize for this, but it lacks the ability to define scale by percentages.
thanks for your time
|
|
|
|
|
|
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction:
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request,HttpResponse response, Boolean& abortProcessing)
this code is written in VC++6.0 using the ATL COM
i am using the saop toolkit 2.0 and also have installed MS XML 4.0 and soap 3.0. soanyone can help me in this matter
thanks
|
|
|
|
|
what i understand from the error message is the web service is written using .NET framework.
if that's true,i used to get similar errors when i recompile web service and forget to update web references of the client.
if you already tried that,can you please pass the client code that is giving the error?i've not experienced c++ with web services before,but i think everyone'll want to see the code first
|
|
|
|
|
ISoapSerializerPtr Serializer;
ISoapReaderPtr Reader;
ISoapConnectorPtr Connector;
Connector.CreateInstance(__uuidof(HttpConnector));
Connector->Property["EndPointURL"] = "Address of the webservice";
Connector->Property["SoapAction"] = "WebServices name";
Connector->BeginMessage();
Serializer.CreateInstance(__uuidof(SoapSerializer));
Serializer->Init(_variant_t((IUnknown*)Connector->InputStream));
Serializer->startEnvelope("","http://schemas.xmlsoap.org/soap/encoding/","");
Serializer->startBody("");
Serializer->startElement("Get_Account_Status", "WebServices Name", "","SOAP");
so here is the code the XML Serivice is made in the ASP.net and i am accessing this in VC6.0
i have installed the MSXML4.0 and soap toolkit 2.0 and 3.0
i hope now you can help me thanks
regards salman
|
|
|
|
|
Hi everyone,
I have a project with a menu on it and it notifies me by WM_MENUCOMMAND message.I had to do so,because my menu is dynamically created with values read from registry.Anyway,what I'm doing is theorically easy.This is the code for the WM_MENUCOMMAND event handler:
HMENU menu = (HMENU)lParam;<br />
if (m_SystemVersionInfo.dwMajorVersion <= 4)
index = (int)(wParam >> 16);<br />
else<br />
index = (int)wParam;<br />
int nItems = GetMenuItemCount(menu);<br />
<br />
if (index == nItems - 1)
{<br />
}<br />
else<br />
{<br />
}
the code works fine on Win2K/XP but nItems shows -1 on Win98.the strange thing is GetLastError returns nothing.MSDN says you can not trust GetLastError on Win98 either,so I didn't bother to look up the eroor code (I am unable to debug on Win98).
What could make GetMenuItemCount return -1 only on Win98?
|
|
|
|