|
umm u have a few includes there with nothing after them, what do i include?
ty
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
Sorry I did not check "Do not treat <'s as HTML tags."
In Stdafx.h should be:
#include <afxext.h>
#include <afxtempl.h>
In Demo.cpp missed
#include <stdio.h>
|
|
|
|
|
im about to shove a stick of dynomite into my comps serial port, lol
i get this error:
cannot convert parameter 1 from 'unsigned int' to 'const char *'
for this line of code:
m_port.AddString(ports.ElementAt(i));
how do i fix that?
thank you
|
|
|
|
|
You have to convert this integer into string such as:
char str[7];
sprintf(str, "COM%d", ports.ElementAt(i));
m_port.AddString(str);
|
|
|
|
|
|
Being only a beginner, I have a very basic question to ask:
to input names, what is the best to use: strings or char format?
|
|
|
|
|
Char can store only one charecter.
String can store any number of charecters.
So as name contain multi chars, use Strings.
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
When I try to spawn a thread i get an error. Here is my code:
DWORD dwThreadId, dwThrdParam = 1;
HANDLE hThread;
char szMsg[80];
hThread = CreateThread(
NULL, // default security attributes
0, // use default stack size
cliThread, // thread function
&_param, // argument to thread function
0, // use default creation flags
&dwThreadId); // returns the thread identifier
// Check the return value for success.
if (hThread == NULL)
{
wsprintf( szMsg, "CreateThread failed." );
MessageBox( NULL, szMsg, "main", MB_OK );
}
else
{
}
The error was that the memory couldnt be read. Is there a quick solution to my problems? Thanks
|
|
|
|
|
There must be something in the thread that you are trying to do that is causing the exception.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
Hi everyone!
Does anyone of you know where i can get a good linux compiler and linker ??? It doesn't have to be freeware !
MFG
TheProgrammer
MSN: reddragon2kx@hotmail.com
ICQ: 308616675
www.theprogrammer.de.vu[^]
|
|
|
|
|
|
|
I luuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuv gcc!
|
|
|
|
|
Borland C++ BuilderX
www.borland.com
---------------------
And Like The Wind Our Hero Vanishes Off Into The Distance...
|
|
|
|
|
All linux distributions comes with a GCC compiler suite. (unless they've been stripped down for use in embedded systems or something like that)
Just type g++ in a shell command prompt and see what response you get.
--
Ich bin der böse Mann von Schweden.
|
|
|
|
|
I believe Intel has the best C++ compiler for Linux.
|
|
|
|
|
Nemanja Trifunovic wrote:
I believe Intel has the best C++ compiler for Linux.
Only if you are running its product on INTEL processors.
If you are only remotely thinking of value (e.g. price per speed) you would never do that, ans the Intel compiler is wasted money.
Especially, as it is (outside of special laboratories) unable to compile your Linux system.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Hi all!
I've done a Visual C++ application and it works perfectly, but when I have done another similar one using the same include statements and in the same order, I get these errors:
<br />
C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : error C2146: syntax error : missing ';' before identifier 'FAR'<br />
C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : fatal error C1004: unexpected end of file found<br />
I never got these errors before and the changes that I've done doesn't matter this header "speech.h" (I think so at least).
Any ideas?
Thank you in advance!
|
|
|
|
|
If memory serves me you are missing a semicolon at the end of the class prototyped in speech.h
|
|
|
|
|
I don't know what you mean... (I'm just a newbie)
The error must be out of the speech.h code because it works ok with other applications and it's the same for all of them.
Where should be that missing semicolon?
Thanks!
|
|
|
|
|
Try using #include <windows.h> before you include speech.h
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi:
i have an SDI Application in which i have used CFormView as my view Class ,
i have two edit controls Edit1 and Edit2 and two buttons Ok and Cancle
i want to make Ok as default Button as Edit1 Control gets focus and when Edit2 Control gets focus i want to make Cancle as default Button ,
i m trying this code to do this
on Event Handler of Edit1 Set Focus i m trying this code
ptrOne->SetButtonStyle(ptrOne->GetButtonStyle() | BS_BS_DEFPUSHBUTTON)
but it is not working ,
can any one help me....
Thanks
"Winner's don't do different things , they do things differently "
|
|
|
|
|
You need to remove the BS_DEFPUSHBUTTON style from the Ok button and add it to the cancel button. However such changes may not be recognized once the form has been created.
Also sound like a terrible idea from a UI persptive. Poor old user.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
You should also send the DM_SETDEFID message to the dialog window, with WPARAM set to the control ID of the cancel button. Otherwise it visually changes, but the behaviour doesn't necessarily...
Steve S
|
|
|
|
|
OK, say I have two classes: class A and class B and I need both classes to be able to refer to each other. In class A I have #include "b.h" and in class B I have #include "a.h" .
In each file the #include statements are within a #ifndef block like so
#ifndef _A_H
#define _A_H
#include "b.h"
class A
{
.
.
.
};
#endif
to prevent each class being redefined.
But... this throws compilation errors! For example, in class B it says class A is not defined. I feel it's a prob with the #ifndef stuff I've got going on there. Some of you smart guys must know a better way to do this and one with which I will not get these feckin' errors. Any ideas? Any help much appreciated! Thanks.
Eoge
Dublin, Ireland
|
|
|
|