Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to pass the parameter in WinMain() Pin
abruzzi15-Jul-07 23:02
abruzzi15-Jul-07 23:02 
GeneralRe: How to pass the parameter in WinMain() Pin
ThatsAlok16-Jul-07 0:33
ThatsAlok16-Jul-07 0:33 
GeneralRe: How to pass the parameter in WinMain() Pin
abruzzi16-Jul-07 17:02
abruzzi16-Jul-07 17:02 
GeneralRe: How to pass the parameter in WinMain() Pin
David Crow16-Jul-07 4:27
David Crow16-Jul-07 4:27 
GeneralRe: How to pass the parameter in WinMain() Pin
Michael Dunn16-Jul-07 6:48
sitebuilderMichael Dunn16-Jul-07 6:48 
Questionusing lib Pin
kcynic15-Jul-07 12:46
kcynic15-Jul-07 12:46 
AnswerRe: using lib Pin
DevMentor.org17-Jul-07 7:11
DevMentor.org17-Jul-07 7:11 
Questionvector Pin
dellthinker15-Jul-07 12:34
dellthinker15-Jul-07 12:34 
Hi all, i found out that my char array wont work with a string so i was recommended to std::vector. I've never used it before and im looking for information on how to use it, closest i've gotten to a explanation is this http://www.roguewave.com/support/docs/sourcepro/edition9/html/stdlibref/vector.html]
but i dont understand the concept. Im bascially trying to use an array of strings with the aide of this vector. If anyone would like to explain a bit or have a better site to go to i'd appreciate it. Thanx in advance!

Here's the offending code.

<br />
char* randomlist[]={<br />
	"Test", "Huh"<br />
};<br />
#define SIZEOFAR 2<br />
 <br />
bool randomchar(){<br />
	string _random = random;<br />
	srand((unsigned)time(NULL));<br />
	BUF = "SEND " + _random[rand()%SIZEOFAR] + "\n";<br />
	SendToServer(BUF.c_str());<br />
	return true;<br />
}<br />
/* error C2440: 'initializing' : cannot convert from 'char *[2]' to 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >'<br />
 <br />
       error C2110: cannot add two pointers<br />
*/<br />

AnswerRe: vector Pin
Axter15-Jul-07 17:08
professionalAxter15-Jul-07 17:08 
AnswerRe: vector Pin
Stephen Hewitt15-Jul-07 19:09
Stephen Hewitt15-Jul-07 19:09 
QuestionRe: vector Pin
David Crow16-Jul-07 4:28
David Crow16-Jul-07 4:28 
QuestionR2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 11:22
perrin486915-Jul-07 11:22 
AnswerRe: R2_NOTXORPEN drawing mode question Pin
Mark Salsbery15-Jul-07 13:02
Mark Salsbery15-Jul-07 13:02 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 13:48
perrin486915-Jul-07 13:48 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
Mark Salsbery15-Jul-07 13:52
Mark Salsbery15-Jul-07 13:52 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 14:07
perrin486915-Jul-07 14:07 
GeneralRe: R2_NOTXORPEN drawing mode question [modified] Pin
Mark Salsbery15-Jul-07 14:12
Mark Salsbery15-Jul-07 14:12 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 14:28
perrin486915-Jul-07 14:28 
QuestionBringing MFC app to web - which technology horse to ride? Pin
Mike A. Jones15-Jul-07 10:15
Mike A. Jones15-Jul-07 10:15 
AnswerRe: Bringing MFC app to web - which technology horse to ride? Pin
Mark Salsbery15-Jul-07 11:21
Mark Salsbery15-Jul-07 11:21 
AnswerRe: Bringing MFC app to web - which technology horse to ride? Pin
jhwurmbach16-Jul-07 0:00
jhwurmbach16-Jul-07 0:00 
Questiondifferent %f for variables in a string Pin
Dane Grant15-Jul-07 9:20
Dane Grant15-Jul-07 9:20 
QuestionRe: different %f for variables in a string Pin
Mark Salsbery15-Jul-07 9:30
Mark Salsbery15-Jul-07 9:30 
AnswerRe: different %f for variables in a string Pin
Dane Grant15-Jul-07 9:35
Dane Grant15-Jul-07 9:35 
GeneralRe: different %f for variables in a string Pin
Mark Salsbery15-Jul-07 9:45
Mark Salsbery15-Jul-07 9:45 

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.