|
yes, but the problem is that I have to make a divece for my work. and for that i have to send a code to a server. I believe the only way to do this is to build a socket. I am in my 3th year of studing so I think that with some good documentation i will come quit far. you would make me ferry happy. If i don't make it and i have to do it al over it cost me half a year of extra study time which i don't verry like.
Dorbeck
|
|
|
|
|
Yeah I know but it is very difficult to help if you simply don't understand the basics.
And why for example are you using uint32 ?
|
|
|
|
|
It was to send an 4 byte signal.
|
|
|
|
|
That was not my question. My question was why you use uint32 ? Where are they defined ? It is not in the standard C or C++, so why are you using them ? Are they defined somewhere ?
|
|
|
|
|
well, i don't use it any more so it isn't a problem any more. but it was not defined so you are write he didn't know what to do. but now my program works but it doesn't send the write signal becaus he doesn't know what to do with short. when I want to send a 2 byte signal I use short. whitch i think is correct.
Dorbeck
|
|
|
|
|
dorbeck wrote: when I want to send a 2 byte signal I use short. whitch i think is correct.
Uuuh ?
I strongly believe that you should at least learn the basics. Otherwise we will need to write the program for you.
|
|
|
|
|
Okey, I have got a book now. I hope afther that it will go a bit better. thnx a lot.
Dorbeck
|
|
|
|
|
dorbeck wrote: i am a real amateur programmer so everything is quit new for me.
All the more reason to start with a less ambitious project. Dealing with sockets before you've mastered the basics (of C) is just a recipe for failure.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
dorbeck wrote: whats wrong with my program.
I suspect PEBKAC (Problem exists between k**boa*d and ch*ir)
Moonen's answer is enough explanatory.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
|
what is a strongly typed and loosely typed language ?
with what does it deal with, why interfaces are strongly typed ?
but not loosely typed?
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
May I take this opportunity to introduce you a new cool tool?[^]
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
HI,
i have a filedialog box, how to select mutiple files and to get the filenames in an array?
cud ne body help me out??
thnx in advance,
zari
|
|
|
|
|
|
can u send me the sample code
zari
|
|
|
|
|
zareee wrote: can u send me the sample code
No.
I think, that thread contains sufficient information to write one.
|
|
|
|
|
zareee wrote: can u send me the sample code
CFileDialog cfd(TRUE,NULL,NULL,OFN_ALLOWMULTISELECT,"Text Files (*.txt)|*.txt|Comma Separated Values(*.csv)|*.csv||");
cfd.m_ofn.lpstrTitle = "Multiple file selection";
if(cfd.DoModal()==IDOK)
{
POSITION pos;
pos = cfd.GetStartPosition();
while(pos)
MessageBox(cfd.GetNextPathName(pos));
}
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
If you search on codeproject you can see a lot of artciles about it anyway its not hard
|
|
|
|
|
hi developers,
i am working on security project in which i need to disable the drag and drop facility.
Any starting point or reference will be appreciated.
thanks.
vasant
Keep Walking .../\.....
|
|
|
|
|
Actually its very difficult to prevent drag and
vasant4c++ wrote: drag and drop in MFC
MFC? If it is a dialog based project then you don't need to do anything. If only you want to enable drag and drop support, you will have to do something.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
if you work on a security project I think see here[^]
|
|
|
|
|
thank you for your reply,
sorry for incomplete information.
basically i have one temp file, which i dont want the user to copy that file. i have managed to disable copy and paste, but user is able to drag and drop that file.
thanks once again for reply.
-vasant
-- modified at 8:46 Wednesday 11th October, 2006
|
|
|
|
|
vasant4c++ wrote: basically i have one temp file, which i dont want the user to copy that file.
From where?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|