Click here to Skip to main content
15,929,978 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
bob1697216-Jun-06 17:35
bob1697216-Jun-06 17:35 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
James Brown18-Jun-06 22:20
James Brown18-Jun-06 22:20 
Questionenter key Pin
Tara1416-Jun-06 6:51
Tara1416-Jun-06 6:51 
AnswerRe: enter key Pin
Jun Du16-Jun-06 7:56
Jun Du16-Jun-06 7:56 
GeneralRe: enter key Pin
Tara1416-Jun-06 8:58
Tara1416-Jun-06 8:58 
GeneralRe: enter key Pin
Tara1416-Jun-06 9:27
Tara1416-Jun-06 9:27 
QuestionExcluding random choices (std c++) Pin
Peter Charlesworth16-Jun-06 5:01
Peter Charlesworth16-Jun-06 5:01 
AnswerRe: Excluding random choices (std c++) Pin
capricious_00116-Jun-06 5:14
capricious_00116-Jun-06 5:14 
try this... Declare a struct first with the string resources

struct StringResource{
 string person[9] = {
"Jason",
"My best friend",
"Uncle Ben",
"Mark",
"Eva",
"Dad",
"My daughter",
"Deborah",
"That kid over there"};

string activity[9] = {
" is preparing a diner for two.",
" is playing a game of tennis with mum.",
" is making out with his/her girl/boyfriend.",
" is studying his geography exam.",
" is still sleeping.",
" is cruising on his motorcycle.",
" is shooting baskets in the garden.",
" is relaxing by the pool.",
" is coding a simple program in C++"};
};


In your main program call the struct:

StringResource bunchostrings;


Everytime a string is used just empty the values. Ex:

bunchostrings.activity[8] = "";


Check to see if the string is empty, if it isnt, use it then after empty it. If the string is empty, then randomly search for another one.

Hope that helps,

Robbie
AnswerRe: Excluding random choices (std c++) [modified] Pin
Stephen Hewitt16-Jun-06 5:28
Stephen Hewitt16-Jun-06 5:28 
GeneralRe: Excluding random choices (std c++) Pin
Garth J Lancaster16-Jun-06 16:33
professionalGarth J Lancaster16-Jun-06 16:33 
AnswerRe: Excluding random choices (std c++) Pin
Chris Losinger16-Jun-06 6:35
professionalChris Losinger16-Jun-06 6:35 
Question'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 4:49
kitty516-Jun-06 4:49 
AnswerRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
Viorel.16-Jun-06 4:54
Viorel.16-Jun-06 4:54 
GeneralRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 5:02
kitty516-Jun-06 5:02 
GeneralRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
Viorel.16-Jun-06 5:13
Viorel.16-Jun-06 5:13 
QuestionRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 5:18
kitty516-Jun-06 5:18 
AnswerRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
Viorel.16-Jun-06 5:26
Viorel.16-Jun-06 5:26 
GeneralRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 5:48
kitty516-Jun-06 5:48 
GeneralRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' [modified] Pin
Viorel.16-Jun-06 5:56
Viorel.16-Jun-06 5:56 
Questionhow to send unicode text in XlTable Pin
bassel_z16-Jun-06 4:45
bassel_z16-Jun-06 4:45 
QuestionDynamically allocating static variables Pin
capricious_00116-Jun-06 3:54
capricious_00116-Jun-06 3:54 
AnswerRe: Dynamically allocating static variables Pin
Laxman Auti16-Jun-06 4:07
Laxman Auti16-Jun-06 4:07 
GeneralRe: Dynamically allocating static variables Pin
capricious_00116-Jun-06 4:17
capricious_00116-Jun-06 4:17 
AnswerRe: Dynamically allocating static variables Pin
Viorel.16-Jun-06 4:28
Viorel.16-Jun-06 4:28 
GeneralRe: Dynamically allocating static variables Pin
capricious_00116-Jun-06 5:07
capricious_00116-Jun-06 5:07 

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.