Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: std::string to float Pin
David Crow5-May-06 2:24
David Crow5-May-06 2:24 
GeneralRe: std::string to float Pin
Rob Caldecott4-May-06 13:18
Rob Caldecott4-May-06 13:18 
GeneralRe: std::string to float Pin
Stephen Hewitt4-May-06 15:06
Stephen Hewitt4-May-06 15:06 
QuestionTray icon notifier when usb plugging Pin
asancho4-May-06 6:32
asancho4-May-06 6:32 
AnswerRe: Tray icon notifier when usb plugging Pin
toxcct4-May-06 6:44
toxcct4-May-06 6:44 
GeneralRe: Tray icon notifier when usb plugging Pin
asancho5-May-06 1:36
asancho5-May-06 1:36 
QuestionXML string to DataTable Pin
lsugirljte4-May-06 6:27
lsugirljte4-May-06 6:27 
GeneralRe: XML string to DataTable Pin
lsugirljte4-May-06 6:29
lsugirljte4-May-06 6:29 
QuestionAppending text to a richedit Pin
KellyR4-May-06 6:05
KellyR4-May-06 6:05 
AnswerRe: Appending text to a richedit Pin
Justin Tay4-May-06 12:17
Justin Tay4-May-06 12:17 
Questionmonitoring print dialog box Pin
Atron4-May-06 4:58
Atron4-May-06 4:58 
QuestionThank you Pin
Charles Reese4-May-06 4:51
Charles Reese4-May-06 4:51 
AnswerRe: Thank you Pin
toxcct4-May-06 5:22
toxcct4-May-06 5:22 
GeneralRe: Thank you Pin
Eytukan4-May-06 6:12
Eytukan4-May-06 6:12 
QuestionUrgent: Trapping documentcomplete event in IE browser Pin
rana744-May-06 4:19
rana744-May-06 4:19 
AnswerRe: Urgent: Trapping documentcomplete event in IE browser Pin
led mike4-May-06 7:52
led mike4-May-06 7:52 
AnswerRe: Urgent: Trapping documentcomplete event in IE browser Pin
Sheng Jiang 蒋晟4-May-06 15:10
Sheng Jiang 蒋晟4-May-06 15:10 
QuestionOle DB for OLAP Pin
Tarek Jabri4-May-06 4:13
Tarek Jabri4-May-06 4:13 
AnswerRe: Ole DB for OLAP Pin
Steve Echols4-May-06 20:03
Steve Echols4-May-06 20:03 
QuestionOle DB for OLAP Pin
Tarek Jabri4-May-06 4:11
Tarek 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
houari_id4-May-06 3:55 
AnswerRe: How to keep image displayed in dialog box? Pin
Cedric Moonen4-May-06 4:13
Cedric Moonen4-May-06 4:13 
GeneralRe: How to keep image displayed in dialog box? Pin
houari_id5-May-06 8:22
houari_id5-May-06 8:22 
GeneralRe: How to keep image displayed in dialog box? Pin
Cedric Moonen5-May-06 21:53
Cedric Moonen5-May-06 21:53 
QuestionCheckbox with BITMAP Pin
Raja Bose C Leo4-May-06 3:30
Raja Bose C Leo4-May-06 3:30 

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.