|
hi
I am having a problem in Calling Web Service through ATL with MFC support project.
I have created this project but not bale to call.
I used the Soap tool kit which helps to give call to Web service but not successful.
Is there any method by which we can give call to WebService.
Waiting fo the reply.
cheers
Ganesh
|
|
|
|
|
Hi
Is ATL window programming widely used? Or MFC is still the first choice in window programming, then followed by the new WTL?
thx
|
|
|
|
|
I would be shocked if there is anything but a very small group of people doing large scale application development with just ATL. Application with WTL is much more common, but I would still say rare when compared to MFC.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
In the UK we do occasionally see job ads which specify experience with WTL. In fact I once had an application rejected because I said I didn't know WTL. As I could satisfy 10 out of the 11 requirements I didn't think WTL would be taken as a deciding factor. But then this was at the bottom of the downturn when employers were even fussier than they are now.
Kevin
|
|
|
|
|
|
Hello...
I like to support custom text printing in my application (without an edit control)...
The wtl examples that i found at codeproject only support text printing with edit controls...
I implemented the CPrintJobInfo class but unfortunely when it draw the text to the dc (in the PrintPage method) it only print the first drawing operation...
For example .:
bool CMainFrame::PrintPage(UINT nPage, HDC hDC)
{
CDCHandle dc = hDC;
CString text = _T("A Test");
dc.TextOut(0,0,text,text.GetLength()); // This text is only visible on page
dc.TextOut(0,20,text,text.GetLength());
dc.TextOut(0,40,text,text.GetLength());
return true;
}
I hope anybody can help me ...
|
|
|
|
|
Ehmmm... I have found the bug or better my own mistake...
I forget the different resolutions between the screen and printer dc...
The distance between the 3 strings was to small to see them completly...
For example.:
dc.TextOut(0,0,text,text.GetLength());
dc.TextOut(0,400,text,text.GetLength());
dc.TextOut(0,800,text,text.GetLength());
woks...
|
|
|
|
|
I am working on MCSE certifications. I also plan to take the network+ test offered by CompTIA. Is it necessary or beneficial for me? Where can I find the best training resources for this exam? Can anybody tell? Now there is 30% discount offer by uCertify on new exam N10-003. Tell me more about discount offer.
Alisia
|
|
|
|
|
you registered codeproject for that ??
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
my server application(in this case chat) crashes a firewall on XP but not in 98 .
i wan to run it in XP. What shall i do????
C U SOON
|
|
|
|
|
Hi,
sorry if this has been asked before, but i read the two articles on COM Addins for Outlook 2000/2003:
http://www.codeproject.com/com/outlookaddin.asp[^]
http://www.codeproject.com/atl/outlook2k3addin.asp[^]
and have to implement an Addin for Outlook 2003.
Seemingly, i have not been able to create the Addin properly, as i experienced the following problem:
When it comes to importing the Office & Outlook typelibraries i face the problem of not knowing which DLLs are appropriate.
You know, the articles use Outlook 2000 DLLs, even the one on Outlook 2003...
<br />
#import "C:\Program Files\Microsoft Office\Office\mso9.dll" \<br />
rename_namespace("Office") named_guids <br />
using namespace Office;<br />
<br />
#import "C:\Program Files\Microsoft Office\Office\MSOUTL9.olb" <br />
rename_namespace("Outlook"), raw_interfaces_only, named_guids <br />
using namespace Outlook;<br />
I manage to find the second file, the appropriate *.olb file, but not the also needed MSOXXX.dll file of my Office installation, as the dll is renamed in Office 2003.
I tried several DLLs in the directory, but none has worked as i get a failure when i build the project (in MS Visual C++ 6.0).
Any ideas?
Regards,
Harry
|
|
|
|
|
Use the following files
#import "E:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\\mso.dll" \
rename_namespace("Office") named_guids
using namespace Office;
#import "E:\\Program Files\\Microsoft Office\\OFFICE11\\msoutl.olb" \
rename_namespace("Outlook"), raw_interfaces_only, named_guids
using namespace Outlook;
cheers
Ganesh
ganesh.takawle@solversa.com
|
|
|
|
|
I have build an activeX controller in ATL VC++ that uses a window and shows camera captured frames, it works well in VisualC environment.
In Visual Basic 6, however, When I tried to integrate the control into a project, it was loaded ok but when I tried to save or run the project, I got a system Error
&H80004005 (-2147467259).
When I tried the same under .net environment, this problem didn't appear.
DO you have any idea what can be the problem or how can I debug it ?
Thanks
Amos.A
|
|
|
|
|
Hi
Can some one help me. I need to make a window with multiple viewports like in 3DS MAX, using WTL. Each viewport must be rendered with OpenGL.
|
|
|
|
|
Hi,
I want to use the string argument in switch case statement. Can you please give some sample program.
Thanks
|
|
|
|
|
itkid wrote:
I want to use the string argument in switch case statement.
Not possible in C and C++.
|
|
|
|
|
switch only works with integer types (char, short, int, long)...
to use strings, replace the switch with if... :
CString str;
ReadString(str);
ASSERT(!str && !str.GetLength());
<font color=blue>if</font> (!strcmp(str, <font color=gray>"string1"</font>)) { <font color=green>
<font color=green>
}
<font color=blue>else if</font> (!strcmp(str, <font color=gray>"string2"</font>)) { <font color=green>
<font color=green>
}
<font color=blue>else</font> { <font color=green>
<font color=green>
}
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
description:
I made a dll(ATL-base) that recognize the text "Hello" when I click the mouse right button on the Internet Explorer.
I already add a my menu to context menu. If I select it something happen.
my goal:
Now I want to modify my .dll to recognize the mouse left button.
I need the mothod OnClick event.
So I'm reading the Internet Explorer 5(MS).
In "Sinking Events for DHTML Objects in visual C++" on this book(Thanx to Douglas Troy he recommended the section ),
I want to modify the OnDblClick event to OnClick.
the problem:
class CMfcObjMdlDlg;
class CHTMLDocEvents : public CCmdTarget
{
DECLARE_DYNCREATE(CHTMLDocEvents)
.
.
.
I need to use CCmdTarget ....
It is MFC way. I have to change my dll(ATL-base) to MFC I think.
So I found a reference about that(http://support.microsoft.com/default.aspx?scid=kb;en-us;173974#XSLTH3125121122120121120120[^].
I already applied this method in my .dll.
But failed.. haha(-_-)a
I don't understand some description what it saying..
:::section5:::...entry point is set to wWinMainCRTStartup in the Output category of the Link field in the...
What is wWinMainCRTStartup ?
How do I have to modify and to apply?
:::section4::: what is meaning of _tWinMain function with the following...
I coudln't understand _tWinMain function .
:::section6:::function of a COM interface, window procedure, and exported function
I have to apply the AFX_MANAGE_STATE(AfxGetAppModuleState());.
I found exported function by dumpbin.exe.
What is another thing such as COM interface, window procedure?
please reply to my question~
|
|
|
|
|
When I applied the method of MSDN there was so many errors like atl_cstringex.h(17) : error C2872: 'CString' : ambiguous symbol.
How to change it?
|
|
|
|
|
Just to point you in what may be a better direction....you can sink DHTML events in ATL - you don't have to use MFC...
Here's an fragment of an ATL class implementing event sinks....it actually instantiates the IE control and then handles events in the methods OnMouseOut and OnMouseOver.
class CBrowserView : public CWindowImpl<CBrowserView, CAxWindow>,
public IDispEventImpl<1, CBrowserView, &DIID_HTMLElementEvents2, &LIBID_MSHTML, 4, 0>
{
public:
typedef IDispEventImpl<1, CBrowserView, &DIID_HTMLElementEvents2, &LIBID_MSHTML, 4, 0> HTMLElementEventsSink;
BEGIN_SINK_MAP(CBrowserView)
SINK_ENTRY_EX(1, DIID_HTMLElementEvents2, DISPID_HTMLELEMENTEVENTS_ONMOUSEOVER, OnMouseOver)
SINK_ENTRY_EX(1, DIID_HTMLElementEvents2, DISPID_HTMLELEMENTEVENTS_ONMOUSEOUT, OnMouseOut)
END_SINK_MAP()
void __stdcall OnMouseOver(IHTMLEventObj* pEvent);
void __stdcall OnMouseOut(IHTMLEventObj* pEvent);
};
You need to call HTMLElementEventsSink::DispEventAdvise to register your event sink and HTMLElementEventsSink::DispEventUnadvise to unregister your event sink. You pass these functions a parameter, which is the IUnknown pointer of the object whose events you want to handle.
Anyway - hope that helps...
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
sorry to reply lately.
I've just seen your answer.
Thank you for your knowledge
It might be good to try on my program right now!
|
|
|
|
|
i am writting a socket program in WTL.but i find no socket in WTL,
so I make a MFC dll .but it run in error.why?
|
|
|
|
|
I have a .dll that i am writing and cannot use standard MFC classes such as CString to parse a blob of data. So i am using std::string but i have never used this before and am so confused. I need to search a string for a key word. Once i find the keyword, i have to parse the data afterwards to pick out the necessary data that i need.
I am using the find method but just stuck and confused to accomplish my goal. Can anyone offer some examples or help? E.g.
If i have a string that looks like
xxxcdfdftbvbfggbnghghg Name: Todd Shields ccfgfgnfgnrri DOB:091580 hgertrtreggeegegggggggggggg
But i want to get the name and the DOB. There is no standard in terms of how much space is allocated for name or DOB. I just have to find it and get the name and DOB from the string.
Any input is appreciated.
|
|
|
|
|
LCI wrote:
So i am using std::string but i have never used this before and am so confused
This is one good reason to prefer the standard library, you'll know it when you need it
What you really need is regex, I wonder if you're able to use the regex implimentation that boost offers ?
Otherwise :
string s = "xxxcdfdftbvbfggbnghghg Name: Todd Shields ccfgfgnfgnrri DOB:091580 hgertrtreggeegegggggggggggg";<br />
<br />
size_t n = s.find_first_of("Name : ") + 7;
size_t nLast = s.find_first_of(" ", n);<br />
nLast = s.find_first_of(" ", nLast + 1);
<br />
string name = s.substr(n, nLast - n);
This is REALLY fragile. Ideally, you'd know the string that comes after ( ccfgfgnfgnrri in this case ), so you can search for the item AFTER the name, instead of having to count on there being a certain number of whitespace chars IN the name. The date is obviously easier, but either way, CString wouldn't help much, regex is the real way to deal with this.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
This is REALLY fragile. Ideally, you'd know the string that comes after ( ccfgfgnfgnrri in this case ), so you can search for the item AFTER the name, instead of having to count on there being a certain number of whitespace chars IN the name. The date is obviously easier, but either way, CString wouldn't help much, regex is the real way to deal with this.
It looks like the string actually contains key-value pairs. In that case he'd know the next token. BTW, find_first_of, substring, ... are regular expressions translated to human-readable form.
|
|
|
|
|