Click here to Skip to main content
15,905,558 members
Home / Discussions / COM
   

COM

 
GeneralRe: Please help!! Pin
Stephane Rodriguez.8-Aug-03 0:00
Stephane Rodriguez.8-Aug-03 0:00 
GeneralRe: Please help!! Pin
adsilva8-Aug-03 0:08
adsilva8-Aug-03 0:08 
GeneralRe: Please help!! Pin
Stephane Rodriguez.8-Aug-03 0:35
Stephane Rodriguez.8-Aug-03 0:35 
GeneralRe: Please help!! Pin
adsilva8-Aug-03 0:52
adsilva8-Aug-03 0:52 
GeneralRe: Please help!! Pin
Stephane Rodriguez.8-Aug-03 1:16
Stephane Rodriguez.8-Aug-03 1:16 
GeneralRe: Please help!! Pin
adsilva8-Aug-03 1:45
adsilva8-Aug-03 1:45 
GeneralRe: Please help!! Pin
Stephane Rodriguez.8-Aug-03 2:07
Stephane Rodriguez.8-Aug-03 2:07 
GeneralRe: Please help!! Pin
Mike_V9-Aug-03 11:55
Mike_V9-Aug-03 11:55 
Don't do it that way! What you need to do is:

<br />
#define MAX_OF_HARD_DISKS 24<br />
static TCHAR HardDiskLetters[MAX_OF_HARD_DISKS][4]={<br />
_T("c:\\"), _T("d:\\"), _T("e:\\"), _T("f:\\"), _T("g:\\"), _T("h:\\"),<br />
_T("i:\\"), _T("j:\\"), _T("k:\\"), _T("l:\\"), _T("m:\\"), _T("n:\\"),<br />
_T("o:\\"), _T("p:\\"), _T("q:\\"), _T("r:\\"), _T("s:\\"), _T("t:\\"),<br />
_T("u:\\"), _T("v:\\"), _T("w:\\"), _T("x:\\"), _T("y:\\"), _T("z:\\")<br />
};<br />


This will compile as either an ANSI array of strings or a UNICODE array of strings. By casting, you would be passing an 8-bit string to a function that expects a 16-bit string. The function could not work with that. Also, note the order of the array subscripts. This should work - but I did not test it.

Good Luck,
Mike_V
GeneralInternet Explorer custom menu Pin
Mohsen Saad7-Aug-03 18:55
Mohsen Saad7-Aug-03 18:55 
Generalfor people with experience with ActiveX Controls.. Pin
safee ullah7-Aug-03 1:49
safee ullah7-Aug-03 1:49 
GeneralRe: for people with experience with ActiveX Controls.. Pin
Stephane Rodriguez.7-Aug-03 6:09
Stephane Rodriguez.7-Aug-03 6:09 
GeneralRe: for people with experience with ActiveX Controls.. Pin
safee ullah7-Aug-03 23:16
safee ullah7-Aug-03 23:16 
GeneralRe: for people with experience with ActiveX Controls.. Pin
Stephane Rodriguez.7-Aug-03 23:25
Stephane Rodriguez.7-Aug-03 23:25 
GeneralRe: for people with experience with ActiveX Controls.. Pin
safee ullah8-Aug-03 0:17
safee ullah8-Aug-03 0:17 
GeneralRe: for people with experience with ActiveX Controls.. Pin
Stephane Rodriguez.8-Aug-03 0:30
Stephane Rodriguez.8-Aug-03 0:30 
Generalcalling vc6 dll from vb6 activex dll Pin
patwilliams6-Aug-03 5:53
patwilliams6-Aug-03 5:53 
GeneralUsing MS Web Browser ActiveX Control Pin
Douglas Troy5-Aug-03 5:11
Douglas Troy5-Aug-03 5:11 
GeneralRe: Using MS Web Browser ActiveX Control Pin
Stephane Rodriguez.6-Aug-03 10:53
Stephane Rodriguez.6-Aug-03 10:53 
GeneralRe: Using MS Web Browser ActiveX Control Pin
Douglas Troy7-Aug-03 5:57
Douglas Troy7-Aug-03 5:57 
GeneralRe: Using MS Web Browser ActiveX Control Pin
Stephane Rodriguez.7-Aug-03 6:07
Stephane Rodriguez.7-Aug-03 6:07 
GeneralRe: Using MS Web Browser ActiveX Control Pin
Douglas Troy7-Aug-03 7:03
Douglas Troy7-Aug-03 7:03 
QuestionQueryInterface -- How come this code doesn't work? Pin
Popeye Doyle Murray5-Aug-03 4:16
Popeye Doyle Murray5-Aug-03 4:16 
AnswerRe: QueryInterface -- How come this code doesn't work? Pin
Stephane Rodriguez.5-Aug-03 5:49
Stephane Rodriguez.5-Aug-03 5:49 
GeneralRe: QueryInterface -- How come this code doesn't work? Pin
geo_m5-Aug-03 22:26
geo_m5-Aug-03 22:26 
GeneralRe: QueryInterface -- How come this code doesn't work? Pin
Steve S5-Aug-03 23:20
Steve S5-Aug-03 23:20 

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.