|
As you are getting bits of advice...
I DLL does not run in isolation - you need an exe to use that DLL.
So, why not write a EXE server?
As has been said, sockets are great for communicating between machine - on different OS's, on different continents too. If you know these processes will be on the same machine, there are simpler inter-process methods!
http://www.flounder.com/kb192570.htm[^] may be of use to you.
Iain.
ps, if you have not worked it out by now, you're asking "I want to make a new car. Can anyone guide me" "well, it's a big question, what do you know now?"
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
MFC has socket class implementations (Both synchronous and asynchronous). Use the asynchronous socket class to build your server and use synchronous socket class to connect to the server. Accept connections with the UI thread and use a threadpool to serve the clients.
Hint:
Synchronous = blocking = CSocket
Asynchronous = non-blocking = CAsyncSocket
Hint 2: Sockets are not programming language dependent.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
i want to create text file in pocket pc,in following format.
123456
789101112
444545454
7787
means each string in new line.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
_$h@nky_, You've been on these forums for a while, so I'm kinda surprised that you need help with this. But here you go.
1/ Create a file, probably ending in .txt. (CreateFile)
2/ Write a line into this file, ending in a carriage return / linefeed. (WriteFile)
3/ Repeat (2) with other data, as often as you like.
4/ Close the file (CloseHandle).
That's it!
I do find you puzzling - one week you're asking help about some really advanced topic - another week you're asking how to tie your shoe laces. Are you writing some mega big software?
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Its not done thats why i ask this question.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: Its not done
Then do it!
"_$h@nky_" wrote: thats why i ask this question
If you keep asking, you'll never do it.
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 want to use a progress bar in my dialog based MFC application,i have draged progess bar from tool box and have made its variable named m_prog
now i dnt know what to do for making it working...can n e budy help me out in this....thanx.
|
|
|
|
|
The first thing to think about is that you need to have a task with some progress. The common mistake people do when using a progress bar is that they put their task in the main thread and regularly advance progress on the progress bar. This is not going to work because while you are processing your task, no messages are processed which means the full UI will freeze (and the progress bar won't progress).
What kind of task are you running ? Is it a kind of computation ? If yes, is it running in a separate thread ?
|
|
|
|
|
yes...i m doing coplex calculations...inplementing methemathical algorithms....and these are happining in saperate methods.
|
|
|
|
|
MahaKh wrote: saperate methods.
He asked about separate threads.
If that was a difficulty with language, no problem. If you don't understand the difference between a method and a thread, you have a whole lotta reading to do.
Have a search for CreateThread, AfxBeginThread, PostMessage.
Read these essays too:
http://www.flounder.com/mvp_tips.htm#hreads%20and%20Processes%20series[^]
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Cedric Moonen wrote: (and the progress bar won't progress).
So what's the point in having a progress bar that won't progress? That just sounds counterintuitive. I suggest an unprogress bar instead. That way it won't matter if the primary thread is busy or not.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
What about documentation [^]?
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]
|
|
|
|
|
OK I can now process LVN_ITEMCHANGED messages in my list ctrl. Thanks for that, David Crow.
I need now to make a certain column be editable in my CListCtrl-derived class, like when you click on a file name in explorer you get an edit box. There is a flag LVS_EDITLABELS which does exactly what I want. Unfortunately it works only for the first column, and I need to edit the 3rd column. Is there an easy way to do that, or should I make my own floating edit box (with MoveWindow/ShowWindow)?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
modified on Tuesday, September 29, 2009 6:37 AM
|
|
|
|
|
|
Thanks
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi to all,
Could anyone please tell me how to use setfocus (or may be any other methods) to set focus to an editbox by default. ie whenever the dialog box opens, cursor should be in the editbox.
I have variables of the edit box, but as value. not control. So I guess we can use something like
GetDlgItem(IDC_EDIT1)->SetFocus();
But its not working for me. Please help
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
Make the edit box the first in the tab order. To do that look at Layout menu in the resource editor.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
thanks for reply,
But there should be something like setfocus() right.
-----------------------------
I am a beginner
|
|
|
|
|
In case you make the edit box first in the tab order, you don't need setfocus.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sashoalm wrote: look at Layout menu in the resource editor
where do I find that? I am using vc++6
-----------------------------
I am a beginner
|
|
|
|
|
Layout->Tab Order
the Layout menu appears only when you are in the dialog editor.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
See here [^].
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]
|
|
|
|
|
Hi All
I have one dll(created in c) and i have one console application(in C).Now i want to read console application variable value from dll.Is it possible please gimme ur input.
Mohan t C
|
|
|
|
|
Is the console application loading the dll ? If yes, why don't you simply export a function from the dll that returns the value ?
|
|
|
|
|
No,Dll calling console app variable value..
Mohan t working for N.I.C
|
|
|
|