Forum: C++ May 28th, 2009 |
| Replies: 1 Views: 316 I believe I have solved my own question.
Here is the way it appears to work.
LowPart in little endian then HighPart in little endian
Of course, little endian is for my machine. Others
may... |
Forum: C++ May 26th, 2009 |
| Replies: 1 Views: 316 This is the hex output from a LARGE_INTEGER.
"EA 00 0B 00 A1 00 00 00"
On my machine a DWORD is read "00 0B 00 EA"
How do you place the high 32 bits in the
sequence?
This leads me to the... |
Forum: C++ May 25th, 2009 |
| Replies: 3 Views: 638 Just to let everyone know. The suggestion works great. That was my problem. |
Forum: C++ May 25th, 2009 |
| Replies: 3 Views: 638 OK, I'll try that. When you explained it to me in the timer thread, I thought you were suggesting that I leave the paint code right at the timer code. I'll try your suggestion now and put it in the... |
Forum: C++ May 22nd, 2009 |
| Replies: 3 Views: 638 I spent a lot of time trying to find out why "Message Box'
made my program act like it crashed. Originally I had to
bring up the Task Manager every time I allowed "Message
Box' to run to shut down... |
Forum: C++ May 7th, 2009 |
| Replies: 8 Views: 644 To Ancient Dragon:
I appreciate all the work you did. I've been working on it too. Without the paint sequence, the stack loads differently. It seems the compiler leaves out one line of code "POP... |
Forum: C++ May 7th, 2009 |
| Replies: 8 Views: 644 I've been doing some experiments while waiting for further replies.
If I move the two timer functions above the "DoMenu" function, then MessageBox will work. I don't know why but you can't beat... |
Forum: C++ May 7th, 2009 |
| Replies: 8 Views: 644 I blocked off the print text code in the time function and then raised the time to 10 seconds. Thaat failed. Then I killed the timer in the procedure as you suggested. That failed. Maybe I am not... |
Forum: Windows NT / 2000 / XP May 6th, 2009 |
| Replies: 2 Views: 300 Sorry I got onto the wrong thread. Please delete this from this thread. I have copied it all over to the recommended thread. |
Forum: C++ May 6th, 2009 |
| Replies: 8 Views: 644 I have a simple program that I am having trouble debugging.
It contains two different problems.
1. If I run a MessageBox in this program after the program is
up and running, the program crashes.... |
Forum: Windows NT / 2000 / XP May 6th, 2009 |
| Replies: 2 Views: 300 I have a simple program that I am having trouble debugging.
It contains two different problems.
1. If I run a MessageBox in this program after the program is
up and running, the program crashes.... |
Forum: C++ Nov 7th, 2008 |
| Replies: 2 Views: 346 Thanks for the thread. It looks interesting. I have only given it a quick scan so far. I will carefully look it over in the next day or so and see if it solves the problem. |
Forum: C++ Nov 6th, 2008 |
| Replies: 2 Views: 346 I program using Win32 API's. I compile with Borland or Microsoft "CL".
I am on an XP machine. I use .cpp extensions to compile so C++ rules apply.
I'm trying to get the bytes from my screen and... |
Forum: C++ Aug 25th, 2008 |
| Replies: 4 Views: 489 For anyone following this thread, I am giving up. I have read through loads of .h's and
other help files to no avail. I worked around using my "found and then lost" style symbol by using... |
Forum: C++ Aug 22nd, 2008 |
| Replies: 4 Views: 489 I looked in SWP and all the WM's and other places I could think of. Like I said, if I had not
used it in the program I am working on and seen it work, I would think there is no such thing. This is... |
Forum: C++ Aug 22nd, 2008 |
| Replies: 4 Views: 489 I am working with a MDI in my program. I use .cpp
to compile although I program primarily with api's.
I'm not sure whether that places me in C++ or
Windows threads. Since using .cpp I have to... |
Forum: C++ Jan 30th, 2008 |
| Replies: 0 Views: 780 I'm running AMD Xp1 compiling with Borland bcc32 with cpp
extensions.
When I minimize and then bring my window back up to normal, the
buttons in my toolbar disappear. I can bring them back up... |
Forum: C++ Jan 21st, 2008 |
| Replies: 2 Views: 2,297 Thanks for gettting back to me so quickly. I've downloaded the article you sent me. I'll mark the thread as solved if I am able to now pass my file as mapped. |
Forum: C++ Jan 21st, 2008 |
| Replies: 2 Views: 2,297 I'm running AMD, XP Service Pack 1
Compiling with a .cpp extension using Borland Bcc32
I'm trying to teach myself how to use File Mapping.
This is just the pertinent parts of my program.
Any... |
Forum: C++ Jan 2nd, 2008 |
| Replies: 2 Views: 1,989 Sorry. Just found another mistake I made when posting the code. I was experimenting and left an ampersand in front of lpvBits in the ReadFile. It doesn't belong. The bits are not pointed to by... |
Forum: C++ Jan 2nd, 2008 |
| Replies: 2 Views: 1,989 Sorry if this thread isn't wrapped correctly. I wrapped it as I have in the past and it went crazy. |
Forum: C++ Jan 2nd, 2008 |
| Replies: 2 Views: 1,989 Running AMD XP SP1 - Bitmap can be any bitmap
with a bitcount of 24. Compiling with Borland using .cpp
extentions.
I'm still having trouble getting CreateDIBitmap to
work for me. The hex bits... |
Forum: C++ Dec 22nd, 2007 |
| Replies: 7 Views: 3,499 I'm not a moderator but I do have some info that may help. You can send for a free DDK from Microsoft. It has sample code, tutorials, and a lot of good info on driver writing. You just have to pay... |
Forum: C++ Dec 22nd, 2007 |
| Replies: 1 Views: 1,118 I recently sent a request for help because ReadFile
kept crashing for me. The moderator sent me some code
which cured my problem. My next step was to
experiment to see what I had originally done... |
Forum: C++ Dec 19th, 2007 |
| Replies: 7 Views: 1,482 That did it. Thanks.
I put MyLength+1 to make sure I don't run over
my allowed memory. Doesn't that allow room for end of file? |
Forum: C++ Dec 19th, 2007 |
| Replies: 7 Views: 1,482 This is one of my many attemps. I have brought down most of my
declarations so you can see them.
HANDLE hfile;
HGLOBAL hmem;
LPDWORD dwRead = (LPDWORD)0;
LPVOID... |
Forum: C++ Dec 19th, 2007 |
| Replies: 7 Views: 1,482 I am having trouble getting ReadFile to work for me.
I am runnng an AMD with XP SP1. I compile with a .cpp
extention normally using Borland Bcc32 but I have
also compiled using cl.exe.
I... |
Forum: C++ Nov 18th, 2007 |
| Replies: 2 Views: 580 Maybe Microsoft caught their error. I got my WinHlp as part of my Windows supplied with my computer. On my machine there is one copy of some code and then an exact duplicate of the same section. It... |
Forum: C++ Nov 16th, 2007 |
| Replies: 2 Views: 580 Since I closed my thread, I will just open this new one for a comment.
I told you I had discovered an item in WinHelp called:
"Opening and displaying a bitmap file" If you want a laugh when... |
Forum: C++ Nov 15th, 2007 |
| Replies: 5 Views: 2,873 Prior to sending such a large block of code, I re-read the thread on
enclosing my code in code and /code. When back lighting my code
and hitting the provided button which I assumed would complete... |
Forum: C++ Nov 14th, 2007 |
| Replies: 5 Views: 2,873 I have to admit I haven't mastered the method you guys want when including code. I back lit all the code and hit the button "Wrap code tags around code" found above. Last button on the right. Clue me... |
Forum: C++ Nov 14th, 2007 |
| Replies: 5 Views: 2,873 I've tried to clean down this code so that it will demonstrate my problem but
contains little else. Just enough to make a window. This code will compile on
"BCC32" or "cl". I can't figure out why... |
Forum: C++ Oct 24th, 2007 |
| Replies: 0 Views: 1,355 I don't know if I am the only one having trouble with StretchBlt
or if my symtom is a normal situation.
StrechBlt works fine as I zoom the picture larger. I expect the
pic to loose quality if I... |
Forum: C++ Oct 18th, 2007 |
| Replies: 5 Views: 1,667 Problem solved. I learned quite a bit from the help I've gotten from this site.
thanks again. |
Forum: C++ Oct 18th, 2007 |
| Replies: 5 Views: 1,667 First let me thank you for setting up my code correctly. I read the thread that
told me to put <code> at the top and bottom. I assumed that the system would handle the rest when sent. Now I know... |
Forum: C++ Oct 17th, 2007 |
| Replies: 5 Views: 1,667 I didn't want to fill up a thread with a bunch of code, but I couldn't find a way to attach a file to an e-mail using this site's "send a message" system. I would have inserted the .CPP file.
This... |
Forum: C++ Oct 17th, 2007 |
| Replies: 4 Views: 3,694 Your suggestion worked like a charm.
After seeing so many viewers looking at my thread I
thought maybe I would have to put the source code in
so people could understand what I was talking... |
Forum: C++ Oct 16th, 2007 |
| Replies: 4 Views: 3,694 I think I may have confused the issue based on the above reply. Instead of calling my functions "DoPaint", I should have called them "DoChaChaCha" I am doing some painting in the function but I am... |
Forum: C++ Oct 16th, 2007 |
| Replies: 4 Views: 3,694 I was trying to send mouse positions to my status bar in
a larger program. I could not get them to write more than
one position to the status bar, then it stops changing.
To test why, I wrote a... |
Forum: C++ Sep 8th, 2007 |
| Replies: 1 Views: 769 I have been using the Borland BCC32 compiler and love the CPP32 line numbering tool. Now I want to switch to the cl.exe compiler. Is there a tool like CPP32 in the Microsoft system? |