Debug help 
Author Message
 Debug help

What's wrong with this code?

HWND hwnd;
bool dunno;
typedef struct _SHFILEOPSTRUCT{
    hwnd;
    FO_DELETE;
    "C:\\delete\0";
    NULL;
    FOF_SIMPLEPROGRESS;
    dunno;
    NULL;
    "deleting...";

Quote:
} SHFILEOPSTRUCT, *LPSHFILEOPSTRUCT;



Sat, 25 Oct 2003 06:33:19 GMT  
 Debug help
   Try compiling the following and you will find your syntax errors: int x;
struct test{x;}.  Structures cannot be defined or initialized like that.
Also, are you trying to redefine an existing MFC structure, or are you
trying to create one of those structures and set its data values?  To do the
first you would write something like: struct test{int x;}.  To do the
second, you would write something like: #include test.h //struct test is
defined here; test mytest; mytest.x = 0.  You should really start by reading
a book on C or C++ which discusses variable declarations and assignments,
then progress to a book which discusses C++ structures and classes.


Quote:
> What's wrong with this code?

> HWND hwnd;
> bool dunno;
> typedef struct _SHFILEOPSTRUCT{
>     hwnd;
>     FO_DELETE;
>     "C:\\delete\0";
>     NULL;
>     FOF_SIMPLEPROGRESS;
>     dunno;
>     NULL;
>     "deleting...";
> } SHFILEOPSTRUCT, *LPSHFILEOPSTRUCT;



Sat, 25 Oct 2003 07:22:02 GMT  
 Debug help
Use of semi-colons instead of commas.


Quote:
> What's wrong with this code?

> HWND hwnd;
> bool dunno;
> typedef struct _SHFILEOPSTRUCT{
>     hwnd;
>     FO_DELETE;
>     "C:\\delete\0";
>     NULL;
>     FOF_SIMPLEPROGRESS;
>     dunno;
>     NULL;
>     "deleting...";
> } SHFILEOPSTRUCT, *LPSHFILEOPSTRUCT;



Sun, 26 Oct 2003 20:35:52 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help Debugging help please

2. OpenMP-C debug help needed

3. debugging help

4. Debugging help needed

5. Some debugging help would be appreciated

6. Debugging Help

7. debugging help...

8. Need Debug help using pointers and Linked Lists

9. Debugging help with Borland C++

10. DCOM debugging:Help needed urgently

11. Debugging Help?

12. Debugging Help!

 

 
Powered by phpBB® Forum Software