Click here to Skip to main content
15,900,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get handle to a window Pin
Roger Stoltz23-Jun-09 1:22
Roger Stoltz23-Jun-09 1:22 
AnswerRe: how to get handle to a window Pin
CPallini23-Jun-09 1:38
mveCPallini23-Jun-09 1:38 
GeneralRe: how to get handle to a window Pin
Luc Pattyn23-Jun-09 2:12
sitebuilderLuc Pattyn23-Jun-09 2:12 
JokeRe: how to get handle to a window Pin
Roger Stoltz23-Jun-09 2:21
Roger Stoltz23-Jun-09 2:21 
GeneralRe: how to get handle to a window Pin
CPallini23-Jun-09 2:28
mveCPallini23-Jun-09 2:28 
AnswerRe: how to get handle to a window Pin
Rajesh R Subramanian23-Jun-09 1:59
professionalRajesh R Subramanian23-Jun-09 1:59 
GeneralRe: how to get handle to a window Pin
krish_kumar23-Jun-09 2:40
krish_kumar23-Jun-09 2:40 
GeneralRe: how to get handle to a window Pin
Rajesh R Subramanian23-Jun-09 2:43
professionalRajesh R Subramanian23-Jun-09 2:43 
AnswerRe: how to get handle to a window Pin
_AnsHUMAN_ 23-Jun-09 2:31
_AnsHUMAN_ 23-Jun-09 2:31 
Question(Very Urgent) Setting Latency timer of a communication port programatically? Pin
AnayKulkarni23-Jun-09 0:53
AnayKulkarni23-Jun-09 0:53 
AnswerRe: (Very Urgent) Setting Latency timer of a communication port programatically? Pin
Roger Stoltz23-Jun-09 1:07
Roger Stoltz23-Jun-09 1:07 
Questionasking for code in c to enumerate usb ports Pin
kkroshan23-Jun-09 0:42
kkroshan23-Jun-09 0:42 
QuestionRe: asking for code in c to enumerate usb ports Pin
Roger Stoltz23-Jun-09 1:11
Roger Stoltz23-Jun-09 1:11 
QuestionRe: asking for code in c to enumerate usb ports Pin
David Crow23-Jun-09 2:51
David Crow23-Jun-09 2:51 
Questionresize image bitmap ????(VC++) Pin
aa_zz23-Jun-09 0:33
aa_zz23-Jun-09 0:33 
AnswerRe: resize image bitmap ????(VC++) Pin
CPallini23-Jun-09 0:46
mveCPallini23-Jun-09 0:46 
AnswerRe: resize image bitmap ????(VC++) Pin
Hamid_RT23-Jun-09 1:54
Hamid_RT23-Jun-09 1:54 
AnswerRe: resize image bitmap ????(VC++) Pin
«_Superman_»23-Jun-09 4:09
professional«_Superman_»23-Jun-09 4:09 
AnswerRe: resize image bitmap ????(VC++) Pin
Hamid_RT24-Jun-09 19:18
Hamid_RT24-Jun-09 19:18 
Questionsolving n*n linear equations Pin
kimbz_00722-Jun-09 23:52
kimbz_00722-Jun-09 23:52 
AnswerRe: solving n*n linear equations Pin
CPallini23-Jun-09 0:15
mveCPallini23-Jun-09 0:15 
AnswerRe: solving n*n linear equations Pin
Stuart Dootson23-Jun-09 0:20
professionalStuart Dootson23-Jun-09 0:20 
All I can suggest is that you try to learn a little more about arrays and strings in C - there's so much wrong here htat I don't know where to start....but I'll try.

kimbz_007 wrote:
char* eq[81]={"-36x+42yz+-35a","3x+4yz","yz+3x"};


This is an array of 81 string pointers. The first three (eq[0], eq[1] and eq[2]) have values.

kimbz_007 wrote:
char* varname[20]={"yz","x","a"};


This is an array of 20 string pointers. The first three (varname[0], varname[1] and varname[2]) have values.

kimbz_007 wrote:
strlen(eq[i][81])


This is attempting to find the string length of the 81st character of the 'i'th string. This has no meaning, as detected (via the compiler) by the type system, causing the first error. You probably mean strlen(eq[i])

kimbz_007 wrote:
if(isalpha(eq[i][81]!=0))


This'll cause you grief - firstly, eq[i][81] is only defined if the 'i'th string has 82 characters or more - none of yours do. Also, you're determining if eq[i][81]!=0 is an alphabetic character. Again, even if the string was big enough, that is meaningless - I guess you've misplaced a closing bracket.

kimbz_007 wrote:
else if(s[i]=='-')

kimbz_007 wrote:
num[n]=-1*s[i+1};


You declared 's' as an integer variable, not an integer array. Those expressions are therefore meaningless and are also syntactically incorrect.

As I said - try to learn a bit more about the basics of the language (strings, arrays, pointers). Or use a different language which can help abstract those details out of the way.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: solving n*n linear equations Pin
kimbz_00723-Jun-09 0:27
kimbz_00723-Jun-09 0:27 
GeneralRe: solving n*n linear equations Pin
Stuart Dootson23-Jun-09 0:30
professionalStuart Dootson23-Jun-09 0:30 
Questionrun another exe in mfc using command prompt Pin
vvlnkishore22-Jun-09 23:52
vvlnkishore22-Jun-09 23:52 

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.