Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
July 12, 2016 adding toString to struct | ||||
---|---|---|---|---|
| ||||
windows libs have a lot of structs and it would be nice to have the ability to convert them to a string to see them in the debugger(e.g., CLSID). Is there a way to do this? I've tried to pull out the code from the libs but it if a total clusterfuck. |
July 12, 2016 Re: adding toString to struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Sansier | On Tuesday, 12 July 2016 at 05:16:30 UTC, Adam Sansier wrote:
> Is there a way to do this?
write a new function that prints them and call that
|
July 12, 2016 Re: adding toString to struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 12 July 2016 at 14:27:49 UTC, Adam D. Ruppe wrote:
> On Tuesday, 12 July 2016 at 05:16:30 UTC, Adam Sansier wrote:
>> Is there a way to do this?
>
> write a new function that prints them and call that
This doesn't work to display them in visual D though. Requires a lot of hoops just to see a stupid string of the data.
|
July 12, 2016 Re: adding toString to struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Sansier | On Tuesday, 12 July 2016 at 14:51:43 UTC, Adam Sansier wrote:
> On Tuesday, 12 July 2016 at 14:27:49 UTC, Adam D. Ruppe wrote:
>> On Tuesday, 12 July 2016 at 05:16:30 UTC, Adam Sansier wrote:
>>> Is there a way to do this?
>>
>> write a new function that prints them and call that
>
> This doesn't work to display them in visual D though. Requires a lot of hoops just to see a stupid string of the data.
OutputDebugString works in Visual Studio, so might work in Visual D as well.
|
July 13, 2016 Re: adding toString to struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Sansier | On Tuesday, 12 July 2016 at 05:16:30 UTC, Adam Sansier wrote:
> windows libs have a lot of structs and it would be nice to have the ability to convert them to a string to see them in the debugger(e.g., CLSID).
>
> Is there a way to do this? I've tried to pull out the code from the libs but it if a total clusterfuck.
std.conv.to will print a structure with field values, not sure if that helps you if you're using a debugger.
|
July 13, 2016 Re: adding toString to struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On Wednesday, 13 July 2016 at 02:29:12 UTC, Jesse Phillips wrote:
> On Tuesday, 12 July 2016 at 05:16:30 UTC, Adam Sansier wrote:
>> windows libs have a lot of structs and it would be nice to have the ability to convert them to a string to see them in the debugger(e.g., CLSID).
>>
>> Is there a way to do this? I've tried to pull out the code from the libs but it if a total clusterfuck.
>
> std.conv.to will print a structure with field values, not sure if that helps you if you're using a debugger.
No, Visual D doesn't seem to use it either. I can, of course, create code... but that's a hassle.
|
Copyright © 1999-2021 by the D Language Foundation