Search:
Type: Posts; User: Comintern
Search:
Search took 0.24 seconds; generated 7 minute(s) ago.
-
February 10th, 2013, 11:00 AM
I had actually never used the ternary operators before this assignment (and I agree with your assessment of how those lines are written). The prof had two requirements for the assignment -- design...
-
February 10th, 2013, 09:25 AM
It crashes every time it runs. Looping around race() doesn't cause it to crash any earlier for me either -- it's always when main exits.
Changing the printf() gives the same segmentation fault in...
-
February 10th, 2013, 09:05 AM
That function was the first culprit that I looked at, but removing the function entirely gives the same crash. I check bounds on the parameters before they are passed to the function, which should...
-
February 9th, 2013, 09:05 PM
For some reason, I'm getting a segmentation fault when main() exits with the following code:
#include <iostream>
#include <cstring>
#include <ctime>
#include <cstdlib>
#include <unistd.h>
...
-
March 27th, 2008, 09:09 AM
Yeah, I think a reinstall might be in order. :) Could be related to a code profiling add-in that I was trying out.
-
March 26th, 2008, 04:54 PM
I think this was a compiler error (2nd on this project). It resolved after I commented out a Debug.Assert call elsewhere in the code. Totally unrelated to the form handling, and shouldn't be...
-
March 25th, 2008, 07:22 AM
I use Form_Load. Here's the initialize event. All it does is fill an array and set the form's icon. I don't touch any of the controls until the Form_Load (some of them may move if the form...
-
March 24th, 2008, 11:33 PM
I use LBound out of habit. After sprinkling some MsgBoxes around, the problem seems to be in the order that the form is being built. I call it like this:
Private Sub ShowAuditorTray(dStart As...
-
March 24th, 2008, 10:20 PM
I've run into a perplexing problem. I have a program that runs fine in the debugger, but throws a subscript error when compiled. This is the procedure that errors:
Private Sub ConfigureHeaders()...
-
January 22nd, 2008, 09:13 AM
One thing to add -- if the "grey area" is where the hidden form was, you might have to force the mdi parent to redraw itself. Either toss a DoEvents into your Form2 loading code or explicitly call...
-
January 21st, 2008, 08:40 AM
@dglienna - zMud is intended for parsing output from a text interface, so this really isn't a cheat (more like a functionality extension). I used to use it when I had enough time to go mudding.
...
-
January 17th, 2008, 11:34 PM
Ahhhh... Didn't notice you were using .NET. Glad it worked for you.
-
January 17th, 2008, 10:05 PM
If you have the URL, just get your own copy with the URLDownloadToFile API.
Private Declare Function URLDownloadToFile Lib "urlmon.dll" Alias "URLDownloadToFileA" _
(ByVal...
-
January 17th, 2008, 09:58 PM
I think the CopyFileEx API will let you copy files bigger than 4GB (not sure as I don't have a file to test it on). Check out the sample code on AllAPI.net. You need to control the progress display...
-
January 16th, 2008, 07:42 PM
You can always just loop through the controls and test for a name match too:
Dim oCont As Control
For Each oCont In Me.Controls
If LCase$(oCont.Name) =...
-
January 13th, 2008, 05:57 PM
To expand on the above, take a look at the following code:
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)
Private Sub...
-
January 13th, 2008, 05:26 PM
I think having variable length strings or objects in the Type would make it impossible.
My thought is that you can read the block of memory occupied by each UDT into a string and do a simple...
-
January 9th, 2008, 06:20 PM
This also works:
Private Function NumberInString(sSource As String, sMatch As String) As Long
Dim sTemp() As String
sTemp = Split(sSource, sMatch)
NumberInString =...
-
January 8th, 2008, 07:05 PM
Good point, and it expands on what I was talking about in terms of "robustness". What inheritance and function pointers let you do is write one bit of code that is generic to all of the objects in...
-
January 7th, 2008, 06:33 PM
The main thing you should determine is if function pointers are going to make things easier for you. For example, if you have lots of different types of actions that the player (or critters) can...
-
January 7th, 2008, 09:46 AM
We don't have our own ISP, but we are required to use an encrypted secure mail system for a bulk of our external communications. Generally if we are required to fax something as opposed to imaging...
-
January 5th, 2008, 10:45 AM
If all you need to do is find the last row with data, I believe the .UsedRange property is available in Excel 2000:
MsgBox wksheet.UsedRange.Rows.Count
-
January 5th, 2008, 10:38 AM
I would try to find the window that the fax software opens and automate it. While it may not be the ideal solution, as others in the thread have pointed out, other solutions can be extremely...
-
December 21st, 2007, 12:27 PM
Dump the bitmap into a 2 dimensional array. Then just transpose the rows and columns. This should give you the basic gist, to rotate clockwise you need to change the write order:
Private...
-
December 19th, 2007, 07:53 PM
Right idea, but it looks like the function attempts to determine the maximum and minimum values in the array. As far as I can tell, the data type of the array shouldn't be relevant -- it's the data...
|
Click Here to Expand Forum to Full Width
|