|
Sorry, I forgot to paste the stack trace
MFC42U! 76ff82d1()
MFC42U! 76ff850f()
AfxWndProcDllStatic(HWND__ * 0x002106da, unsigned int 0x00000002, unsigned int 0x00000000, long 0x00000000) line 57 + 21 bytes
USER32! 77e3a3d0()
USER32! 77e14750()
USER32! 77e155b0()
NTDLL! 77f9ff57()
CProcessor::StartProcess(CProcessor * const 0x04d737dc, int 0x00000001, int 0x04a136f8, unsigned short * 0x00000001, long * 0x00109248) line 84
CDataXConsole::PerformProcessing(int 0x00000001, unsigned short * 0x051836c0, ATL::CComPtr<iprocessor> {0x04d737dc}) line 383
CDataXConsole::InitiateProcessing(int 0x00000001, unsigned short * 0x051836c0, ATL::CComPtr<itranslator> {0x04df8dc8}, ATL::CComPtr<iprocessor> {0x04d737dc}) line 211 + 34 bytes
CDataXConsole::Run(CDataXConsole * const 0x04de68d8, tagVARIANT * 0x01cd3044 {VT_EMPTY}) line 57 + 66 bytes
OLEAUT32! 779d7d5d()
OLEAUT32! 77a2310e()
ATL::CComTypeInfoHolder::Invoke(IDispatch * 0x04de68d8, long 0x00000001, const _GUID & {00000000-0000-0000-0000-000000000000}, unsigned long 0x00000409, unsigned short 0x0001, tagDISPPARAMS * 0x001094a8, tagVARIANT * 0x00000000 {???}, tagEXCEPINFO * 0x001094b8, unsigned int * 0x001094f0) line 3276 + 47 bytes
ATL::IDispatchImpl<idataxconsole,&iid_idataxconsole,&libid_dxoconsolelib,1,0,atl::ccomtypeinfoholder>::Invoke(ATL::IDispatchImpl<idataxconsole,&iid_idataxconsole,&libid_dxoconsolelib,1,0,atl::ccomtypeinfoholder> * const 0x04de68d8, long 0x00000001, const _GUID & {00000000-0000-0000-0000-000000000000}, unsigned long 0x00000409, unsigned short 0x0001, tagDISPPARAMS * ...) line 4041
JSCRIPT! 6b71fd43()
|
|
|
|
|
I'm not an MFC guru in any way, but something that I've picked up from other threads, is that if an function within an MFC DLL is called, one's supposed to call AFX_MANAGE_STATE() first inside the function.
--
An eye for an eye will only make the world blind.
|
|
|
|
|
Hello everybody,
I am developing a Browser Help Object in IE and encounter some problems:
- Get data sent by POST method from an URL.
- Send data to an URL by POST method.
How can we accomplish that? Do you have any idea?
Thanks.
Lan hue sau ai lan hue heo
Lan hue sau doi trong heo ngoai tuoi
|
|
|
|
|
I have a Class called CDriver which is as follows:
class CDriver {
public:
// Constructor
CDriver();
CDriver(CDriver &driver); // Copy constructor
CDriver operator =(const CDriver d);// Assign one to another
~CDriver();
// Varables
CString csFirstName;
CString csMI;
CString csLastName;
CString csBirthDate;
CString csASSN;
CString csStreetAddr;
CString csCity;
CString csState;
CString csZip;
CString csHomePhoneNum;
CString csHireDate;
CString csTruckAssigned;
};
Now I made a vector: "vector<<cdriver>> vecDriver"; Also a CString vector: "vector<<cstring>> myCStringvec"; and an iterator "vector<<cstring>>::iterator myIT";
None of these work properly! I can get the "myCStringvec.push_back(temCString)"; to accept one and only one CString. I NULLed temCString before reloading it with data then again used: "myCStringvec.push_back(temCString)"; to no avail. WHY?
vecDriver doesn't work at all nor does myIT. Please ignore the "<< and >>" it would not show what I wanted to show without using two each!
C++ is my favorite programming language
|
|
|
|
|
Shouldn't your copy constructor be declared with const CDriver& driver as a parameter?
I've used vector<cstring> before with no problems; what version of VC++ are you using, and which version of CString (WTL or ATL)?
Steve S
Developer for hire!
|
|
|
|
|
VC++ 6.0 verson. yes you are right about the copy constructor. I (the vector has the problem) have a problem with the CString(s) that make up CDriver data. This is my first project using the STL. I'm tring to do everything by the book "C++ from the Gound Up", H. Schildt.
In debug mode I check the loading of the CStrings and sometimes it will load correct (itself) and other times it only loads partially. The vector will only load oned CString using the push_back() method; even when I see in debug that the CString IS LOADED but the vector ignores the passing of the CSting the second time.
Any ideas?
Larry A Mills Sr
C++ is my favorite programming language
|
|
|
|
|
Does this fragment work OK?
std::vector<CString> temp;
temp.push_back(CString("ABC\n"));
temp.push_back(CString("DEF\n"));
temp.push_back(CString("GHI\n"));
std::vector<CString>::iterator it;
for(it = temp.begin(); it != temp.end(); ++it)
{
ATLTRACE((LPCTSTR)(*it));
}
Should print ABC,DEF,GHI on successive lines....
Steve S
Developer for hire!
|
|
|
|
|
Yes and no. I don't know what "ATLTRACE()" is; but if I change it to:
std::vector<CString> temp;
temp.push_back(CString("ABC\n"));
temp.push_back(CString("DEF\n"));
temp.push_back(CString("GHI\n"));
std::vector<CString>::iterator it;
for(it = temp.begin(); it != temp.end(); ++it)
{
cout << ((LPCTSTR)(*it));
}
This works!!!
C++ is my favorite programming language
|
|
|
|
|
Then the vector<CString> stuff is fine.
ATLTRACE, by the way, is like cerr << stuff but outputs to a debug window. It assumes you're using ATL, which generally, if you're using ATL explicitly, or WTL, you will be doing, and it also assumes you're running a debug version, with something like VS.NET or DebugWin catching the output.
Steve S
Developer for hire!
|
|
|
|
|
i had created a ATL DLL now i wants to call the dll in mfc project
i know 1 way-->
include .H file and >C which contain the IID and CLSID defination
is there any other better way to call the dll
virender
|
|
|
|
|
If ur dll is an automation compliant IDispatch implimented dll u can do the following:
Press Ctrl+W, goto class wizard --->Automation tab. Then click "Add Class" button. It will popup a file browse dialog. select the dll from there. Wizard will generate a class for ur COM CoClass.
1) Create an object fo that class class.
2) Call CreateDispatch method on that by passing the PROGID of ur class.
use the class object as a c++ class to make calls to its methods.
rgds...mil10
|
|
|
|
|
I have no problem compiling "normal" Win32 apps in either Release mode or Debug mode. However, whenever I compile a WTL app it compiles successfully in Release mode, but when I try to compile it in WTL mode I get the following two errors at link time:
Demo.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
Demo.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z)
This happens with every WTL project I try.
What's wrong ?
|
|
|
|
|
hello,
i use the ATl write a word2000 addin,and add a button into the word toolbars,and now i want to add a picture into the word document when i hit the button,this picture can be a bmp or jpeg.after i insert the picture i can drag it to a proper location.
i tried a long time,but in vain,who can help me?
|
|
|
|
|
Hi,
I am upgrading VC compiler on a windows machine from version 6.0 to 7.1
after upgrading when I tried to compile my application and got this error
\\Vc7\atlmfc\include\atlalloc.h(218) : error C2629: unexpected 'class ATL::CTempBuffer<t,t_nfixedbytes,allocator> ('
I was able to compile code on 6.0 version
Please tell me reason and solution for this problem.
Regards... Ankur
|
|
|
|
|
Hello!
I am new in ATL programming. I am trying to write a program where I need to pass a class pointer to one of the method inside the library. Class is written by me and the purpose is to store some data in a linked list. I am always getting next error:
c:\documents and settings\...\dblib.h(30): error MIDL2025 : syntax error : expecting a type specification near "class"
Some code:
this is an IDL file:
[id(3),helpstring("method LoadOptions")] HRESULT LoadOptions([out] class OptionList *op);
this file/line is generated by the compiler.
that how it looks in .h file:
[id(3), helpstring("method LoadOptions")] HRESULT LoadOptions([out] OptionList *op);
(Error in this line)
I have no idea how to correct the error. As I understood, the problem that I can pass only simple data type to the ATL method. Class is not so simple...
I read next article:
http://www.codeproject.com/atl/udtdemo.asp
Did not helped me a lot... I can not find any other information.
Any help appreciated.
Thank you!
|
|
|
|
|
Give the method definition as follows -
[id(3),helpstring("method LoadOptions")] HRESULT LoadOptions([out] DWORD *op);
Before passing in the class pointer, typecast it to DWORD* and inside the method typecast it back to the class pointer.
« Superman »
|
|
|
|
|
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]
|
|
|
|