|
for i culminating task i have to create my own program using visual basics...i have no idea what to do.. I'm in grade 11, so something easier would be good, but not like really really simple. Does anyone have any ideas on what kind of a program i could create?
|
|
|
|
|
carleyt wrote: for i culminating task i have to create my own program using visual basics...
So wouldn't you be better served posting here?
"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
|
|
|
|
|
i wrote a c/s app. the client sends a DWORD to the server.it runs no error,but the DWORD sent doesn't equal to the DWORD received some times ,how it happens?
|
|
|
|
|
Someone ate a byte or two on the way? Seriously though, you need to be more specific than that. Read the guidelines ("How to get an answer to your question") which is on top of this forum, please.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Inputs, outputs...We have no elements, Watson!
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]
|
|
|
|
|
maybe there is something about network byte order!
|
|
|
|
|
The network packets contain:
- packet information, which must obey the byte order specified in the standards specification; the drivers and network protocols are there to take care of that on both ends.
- the actual user-defined data (the "payload"); here it is up to the user how the bytes have to be interpreted. As the OP said it works often and fails sometimes, I don't think a byte ordering mistake was made.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Please upload you code............
|
|
|
|
|
o!! I find the problem at last! It is a Multithread problem, one data struction used in multithread without protection, data was dirty. 
|
|
|
|
|
a dirty DWORD???
you mean you didn't correctly make a local copy then, it is too small to not update atomically.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
my multithread app used some threads which have a socket parameter sent in,before the parameter being used ,another thread make it dirty. this is what happened in my app.
|
|
|
|
|
Is there any way to save these files programmaticaly
Trioum
modified on Friday, June 12, 2009 2:04 AM
|
|
|
|
|
trioum wrote: We Normally save the existing file (.doc,.txt etc) by pressing the save button
What save button? In which application? Who is "We" and could you elaborate on "Normally"?
trioum wrote: Is there any way to save these files programmaticaly
Possibly. That's the best I can do with the given context.
|
|
|
|
|
ok process from another programme
Trioum
modified on Friday, June 12, 2009 2:10 AM
|
|
|
|
|
trioum wrote: by pressing the save button
OK, I just spotted the thread where you asked the same question:
http://www.codeproject.com/Messages/3053288/saving-file.aspx[^]
The save button you refer to appears to be some mystical entity or is possibly located in a parallel universe (or both?) since you are unable to tell us more about it.
|
|
|
|
|
tell me one thing what will you do if save the content
Trioum
modified on Friday, June 12, 2009 2:16 AM
|
|
|
|
|
|
I think what he's looking for is a way to send the correct message or key value to another program to make it save the current file, something which has been covered here many times, and which Google will give an answer to in about 5 ms.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Why the hell are you posting all this rubbish in the Visual C++ forum? Can't you just see what kind of lame posts are you making?!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Word provides a menu item for this or am I wrong?
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]
|
|
|
|
|
The level of dross questions have increased many fold these days.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Must be a nest somewhere nearby...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
I implemented an open file dialog based on the following sample:
Host Windows Explorer in your applications using the new Vista hosting APIs[^]
It displays a fully functional Windows Explorer window to allow the user to navigate and pick a file or folder.
Everything works fine except one detail. When the user double clicks a file in that window, the system attempts to open it with the default application registered for that type of file. I don't want that, because I want my application to open the file.
More precisely, my application searches for resources in executables. When the user double clicks an exe file, I don't want the file to be started to run, I just want to search it.
I need to intercept the double click messages, but I'm clueless how to do that using ATL.
Using the CFileDialog class is not an option, I need to select directories too.
Using SHBrowseForFolder is not an option either, I need additional controls in the dialog.
|
|
|
|
|
Hello, can anyone please point me in the right direction on how to print from a dialog based application?
I have scoured the net for countless hours searching for a solution to this problem.
I know it's a standard task in an SDI or MDI application but I already have a nice dialog based application created and I don't want to start over or convert it to SDI/MDI.
Specifically what I want to do is print a CTreeCtrl out. But basically I'm wondering is there is a general strategy for printing out the contents in any control, whether it be a picture control with a bitmap, list control in report view, or whatever it may be. If I can just get a concrete example of how to print out some control, a tree one for example, then I think I can figure out to print other controls.
No one out there seems to know how to do this. I've found code examples in several places that supposedly lets you print a bitmap, but I'm not sure how to "convert" a control to a bitmap...besides, that sounds like overkill.
What few references I have found involve very convoluded code that involves getting a printer DC and then attaching it some other member variable (the examples never tell you exactly what type object the m_x variable is that they attach the printer DC to), then some other stuff is done and eventually startPage(), etc. are called. But I have never been able to get any of these examples to compile, even after tinkering with them for hours.
So is there anyone out there reading this that can please help me with this?? I'm not asking for anyone to write the code for me. All I need is a clear explanation of the procedure for printing out a control.
Please help!?
|
|
|
|
|
Printing on Windows it is much ike drawing, i.e. you get a print DC and the use it to render graphical output to the printer. As introductory material see, for instance, this article [^].
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]
|
|
|
|