Search:
Type: Posts; User: passel
Search:
Search took 0.28 seconds; generated 9 minute(s) ago.
-
Sorry I'm late to the game, I don't visit here very often any more, but I've often had to pack and unpack date of various types from packets and I usually use two functions to unpack values,...
-
Or I think you could also do "Rebuild Solution".
I believe Rebuild does a Clean, followed by a build, so essentially does the two steps in one.
-
I wouldn't try to install the VB 2010 Express version.
You may as well go for the current Visual Studio 2022 Community version, as it is free so if your hardware supports it, you should as well....
-
Another simple example I have is a project I wrote that had to simulate equipment that transmitted and received data in 16-bit, 32-bit, 48-bit and 64-bit types across a serial bus. It had to support...
-
For a binary file, you just preset the size of the array to what you are going to read from the file, and then just use "Get" to fill the array.
Something along these lines should work.
Open...
-
Yes, it uses a String as the container, so you can display a really long string, but since the textbox officially only supports 64K, as previously mentioned, some properties or methods of the control...
-
Mouse events have a higher priority than Timer events, so the timer events will be delayed by rapid mousemove events, which will cause drawing delays if you're drawing from the Timer event.
To use...
-
I'm not sure I understand when you would want to truncate the array.
You can truncate the array the same way you increase the array and preserve the data, i.e. use Redim Preserve with a smaller...
-
The point of using that method is that the picturebox drawn into would be a lot larger than the control containing it.
That way your dragging the picturebox would reveal more of the data that...
-
Your code in post #4 seems like it should work.
It works for me, but 64x64 pixel squares are rather large.
Your map seems like it must be fairly small. For example a 20x20 map wouldn't fit on a...
-
What is the value of MapResolution?
What scalemode are you using?
If your values of MapResolution and Spaces don't align with whole pixel values, then drawing coordinates have to round up or down...
-
Probably the easiest is to use a relative size for the square rather than an absolute size.
A quick modification of your code for a quick test.
The code will place the squares based on a 15x15...
-
The code doesn't make sense.
You only calculate the angle once, outside the loop, so inside the loop I would think you would be processing the same ray angle for every time through the loop.
That...
-
Perhaps choose the format you want to stream.
I'm assuming that when you read the image from a file, then the rawformat encoder value of the image is set based on the file type, e.g. bmp, png, jpg,...
-
I guess the question is what the limit of "any increment" is?
Surely something is feeding the angle/heading value that the control is displaying, and the update is quick enough to give some...
-
I'm not sure I understand the question. Of course the consumption is different, one is F and the other is G. The ratings for power consumption run from Best (A) to Worse (G), so F and G are both at...
-
As jdc2000 said, you could just write a simple parser that increments or decrements the indention level.
I did a quick test, and the code worked first shot, although it does add a blank line at the...
-
Using And is much more efficient than using Mod. Several times faster I believe.
i = i + (i And 1)
-
Put it inside
tags. An easy way is to select the text and press the "#" button in the menu above the reply window. But I usually just type in the code tags manually before I start typing or...
-
Don't process the last line being output in the loop. Do the last line after the loop and suppress the automatic newline by using ";" at the end of the line being printed.
Open...
-
I haven't tested it, but I know when the Do While, Do Until, etc. Loop was introduced, it was stated by Microsoft that Do While was preferred to While...Wend as it was implemented more efficiently,...
-
Yes. Along that line this is my simple example of updating the Gui at a set frequency and checking for the Alt key (either Alt key in this case, but you could check for LMenu and RMenu if you wanted...
-
Yes, you were running it in the IDE, not in Debug Mode.
We made the mistake of taking you literally and assume you had the configuration set for debug, and we probably should have raised the...
-
I guess the question is whether the rating is part of the file, which doesn't seem likely, or is dynamically fetched from an online service.
But I haven't worked with the newer formats of mp3, so...
-
He is saying that if you want to debug reliably, you don't want it to optimize. Optimization can remove lines of code that are unnecessary, or redone in a way that eliminates lines, and then you...
-
Good point, which I didn't consider.
-
That example doesn't seem to agree with what you've said in a couple of the earlier posts.
In those posts you say you want the values to be in reverse row order, but in your example you're showing...
-
It doesn't need a variable. True is the literal value that will satisfy staying in the loop forever, until some condition is met inside the loop and an "Exit Do" is executed to leave the loop at...
-
Which is why the "Prompt To Save Changes" is the middle ground, and is what I choose also.
That way you get the prompt to ask if you want to save before running and you can always select No if you...
-
I realize this is off the main topic of the thread, but I did do some analysis of all the possible games and the number of steps necessary to solve them, and my suspicion that 20 clicks being a...
-
I'm pretty sure I've heard Ron Weasley say it often..., so fairly certain it is common in Old England as well.
p.s. Just did a search on "ron weasley wicked" and it seems it may have become a meme.
-
But in a game you usually have a game loop that is constantly cycling and the game would likely be using the Windows API to check for key presses that have occurred in every cycle, so can easily see...
-
I finally found the project on some external storage and copied it over to my current machine. It was written in VB3 so I had to copy it over to a Virtual Machine that could run VB3. Its not very...
-
I couldn't find the code on my current machine. I may have to pull an old machine off a shelf and search, or search through old memory sticks that I have somewhere.
If all else fails, it should be...
-
I'm not sure that my code for "Lights Out" would help in your Random Function research, but I did write a solver and puzzle generator for it in the neighborhood of 17 to 20 years ago.
As I think...
-
That is fine, but you said you were only receiving the first line.
Perhaps you just meant that if you send three lines, or five lines, you would like to know when you've received all the lines so...
-
If you're sending your data as lines, then I think it would be easiest to read them as lines.
What I've done when reading serial data that is transmitted as lines of text, is simply start a...
-
I wouldn't call it a day to day occurrence.
Shooting kids in an elementary school is rarer than that. The article itself says it was the worse school shooting in a year, so a bit more than a day,...
-
I don't believe that dbasnett's code or tutorial would cover having to have different configurations for Tx and Rx simultaneously, or quickly switching the port between a transmit configuration and a...
-
Looking at that code, I would expect the Alpha is being stripped off, and all the transparent pixels would end up being black.
It appears you're converting the pixels to 24bpp which ignores the...
|
Click Here to Expand Forum to Full Width
|