|
Is that someone working at the take out Window of a McDonald, you know, you're a server, they are the clients ?
|
|
|
|
|
aryan146 wrote: without using any kind of windows programming concept
This is the second post in which you've used that phrase. What do you mean? Don't use Windows API calls? Don't use .NET? What exactly is it you don't want us to use in answering a Windows programming question?
Software Zen: delete this;
|
|
|
|
|
actually I've got a lot of example of windows client-server using windows API calls,,and other windows programming concepts,,but in linux it is a matter of just calling some functions and nothing else..thats why I've mentioned "without using any kind of windows programming concept",,if there is any possible way,,,
|
|
|
|
|
The Standard C and C++ languages don't contain any networking functions. The only way to create a client server program in any OS is to use the operating system's API either directly or through some wrapper library. "just calling some functions" in a Linux program means using the POSIX sockets API, just the same way as you would use the Winsock API in a Windows program.
|
|
|
|
|
every file has three date-timestamps.creation time,last access time and last modification time..by using C or C++ language how to find out the records and then how to change it?
another problem is how the date&time values r represented?
-- modified at 13:37 Wednesday 28th November, 2007
|
|
|
|
|
Hello , Please could you help im trying MDI for a simple projects. Each time I create a new MDI project when the program runs an empty MDI child is created which i dont need in my program 1) How i prevent this child to be created ?
2) I looked over all my books but there is no enough desciption of how to create a child dialog (not MDI child window ) under my MDI project to do certain commands like add customer dialog or back up dialog , could you please expalin how to insert a child dialog in MDI project ?
Thank you for your time .
Best regards,
J. a.
|
|
|
|
|
|
Dear Mark , thanks for the answer. But for the CDialog if I create it ,it appears out side the MDI ,Sir my Idea was to make a project of simple accounts proccessing program so I need a Main Window of my application and when the user choose a function a child window within my application initiated , what do you recommend SDI or MDI ? . and how to create a child window with my specific controls? .
Thanx for your time .
Regards,
j. a.
|
|
|
|
|
Jarrah_12 wrote: But for the CDialog if I create it it appears out side the MDI I want it inside it like MDI child
Then you could use a CMDIChildWnd with a CFormView client.
Or, derive a class from CMDIChildWnd, override OnCreateClient(), and in
the override, create a client window which is a modeless dialog.
The point is, a CMDIChildWnd is the type window you want to use as an MDI
child window.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Well, you could use a CFormView instead of a CDialog inside your MDI project.
Or you can simply usr a SDI project with a CFormView or more simple just use a CDialog as your project type.
Without more details, we cannot help you much; if you want to break the Doc/View architecture, be ready to do a lot of work by yourself.
|
|
|
|
|
Thanks guys , I got your Idea Im ready to do my project wish me good luck.
Best regards,
J. a.
|
|
|
|
|
or you can use a mix of all (as I did)
if you need to mix view types and have more than one view (they have more functionality than dialogs) in your app, take a look into this message[^] and follow the links; i explained how to do it in different places.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
draw and drop operation in a tree control leads to the crash of the application. Please can anyone help me.
Thanks in Advance
satyanarayana
|
|
|
|
|
(i.e. maximumu help I can afford with the info you gave me)
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.
|
|
|
|
|
Where is the crash located?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I think he hit a tree.
|
|
|
|
|
he would have used his helmet or seatbelt atleast.;P
|
|
|
|
|
Can you show code that it makes error?
|
|
|
|
|
Hi guys. I am using the function
void CPortConnectDlg::OnBsend3()
{
_outp(0x378,0x3); //The function to connect to the port
}
When i compile the project, it has no error but, when i try to send the data to the parallel port, it is not working, instead, windows gives me an error i can't really understand. Please can anyone help me.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
What Windows version? Maybe this will help....
"Because these functions write directly to an I/O port, they cannot be used in user code in Windows NT,
Windows 2000, Windows XP, and Windows Server 2003. For information about using I/O ports in these
operating systems, search for "Serial Communications in Win32" at MSDN."
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: What Windows version
I am using windows XP and 2000 interchangable
Mark Salsbery wrote: For information about using I/O ports in these
operating systems, search for "Serial Communications in Win32" at MSDN."
Does this mean that i have to send the message using serial port and not Parellel ports? If so, please offer some advice since i really needed to connect to the printer(parallel port).
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Wamuti wrote: Does this mean that i have to send the message using serial port and not Parellel ports?
No.
It means a long time ago, direct hardware access was no longer allowed by the operating system.
Maybe check this out: Code Project Parallel Port Articles (C++/MFC)[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks. I am going through it right now.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Wamuti wrote: windows gives me an error i can't really understand.
Well certainly someone here can understand it, especially if you don't post it because it's easier to understand if you can't see it
|
|
|
|
|
:-> Sorry for that,The error is
"The exception Privileged instruction.
(0xc0000096) occured in the application at location 0x1022cc4b"
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|