Click here to Skip to main content
15,881,027 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Help with Error Pin
Jose Cruz8-Oct-02 6:23
Jose Cruz8-Oct-02 6:23 
GeneralRe: Help with Error Pin
Stephane Rodriguez.8-Oct-02 6:24
Stephane Rodriguez.8-Oct-02 6:24 
GeneralRe: Help with Error Pin
Michael Dunn8-Oct-02 19:10
sitebuilderMichael Dunn8-Oct-02 19:10 
GeneralRe: Help with Error Pin
Le centriste21-Oct-02 18:15
Le centriste21-Oct-02 18:15 
General<map>memory freeing issue Pin
fordge7-Oct-02 20:56
fordge7-Oct-02 20:56 
GeneralRe: <map>memory freeing issue Pin
Paul M Watt8-Oct-02 7:04
mentorPaul M Watt8-Oct-02 7:04 
GeneralRe: <map>memory freeing issue Pin
Todd Smith8-Oct-02 14:01
Todd Smith8-Oct-02 14:01 
GeneralATL Error: i386\chkesp.c (ADO) Pin
leonwoo7-Oct-02 19:35
leonwoo7-Oct-02 19:35 
Hi,
One problem solved another problem appears. THis time i encountered a problem that has no good explantion for it. I got an error when trying to open a connection to the ADO. The code that i have written is:

Code
try
{
//THROW_ERR( CoInitialize(NULL) );
THROW_ERR( CoCreateInstance(CLSID_CADOConnection, NULL, CLSCTX_INPROC_SERVER, IID_IADOConnection, (LPVOID*)&m_pConnection) );
THROW_ERR( m_pConnection->Open(m_bsDataSource, m_bsUserName, m_bsPassword, adOpenUnspecified) );
}
catch (HRESULT hr)
{
PopupErrorMessage(hr);
return FALSE;
}

I tried out the code in the debug mode and it stopped at the line where it calls the 'Open' function.

The error message is:
Program:C:\temp\project\project.exe
Module:
File:i386\chkesp.c
Line: 42

The Value of the ESP was not properly saved across function call. This us usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

I have included the 'adoid.h' and 'adoint.h' in the 'stdafx.h' file. I even included the 'adoid.lib' in my project setting. What is the root cause of this problem and how to solve it??

Need your help..
thanks in advance.



leonwoo
GeneralNeed help--> BSTR in ATL Pin
leonwoo6-Oct-02 22:29
leonwoo6-Oct-02 22:29 
GeneralRe: Need help--> BSTR in ATL Pin
Nick Parker7-Oct-02 2:00
protectorNick Parker7-Oct-02 2:00 
GeneralRe: Need help--> BSTR in ATL Pin
leonwoo7-Oct-02 15:57
leonwoo7-Oct-02 15:57 
GeneralRe: Need help--> BSTR in ATL Pin
Nick Parker8-Oct-02 3:19
protectorNick Parker8-Oct-02 3:19 
GeneralRe: Need help--> BSTR in ATL Pin
Michael Dunn7-Oct-02 4:35
sitebuilderMichael Dunn7-Oct-02 4:35 
GeneralRe: Need help--> BSTR in ATL Pin
Nick Parker7-Oct-02 8:01
protectorNick Parker7-Oct-02 8:01 
GeneralRe: Need help--> BSTR in ATL Pin
Michael Dunn7-Oct-02 8:13
sitebuilderMichael Dunn7-Oct-02 8:13 
GeneralRe: Need help--> BSTR in ATL Pin
Nick Parker7-Oct-02 8:37
protectorNick Parker7-Oct-02 8:37 
GeneralYou are great...... Pin
leonwoo7-Oct-02 14:43
leonwoo7-Oct-02 14:43 
GeneralDifference between ReleaseMinSize and ReleaseMinDependency Pin
ahsanjamal6-Oct-02 19:28
ahsanjamal6-Oct-02 19:28 
GeneralRe: Difference between ReleaseMinSize and ReleaseMinDependency Pin
Michael Dunn7-Oct-02 4:39
sitebuilderMichael Dunn7-Oct-02 4:39 
QuestionATL and Threads... where to start? Pin
LukeV4-Oct-02 11:04
LukeV4-Oct-02 11:04 
AnswerRe: ATL and Threads... where to start? Pin
Michael Dunn4-Oct-02 11:45
sitebuilderMichael Dunn4-Oct-02 11:45 
GeneralRe: ATL and Threads... where to start? Pin
LukeV7-Oct-02 3:21
LukeV7-Oct-02 3:21 
GeneralRe: ATL and Threads... where to start? Pin
Michael Dunn7-Oct-02 4:40
sitebuilderMichael Dunn7-Oct-02 4:40 
GeneralRe: ATL and Threads... where to start? Pin
Jörgen Sigvardsson11-Oct-02 4:01
Jörgen Sigvardsson11-Oct-02 4:01 
GeneralRe: ATL and Threads... where to start? Pin
Michael Dunn11-Oct-02 5:53
sitebuilderMichael Dunn11-Oct-02 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.