|
THHB ^
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
For your benefit, I've seen you've been asking this for a while.
But there are not so much of Java experts here, so I suggest that you try out a good Java discussion forum on the Internet (CP has a Java board, but is not very much active yet). They will probably suggest you a way out on how to access a Java servelet from C++.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
hi,
I am using a TabControl in my application with two tabs. The focus being on the first tab button.
But the problem is that i am able to see the page related to first tab control but the two tab control buttons are not visible. My application is in mfc
Please tell me whats the problem
Thanks In Advance.
Dhiraj Kumar Saini
|
|
|
|
|
It sounds as though you did not successfully add the second page. How are you calling InsertItem() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I believe you have to override TCN_SELCHANGE and select the correct view
Still not a good day to die...
|
|
|
|
|
I all
I am geting error when i am useing this code in header file.
BOOL f = ::IsClipboardFormatAvailable(CF_HDROP);
if (f)
{
f = ::OpenClipboard(GetSafeHwnd());
HDROP hDrop = (HDROP)GetClipboardData(CF_HDROP);
UINT cFiles = ::DragQueryFile(hDrop, (UINT)-1, NULL, 0);
CString szText;
char szFile[MAX_PATH];
for( UINT count = 0; count < cFiles; count++ )
{
::DragQueryFile(hDrop, count, szFile, sizeof(szFile));
szText += szFile;
AfxMessageBox(szText);
szText += "\r\n";
}
f = ::CloseClipboard();
}
How can i remove this error.Plz help me
|
|
|
|
|
MsmVc wrote: How can i remove this error
Without some kind of context for that code it's hard to tell.
The only way it's going to work is if that code is in a method of a CWnd derived class.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks.I will try to derive CWnd class.
|
|
|
|
|
I meant that is the only way that code will work as shown.
I didn't mean that's the only fix.
You can pass any valid window handle or NULL to OpenClipboard().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
ok it's working when i pass NULL in OpenClipboard().Thanks for help..
|
|
|
|
|
MsmVc wrote: ...i am useing this code in header file.
Why?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
How to use CSpinButtonCtrl to control the float value in edit control?
Is CSpinButtonCtrl just used for integer?
|
|
|
|
|
Yeah, as far as I know it is.
Just think about it for a second - if the range is 100, we can read the value and divide it by 100 to get a float.
Of course, if the range is only 100 - the smallest increment you may make is 1% of the range. If you goto a range of 1000, you can inc/dec by 0.1% of the range. Then of course, you could have a larger range, and go to (say) 100,000. Each increment would then only represent 0.001% of the range. and so on and so forth
1. Read value
2. divide value by range
3. create a string that represents the resulting number
4. put the result into the edit control.
|
|
|
|
|
Hi All,
I m fighting against a problem that drove me crazy for long hours, I wanna create a simple prog like Client/Server under linux using C code. I wrote a Server.c and Client.c Files but when i type
$gcc -c Server.c Client.c
$gcc -o Blood *.o
it told me that there is a double declarion of the function main. (i'm using linux)
So could some one tell me how could i test my prog on the same mchine ??? (local) Thank you !!!!
i Need Help so plz !!!
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
No wonder: While you should build two applications with the Client.c and Server.c , you are actually issuing the commands to build just one app with those files.
BTW there's a Linux forum on CodeProject .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
yeah i wanna build one prog using those two files and then run the prog so that i wanna run a process fro a client and another for ther server on a same machine (local). but i'am asking what should i write in the terminal (as i said i'm under Linux) !!! I m despered t spent alla the day asking that and looking in the net but no way
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
If you want to build just one application using two (or more) source files, then there should be one (and only one) function main .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
yes you are all right but in socket there are always a C file for the client and another one for the Server but i forgot how we edit the links between the c files and the o files under linux, i know that there is may be soem command like make or a shell comands i forgot it , i used to compile them about 4 years ago :p and now i need to run that app on my computer (and for the Linux Session i posted this message 5 jours ago and no reply till now :'()
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
What about 'man gcc '?
Probably you have to build 2 apps, for instance
gcc -o cliet client.c any_shared_obj.o
gcc -o server server.c any_shared_obj.o
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
but should i type after that sth like
gcc -o Sthing *.o
??? and then run the app Sthing!!!
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Blood_HaZaRd wrote: gcc -o Sthing *.o
*.o it's only a wildcard way to say 'link with all object files you find'. You get the error because the compiler finds both client.o and server.o (and both have a main function inside). I strongly suggest you to issue the man gcc command.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i already did the man gcc but with no hopes it stills abstractiv :p
any way thx for your help i ll try to ask the question to my professor and i ll write you the answer if he ll give it to me of course
Thx again (y)
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|
|
Good Night, and Good Luck.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Blood_HaZaRd wrote: yeah i wanna build one prog using those two files and then run the prog so that i wanna run a process fro a client and another for ther server on a same machine (local).
If you want to run two different processes, then you should build two different programs. Yes, it's possible to start two different processes from a single program in Linux using fork() , but that appears to be way beyond your current skill level.
|
|
|
|