Search:
Type: Posts; User: Skeeterbreath
Search:
Search took 0.06 seconds.
-
August 30th, 2017, 04:34 PM
It's because your divide function in not returning a value.
bool divide(int x, int y)
{
if (x % y == 0)
return true;
else
return false;
-
August 30th, 2017, 02:06 AM
I have an app written in C using the Win32 API for Windows 7 and higher.
The app streams ASCII g-code command strings to a multi axis router controller.
The controller can be communicated with...
-
March 12th, 2015, 05:03 PM
Vladimir, you are correct. My time consuming process involves reading and writing to a serial port. The writes are immediate, but the Reads can take a while because of needing to wait on the response...
-
March 12th, 2015, 04:22 PM
Vladimir, I used your suggestion of the "quick-and-dirty- hack" and altered my EnableControls function like so...
void EnableControls(bool enable)
{
MSG msg;
while...
-
March 12th, 2015, 02:08 PM
Vladimir, I understand. Thanks for the answer.
So where is the correct place/time to enable/disable the windows?
-
March 12th, 2015, 01:05 PM
I have a Win32 app using standard Win32 API (no MFC, etc.). My main window is subdivided into multiple child windows...
HWND child_window_01 = CreateWindow(L"Private Window Class", L"Child 01",...
-
October 18th, 2011, 09:02 AM
I am not sure if this is exactly what you are looking for, but you might want to take a look at...
...
-
August 24th, 2011, 05:15 PM
Paradox,
The documentation on CBItmap::CreateBitmapIndirect indicates that it takes a pointer to a BITMAP as the only argument, and you are indeed passing this call such a pointer.
But the...
-
July 19th, 2011, 03:37 PM
Ninja, Aamir,
Thanks for the suggestions. If you look in the code snippet in my first post on the thread you can see that I do indeed try to create the folder with CreateDirectory.
One of the...
-
July 18th, 2011, 03:39 PM
Trying to create a folder which gives full control rights to all users, everyone.
Problem is that when the folder is created, not only does it not give all users full control, but even I don't...
-
July 15th, 2008, 08:51 PM
Paul,
YOu are correct of course. As fsr as I can tell, I am not messing with the boundaries of the string that was allocated in the other DLL, but you never know. Essentially, the only thing I do...
-
July 15th, 2008, 08:46 PM
Paul,
That is because, to simplify the problem, I stripped out the "special stuff": references to other classes in other functions of BMPHEader, etc.
I inherited this project from my...
-
July 15th, 2008, 08:13 PM
Kirants,
All to true! This has been one heck of a code project to maintain, enlarge, etc.
All of the DLL projects, after being brought into VS 2008, were indeed "cleaned" and then "rebuilt" in...
-
July 15th, 2008, 08:07 PM
Joeman,
The project ALREADY compiles with 0 errors, 0 warnings. Tis is a CRT issue.
Also, per suggestions in the thread, the problem code was "Removed" and/or "altered". This resulted in a...
-
July 15th, 2008, 07:27 PM
VladimirF,
Let me check....no, it's the same code. We be looking at the same thang.
???
-
July 15th, 2008, 06:52 PM
Paul,
I have now tried the following. In AnyFunction I again replaced the dynamic array with a hard coded array of 1000...
_TCHAR imagepathname[1000];
_tcscpy_s(imagepathname, 1000,...
-
July 15th, 2008, 06:21 PM
VladimirF,
Thanks for the reply. There were a few typo's in my post. TO correct...
fread(header, size, filein);
....is actually...
-
July 15th, 2008, 05:33 PM
Paul,
Thanks for the help. I tried your following suggestions...
First I modified my AnyFunction as follows...
// function.c
-
July 15th, 2008, 01:59 PM
First some class code where the problem seems to be....
// BMPHeader.h
class BMPHeader
{
public:
unsigned long GetFilesize();
-
Yes. In both cases I am launching from the Visual Studio 6.00 IDE. To run "out of the debugger" I am using Ctrl+F5, to run "in the debugger" I am using F5
-
Something puzzling me on the following snippet of code...
LONG result = 0;
result = DocumentProperties(this->m_hWnd, printerhandle, newprinter, devmodeoutbuffer, devmodeoutbuffer,...
-
That is one wicked problem! I know that isn't much help, but you got me stumped on that one.
-
Mitch,
You are certainly welcome. I know that over the years these sharp people at Codeguru haved saved my butt many times and I enjoyed the opportunity to return the favor.
Skeet
-
Graham,
Thanks for posting that! I believe that is exactly the psot that helped me a while back. I didn't implement the abstract second example but I went for the forward declaration in your first...
-
Mitch,
THe problem is not classes that referecne other classes, but classes that referecne each other. For example...
Class A
{
void DoSomethingWithThis(Class B bin);
}
Class B
|
Click Here to Expand Forum to Full Width
|