Click here to Skip to main content
15,893,486 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: char str[256] AND char *str = new char(256) Pin
Kosk30-Jul-04 12:01
Kosk30-Jul-04 12:01 
GeneralRe: char str[256] AND char *str = new char(256) Pin
Gary R. Wheeler30-Jul-04 12:24
Gary R. Wheeler30-Jul-04 12:24 
GeneralRe: char str[256] AND char *str = new char(256) Pin
Archer28230-Jul-04 13:03
Archer28230-Jul-04 13:03 
GeneralSetting Wallpaper Pin
Archer28230-Jul-04 10:40
Archer28230-Jul-04 10:40 
GeneralSPIF_SENDCHANGE ? Pin
bikram singh31-Jul-04 16:14
bikram singh31-Jul-04 16:14 
GeneralInitialising a items in a structure Pin
Grahamfff30-Jul-04 10:35
Grahamfff30-Jul-04 10:35 
GeneralRe: Initialising a items in a structure Pin
Kosk30-Jul-04 11:54
Kosk30-Jul-04 11:54 
GeneralRe: Initialising a items in a structure Pin
Grahamfff30-Jul-04 21:07
Grahamfff30-Jul-04 21:07 
Thanks for the info, that solves the first problem.

But can you advise on how to use a union or other overlay method.
I just want to deal with a buffer when sending out the data, but deal with the structure itmes in the program; i.e. two names for the same item of data; see listing below

typedef struct yadda<br />
{<br />
	yadda()<br />
	{<br />
	strcpy(fieldDesc,"This is a description");<br />
	strcpy(detailsDesc ,"This is a description");<br />
	strcpy(unitsStr ,"This is a description");<br />
<br />
	}<br />
	char fieldDesc [100];<br />
	char detailsDesc [20];<br />
	char unitsStr [10];<br />
}GENERAL_DATA;<br />
<br />
typedef struct <br />
{<br />
	unsigned short	data; <br />
	GENERAL_DATA	details;<br />
}ITEM_DATA;<br />
<br />
union DATA01<br />
{<br />
	ITEM_DATA thisSignal;<br />
	unsigned int buffer[512];<br />
}data01;

I get the error c:\Overlays\OverlaysDlg.cpp(48): error C2620: member 'SIGNAL1::thisSignal' of union 'SIGNAL1' has user-defined constructor or non-trivial default constructor.

Are they another method of overlaying the data.

grahamfff
GeneralRe: Initialising a items in a structure Pin
Gary R. Wheeler30-Jul-04 12:33
Gary R. Wheeler30-Jul-04 12:33 
GeneralRe: Initialising a items in a structure Pin
Grahamfff30-Jul-04 21:32
Grahamfff30-Jul-04 21:32 
GeneralRe: Initialising a items in a structure Pin
Gary R. Wheeler31-Jul-04 1:55
Gary R. Wheeler31-Jul-04 1:55 
GeneralRe: Initialising a items in a structure Pin
Grahamfff2-Aug-04 10:50
Grahamfff2-Aug-04 10:50 
GeneralRe: Initialising a items in a structure Pin
Sheff30-Jul-04 22:01
Sheff30-Jul-04 22:01 
GeneralDisable maxmize minimize window Pin
magee8130-Jul-04 10:20
sussmagee8130-Jul-04 10:20 
GeneralRe: Disable maxmize minimize window Pin
valikac30-Jul-04 14:11
valikac30-Jul-04 14:11 
GeneralChange IP address Notification Pin
Renjith Ramachandran30-Jul-04 9:46
Renjith Ramachandran30-Jul-04 9:46 
GeneralNotifyAddrChange() Pin
bikram singh31-Jul-04 16:41
bikram singh31-Jul-04 16:41 
QuestionHow to set default web-site from C++? Pin
includeh1030-Jul-04 9:06
includeh1030-Jul-04 9:06 
AnswerRe: How to set default web-site from C++? Pin
Renjith Ramachandran30-Jul-04 9:47
Renjith Ramachandran30-Jul-04 9:47 
GeneralRe: How to set default web-site from C++? Pin
includeh1030-Jul-04 9:55
includeh1030-Jul-04 9:55 
GeneralREFERENCE TO ARRAY OF 10 INTEGERS Pin
avenger_sb2530-Jul-04 7:57
avenger_sb2530-Jul-04 7:57 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
Jaime Stuardo30-Jul-04 8:37
Jaime Stuardo30-Jul-04 8:37 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
avenger_sb2530-Jul-04 8:48
avenger_sb2530-Jul-04 8:48 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
Kochise30-Jul-04 9:42
Kochise30-Jul-04 9:42 
GeneralRe: REFERENCE TO ARRAY OF 10 INTEGERS Pin
Michael Dunn30-Jul-04 9:46
sitebuilderMichael Dunn30-Jul-04 9:46 

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.