|
ok, sorry. Yes the correct code is WM_INITDIALOG, but regardless of the message, I am still having a problem with this font.
|
|
|
|
|
Hello,
Is it possible to copy a file from one PC to another PC, which is located in different server.
In other way, is it possible to place a file on to USN(for example, http://remote/one) using CopyFile()?
Thanks in Advance.
Helping others satisfies you...
|
|
|
|
|
i have been programing in mfc c++ and using ADO as the access engine.can someone send m me a code to move one window to another.for instance form the customer window to receipt window
yee lets eat
|
|
|
|
|
kipchumba wrote: can someone send m me a code to move one window to another
No.
Your request is so unclear that one can not get the abstraction from your interface design to the MFC-actions to perform.
Sorry, but you need to restate your question.
With some luck, structuring and breaking up the problem for publication is half of the solution.
"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.
-- modified at 5:00 Friday 24th March, 2006
|
|
|
|
|
i have been programing in mfc c++ and using ADO as the access engine.can someone send m me a code to move one window to another.for instance form the customer window to receipt window
code to change window-- mabe switch
code to come back to customer
will be thankfull
yee lets eat
|
|
|
|
|
hi
Im currently working on wince( evc++).
my project includes sharing and tranfering of files between an ebox
and a computer ( currently running wince only). i.e. the tranfer is
between wince to wince rather than desktop to wince.
also i am using MFC to implement my project as im not very comfortable
with EVC++ .
if anyone has implemented any kind of project as described above( using
MFC) and does not have aproblem sharing the source code, please mail
me.
also apart from the file sharing i also have to implement a chat
system. so that different pds/ebox/ can communicate among themselves as
well as the desktop computer/ server running wince.
expecting a reply.....
Ekta Ahuja
ahuja.ekta@gmail.com
|
|
|
|
|
I haven't worked on EVC++ but as far as development of application is concerned we transferred files from one machine to another in the shared folders of the computers that had read / write privileges.
Use WNetResource structure etc to see how you can have access to the shared resources on the remote machine and then read and write through Sockets or what ever you are comfortable with
Does this solve your problem
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
Hi,
I am working with File reading in VC++. I am reading a log file which has around 1 lakh records. I have to read each record and filter them based on some options and display them on the UI.
The problem that I am facing is that it takes enormous amount of time to read so many records. I am using CStdIOFile for reading. Can any one please help me with some optimization techniques that will speed up my reading process.
Thanks
Madhavi.
|
|
|
|
|
ledallam wrote: which has around 1 lakh records
It is better you should implement a worker thread for readng and displaying in the UI.
- NS -
|
|
|
|
|
Hi, I think you should put each line of the log file in the CStringArray and lunch a worker thread to parse each item of that array. Good luck!
p.s. it would be nice to have a progress window
|
|
|
|
|
You could try overlapped file I/O, with a number of pending file reads simultaineously.
|
|
|
|
|
|
Hi,
In the dialog editor (I use VC 6), the size and positions are shown in DLU. Can I change it to screen pixel uints?
Thank you.
- NS -
|
|
|
|
|
NS17 wrote: Can I change it to screen pixel uints?
Did you try changing it?
Nibu thomas
Software Developer
|
|
|
|
|
?
What did you mean?
- NS -
|
|
|
|
|
Nibu thomas wrote: Did you try changing it?
yeah right
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
It was not to get the values in run time. I meant to view the values in status bar of the dialog editor.
- NS -
|
|
|
|
|
Yes you can chage the size and position
First of all you have to take the thatspecific window rect.
Use SetWindowPos() function to do this..
Bankey Khandelwal
Software Engineer
|
|
|
|
|
I am afraid you have mistaken.
We can see the size and position of selected control in the status bar, when we are in dialog editor. These are in DLU. I need to view them in real pixel scale. I think you got what I meant.
Thank you.
- NS -
|
|
|
|
|
|
i want in UNICODE exe Hook MessageBoxA and add some String, like:
MessageBoxA(NULL, "Hello", "Caption", 0); -> MessageBox(NULL, "Hello-Add", "Caption-Add", 0);
int WINAPI MyMessageBoxA(..lpszText, lpszCaption...)
{
...
strcat(lpszText, "-Add"); // <--- 1.
strcat(lpszCaption, "-Add"); // <--- 1.
MessageBoxA(...);
}
1.strcat and _mbscat, which function i need use?
|
|
|
|
|
well if you are hooking MessageBoxA in a UNICODE exe then it won't be called unless you specify MessageBoxA instead of MessageBox.
Anyways i think you can use strcat in MyMessageBoxA if it hooks the non unicode version of MessageBox AKA MessageBoxA
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
|
What is the need to hook MessageBoxA here? Simply calling it should do.
_tcscat should do it.
Nibu thomas
Software Developer
-- modified at 1:18 Friday 24th March, 2006
|
|
|
|
|
Did you read the post?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|