Click here to Skip to main content
15,921,250 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help with some basic problems Pin
Tom Deketelaere26-Mar-09 22:34
professionalTom Deketelaere26-Mar-09 22:34 
AnswerRe: Need help with some basic problems Pin
benjymous27-Mar-09 0:49
benjymous27-Mar-09 0:49 
Questionusing SendMessage win32 things Pin
jeanbern26-Mar-09 16:03
jeanbern26-Mar-09 16:03 
AnswerRe: using SendMessage win32 things Pin
Dave Kreskowiak26-Mar-09 18:12
mveDave Kreskowiak26-Mar-09 18:12 
AnswerRe: using SendMessage win32 things Pin
Judah Gabriel Himango26-Mar-09 18:15
sponsorJudah Gabriel Himango26-Mar-09 18:15 
GeneralRe: using SendMessage win32 things Pin
jeanbern26-Mar-09 18:39
jeanbern26-Mar-09 18:39 
Questioncast to interface and then pass as ref Pin
devvvy26-Mar-09 14:18
devvvy26-Mar-09 14:18 
AnswerRe: cast to interface and then pass as ref Pin
_Maxxx_26-Mar-09 19:31
professional_Maxxx_26-Mar-09 19:31 
oAddress is passed by reference, so its 'address' is passed to your DAO. When the DAO creates a new object, it passes the 'address' of this object back to the 'client' - so the address pointed to by oAddress correctly points to the data crerated by the DAO...

But the address pointed to by Person.ParentAddress hasn't changed.

Change
IAddress oAddress = (IAddress) Person.ParentAddress;<br />
oDAO.LoadParentAddress(ref oAddress);<br />

to

oDAO.LoadParentAddress(ref (IAddress)Person.ParentAddress);
to achieve what you want.

IN case I am not clear (it's late and Friday and I am gagging for a beer)

BEFORE:
Person.ParentAddress points to memory location 1234
oAddress points to memory location 1234

call o DAO

oAddress points to memory location 2345
Person.ParentAddress points to memory location 1234

___________________________________________
.\\axxx
(That's an 'M')

GeneralRe: cast to interface and then pass as ref Pin
devvvy26-Mar-09 19:39
devvvy26-Mar-09 19:39 
AnswerRe: cast to interface and then pass as ref Pin
S. Senthil Kumar27-Mar-09 7:00
S. Senthil Kumar27-Mar-09 7:00 
Questionhow to upload a file using ftp [modified] Pin
T_Teef26-Mar-09 13:25
T_Teef26-Mar-09 13:25 
QuestionFileNotFoundException error Pin
Member 462208926-Mar-09 13:15
Member 462208926-Mar-09 13:15 
AnswerRe: FileNotFoundException error Pin
T_Teef26-Mar-09 13:26
T_Teef26-Mar-09 13:26 
QuestionRe: FileNotFoundException error Pin
Adam Maras26-Mar-09 13:37
Adam Maras26-Mar-09 13:37 
AnswerRe: FileNotFoundException error Pin
Luc Pattyn26-Mar-09 15:34
sitebuilderLuc Pattyn26-Mar-09 15:34 
GeneralRe: FileNotFoundException error Pin
Member 462208927-Mar-09 5:28
Member 462208927-Mar-09 5:28 
GeneralRe: FileNotFoundException error Pin
Luc Pattyn27-Mar-09 5:56
sitebuilderLuc Pattyn27-Mar-09 5:56 
GeneralRe: FileNotFoundException error Pin
Member 462208927-Mar-09 6:19
Member 462208927-Mar-09 6:19 
GeneralRe: FileNotFoundException error Pin
Luc Pattyn27-Mar-09 6:53
sitebuilderLuc Pattyn27-Mar-09 6:53 
GeneralRe: FileNotFoundException error Pin
Member 462208927-Mar-09 11:50
Member 462208927-Mar-09 11:50 
GeneralRe: FileNotFoundException error Pin
Luc Pattyn27-Mar-09 19:16
sitebuilderLuc Pattyn27-Mar-09 19:16 
AnswerRe: FileNotFoundException error Pin
S. Senthil Kumar27-Mar-09 7:06
S. Senthil Kumar27-Mar-09 7:06 
QuestionCan you read session status from a windows service? Pin
Beyondard26-Mar-09 11:41
Beyondard26-Mar-09 11:41 
GeneralEditable Combobox Pin
OldSchoolToC#26-Mar-09 11:14
OldSchoolToC#26-Mar-09 11:14 
GeneralRe: Editable Combobox Pin
J$26-Mar-09 13:34
J$26-Mar-09 13:34 

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.