Click here to Skip to main content
14,599,518 members

C / C++ / MFC

 
AnswerRe: Thank you Pin
toxcct4-May-06 5:22
Membertoxcct4-May-06 5:22 
GeneralRe: Thank you Pin
Eytukan4-May-06 6:12
MemberEytukan4-May-06 6:12 
QuestionUrgent: Trapping documentcomplete event in IE browser Pin
rana744-May-06 4:19
Memberrana744-May-06 4:19 
AnswerRe: Urgent: Trapping documentcomplete event in IE browser Pin
led mike4-May-06 7:52
Memberled mike4-May-06 7:52 
AnswerRe: Urgent: Trapping documentcomplete event in IE browser Pin
Sheng Jiang 蒋晟4-May-06 15:10
MemberSheng Jiang 蒋晟4-May-06 15:10 
QuestionOle DB for OLAP Pin
Tarek Jabri4-May-06 4:13
MemberTarek Jabri4-May-06 4:13 
AnswerRe: Ole DB for OLAP Pin
Steve Echols4-May-06 20:03
MemberSteve Echols4-May-06 20:03 
QuestionOle DB for OLAP Pin
Tarek Jabri4-May-06 4:11
MemberTarek Jabri4-May-06 4:11 
I am trying to connect to MDP provider using OLE DB For OLAP following these steps:

1-i'v got the List of providers..and choose one of them

2-i called ParseDisplayName() ,..the i called BindMoniker() method as written in the code below...

3-When i Call ppIDBInitialize->Initialize(); ..i got Access voilation exception

can any one help me please....

Here is the code:
ULONG chEaten = 0;
hr = pIParseDisplayName->ParseDisplayName(pIBindCtx,rgEnumInfo[i].wszParseName, &chEaten, &pIMoniker);
ppIDBInitialize=NULL;
hr = BindMoniker(pIMoniker, 0, IID_IUnknown,(void**)&ppIDBInitialize);

rgProps[0].dwPropertyID = DBPROP_INIT_LOCATION;
rgProps[0].vValue.vt  = VT_BSTR;
rgProps[0].vValue.bstrVal  =  SysAllocString(L"server");

rgProps[1].dwPropertyID = DBPROP_INIT_DATASOURCE;
rgProps[1].vValue.vt  = VT_BSTR;
rgProps[1].vValue.bstrVal  = SysAllocString(L"FoodMart 2000");

rgProps[2].dwPropertyID = DBPROP_AUTH_INTEGRATED;
rgProps[2].vValue.vt  = VT_BSTR;
rgProps[2].vValue.bstrVal  = SysAllocString(L"SSPI");

// Create the structure containing the properties.
DBPROPSET PropSet;
PropSet.rgProperties      = rgProps;
PropSet.cProperties       = 3;
PropSet.guidPropertySet   = DBPROPSET_DBINIT;

IDBProperties *pIDBProperties=NULL;

// create properties pointer
hr=ppIDBInitialize->QueryInterface(IID_IDBProperties,(void**)&pIDBProperties);

// Set properties
hr=pIDBProperties->SetProperties(1, &PropSet);

// Initialize the data source object.
 hr = ppIDBInitialize->Initialize();   // Access voilation exception

QuestionHow to keep image displayed in dialog box? Pin
houari_id4-May-06 3:55
Memberhouari_id4-May-06 3:55 
AnswerRe: How to keep image displayed in dialog box? Pin
Cedric Moonen4-May-06 4:13
MemberCedric Moonen4-May-06 4:13 
GeneralRe: How to keep image displayed in dialog box? Pin
houari_id5-May-06 8:22
Memberhouari_id5-May-06 8:22 
GeneralRe: How to keep image displayed in dialog box? Pin
Cedric Moonen5-May-06 21:53
MemberCedric Moonen5-May-06 21:53 
QuestionCheckbox with BITMAP Pin
Raja Bose C Leo4-May-06 3:30
MemberRaja Bose C Leo4-May-06 3:30 
AnswerRe: Checkbox with BITMAP Pin
toxcct4-May-06 3:44
Membertoxcct4-May-06 3:44 
GeneralRe: Checkbox with BITMAP Pin
Raja Bose C Leo4-May-06 20:48
MemberRaja Bose C Leo4-May-06 20:48 
AnswerRe: Checkbox with BITMAP Pin
Hamid_RT4-May-06 3:48
MemberHamid_RT4-May-06 3:48 
AnswerRe: Checkbox with BITMAP Pin
Ravi Bhavnani4-May-06 12:19
professionalRavi Bhavnani4-May-06 12:19 
QuestionNewbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 2:51
Memberebruinsma4-May-06 2:51 
AnswerRe: Newbie: Using a com object in VC 7.1 Pin
Cedric Moonen4-May-06 3:13
MemberCedric Moonen4-May-06 3:13 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 3:21
Memberebruinsma4-May-06 3:21 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
toxcct4-May-06 3:31
Membertoxcct4-May-06 3:31 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 3:44
Memberebruinsma4-May-06 3:44 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
toxcct4-May-06 3:52
Membertoxcct4-May-06 3:52 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 3:56
Memberebruinsma4-May-06 3:56 
QuestionDialog resource editor in DLU Pin
YaronNir4-May-06 2:50
MemberYaronNir4-May-06 2:50 

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.