Click here to Skip to main content
15,921,694 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Translate this method to c++; Pin
Jonas Larsson4-Sep-03 4:21
Jonas Larsson4-Sep-03 4:21 
GeneralIs this a homework assignment? Pin
JWood5-Sep-03 3:43
JWood5-Sep-03 3:43 
GeneralHelp!!! Pin
jimsleon3-Sep-03 18:54
jimsleon3-Sep-03 18:54 
GeneralRe: Help!!! Pin
Magnus Westin3-Sep-03 21:20
Magnus Westin3-Sep-03 21:20 
GeneralRe: Help!!! Pin
Dudi Avramov4-Sep-03 0:59
Dudi Avramov4-Sep-03 0:59 
GeneralRe: Help!!! Pin
Dudi Avramov3-Sep-03 22:58
Dudi Avramov3-Sep-03 22:58 
Questiondll and installation? Pin
theCapt3-Sep-03 18:12
susstheCapt3-Sep-03 18:12 
QuestionBSTR question? Pin
theCapt3-Sep-03 18:06
susstheCapt3-Sep-03 18:06 
hi! i'm making a dll from ATL COM appwizard...
and then one of the properties there is of type BSTR....
now the BSTR type is stored internally by class with LPWSTR member...
now when i'm setting that BSTR i just equate it... i.e.

 STDMETHODIMP CBluetooth::put_ServiceName(BSTR newVal)<br />
{<br />
   // TODO: Add your implementation code here<br />
	m_sLPWSTRString = newVal;<br />
	<br />
	return S_OK;<br />
}<br />


assuming that newVal = "The String"...

when this function exits it seems m_sLPWString is now pointing to a garbage string.. (not the string "The String"..as seen in a debugger).... the address is the same but the contents of the address seems to be altered so whats the problem here...?

I can't use the CString functions since i'm avoiding the use of MFC....
actually when i used the COM from a program in Visual Basic it seems to work fine.. but when i used it from VB .NET thats were the problem comes in....
AnswerRe: BSTR question? Pin
TrickyFishy3-Sep-03 18:48
TrickyFishy3-Sep-03 18:48 
AnswerRe: BSTR question? Pin
Braulio Dez3-Sep-03 23:56
Braulio Dez3-Sep-03 23:56 
QuestionCFormView + CDialogBar ?????? Pin
kumaru_san3-Sep-03 18:00
kumaru_san3-Sep-03 18:00 
GeneralTTFTODXF Pin
wow99993-Sep-03 17:14
wow99993-Sep-03 17:14 
GeneralRe: TTFTODXF Pin
Iain Clarke, Warrior Programmer3-Sep-03 22:41
Iain Clarke, Warrior Programmer3-Sep-03 22:41 
QuestionHow do i pass data to a view from an independent class? Pin
Member 4048133-Sep-03 15:13
Member 4048133-Sep-03 15:13 
QuestionWhere to put the menu handler in multi-view SDI application? Pin
Binayak3-Sep-03 13:48
Binayak3-Sep-03 13:48 
AnswerRe: Where to put the menu handler in multi-view SDI application? Pin
John M. Drescher3-Sep-03 14:15
John M. Drescher3-Sep-03 14:15 
GeneralRe: Where to put the menu handler in multi-view SDI application? Pin
Binayak3-Sep-03 14:18
Binayak3-Sep-03 14:18 
GeneralRe: Where to put the menu handler in multi-view SDI application? Pin
John M. Drescher3-Sep-03 15:53
John M. Drescher3-Sep-03 15:53 
Generalwhere will I find dbgheap.c etc Pin
Member 5314143-Sep-03 13:45
Member 5314143-Sep-03 13:45 
GeneralRe: where will I find dbgheap.c etc Pin
Brad Sokol3-Sep-03 14:42
Brad Sokol3-Sep-03 14:42 
Generaloutput file in VC++ Pin
mr20033-Sep-03 11:05
mr20033-Sep-03 11:05 
GeneralRe: output file in VC++ Pin
Hosam Aly Mahmoud3-Sep-03 11:37
Hosam Aly Mahmoud3-Sep-03 11:37 
GeneralRe: output file in VC++ Pin
Abin3-Sep-03 22:53
Abin3-Sep-03 22:53 
GeneralHyperlink Pin
Turtle Hand3-Sep-03 10:44
Turtle Hand3-Sep-03 10:44 
GeneralRe: Hyperlink Pin
Jason Henderson3-Sep-03 19:04
Jason Henderson3-Sep-03 19:04 

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.