Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: marcostraf
Forum: Pro VB 6 May 20th, 2008, 04:17 PM
Replies: 10
Views: 5,396
Posted By marcostraf
there are thousands of algorithms for image...

there are thousands of algorithms for image processing (no kidding) it is not that easy for my to give you a place to start since I work in this field since 1984, too long ago for a starter. If you...
Forum: VB How-To April 30th, 2008, 01:16 PM
Replies: 9
Views: 1,721
Posted By marcostraf
You can use also the Split function: dim...

You can use also the Split function:

dim secondPart as string
secondPart = Split("21-1", "-")(1)

Split returns an array dividing the string of the first parameter using the separator specified...
Forum: Beginning VB 6 April 30th, 2008, 01:08 PM
Replies: 10
Views: 2,115
Posted By marcostraf
That is correct. The frx (or ctx) is just a...

That is correct. The frx (or ctx) is just a collection of binary and binary string data (like multi lines property of TextBox), and the frm stores the binary address of the point where the data...
Forum: Beginning VB 6 April 8th, 2008, 07:46 PM
Replies: 6
Views: 5,620
Posted By marcostraf
gaurisharya, you asked "Please reply if this code...

gaurisharya, you asked "Please reply if this code was helpful to you."
Brian Wren replied with HIS suggestions on how to write in a more proper English. English is not my first language, and I never...
Forum: Pro VB 6 March 31st, 2008, 02:48 PM
Replies: 11
Views: 2,038
Posted By marcostraf
as soon as the Sub Main ends, so does your...

as soon as the Sub Main ends, so does your application (unless you have loaded forms), therefore you can put KillTimer before the End Sub of the Main method.

"There are two ways to write...
Forum: Pro VB 6 March 27th, 2008, 12:40 PM
Replies: 9
Views: 9,831
Posted By marcostraf
all's well then :) This is whu is called "dll's...

all's well then :)
This is whu is called "dll's hell", maybe you know why you arrived there ;) and most of the time you'll never know how you came out

It was a permission problem, that is some...
Forum: Pro VB 6 March 25th, 2008, 05:59 PM
Replies: 9
Views: 9,831
Posted By marcostraf
The error message that you get "Permission...

The error message that you get "Permission denied" is quite strange, but I have a couple of ideas

Are you running as Administrator? If not, can you try it?
Do you have a anti-virus, anti-spyware...
Forum: Pro VB 6 March 24th, 2008, 07:56 PM
Replies: 9
Views: 9,831
Posted By marcostraf
I have these kind of problems all the time......

I have these kind of problems all the time... welcome to dll hell. The solution usually comes only after a big headache.

first of all, can you add that control to a brand new project?

"There...
Forum: Pro VB 6 March 11th, 2008, 08:06 PM
Replies: 7
Views: 1,070
Posted By marcostraf
declare a variabile of type Long, and read that...

declare a variabile of type Long, and read that from the file:

Dim f As Integer
f = FreeFile
Open "c:\foo" For Binary Access Read As #f
Dim k As Long
Get f, ,k
debug.print k, "0x" & hex(k)...
Forum: Beginning VB 6 September 17th, 2007, 05:46 PM
Replies: 5
Views: 1,440
Posted By marcostraf
or you can access directly without the loop,...

or you can access directly without the loop, using:

dim t as textBox
set t = controls("txtQty1")
msgbox t.text


"There are two ways to write error-free programs. Only the third one works." ...
Forum: Beginning VB 6 August 6th, 2007, 07:32 PM
Replies: 3
Views: 1,167
Posted By marcostraf
The TextBox control has a limit of 64K of memory ...

The TextBox control has a limit of 64K of memory
Try using a RichTextBox

"There are two ways to write error-free programs. Only the third one works."
Unknown
Forum: Pro VB 6 May 18th, 2007, 12:47 AM
Replies: 3
Views: 1,209
Posted By marcostraf
tough question. Forcing the caller to call a...

tough question.
Forcing the caller to call a method before accessing the output parameter can bring bad code errors.
You can use an internal variable (boolean) that is set to true every time a...
Forum: Beginning VB 6 May 18th, 2007, 12:37 AM
Replies: 2
Views: 1,556
Posted By marcostraf
Classes are not the only objects that can have...

Classes are not the only objects that can have Properties, it is possible to add Properties to any object, like Forms, UserCOntrols or even .bas modules

Properties can have "attributes" that can...
Forum: VB How-To May 11th, 2007, 01:58 PM
Replies: 2
Views: 1,275
Posted By marcostraf
image are saved in pixels, not in inches in...

image are saved in pixels, not in inches
in some (most) file formats it is possible to specify the pixel size, and some tools will use it to display the image "full" size"

"There are two ways to...
Forum: Beginning VB 6 May 7th, 2007, 11:40 AM
Replies: 1
Views: 699
Posted By marcostraf
in your Image mouseDown event, call SendMessage...

in your Image mouseDown event, call SendMessage passin WM_NCLBUTTONDOWN as parameter. example here:

http://support.microsoft.com/kb/173773

"There are two ways to write error-free programs. Only...
Forum: Beginning VB 6 May 3rd, 2007, 05:24 PM
Replies: 2
Views: 1,029
Posted By marcostraf
there are two ways to do it, depending if the...

there are two ways to do it, depending if the property is Let or Set.
Because you use Let, you should call it as (no Set):

clsMine.setCars = colCars

Otherwise, you have to use Set as Brian...
Forum: Pro VB 6 May 1st, 2007, 04:07 PM
Replies: 3
Views: 1,259
Posted By marcostraf
it depends. does it need to be public in one...

it depends.
does it need to be public in one project, and private in the other? that is the problem, otherwise it can be set to Private in both.

"There are two ways to write error-free programs....
Forum: Pro VB 6 May 1st, 2007, 12:25 PM
Replies: 3
Views: 1,259
Posted By marcostraf
Standalone projects cannot exposes interfaces,...

Standalone projects cannot exposes interfaces, this is why VB is complaining and wants to set that Class as Private.
The problem arises if that same class is used in other projects, like dll or...
Forum: Beginning VB 6 April 18th, 2007, 03:28 PM
Replies: 9
Views: 1,272
Posted By marcostraf
yes, use LoadPicture to load the file in a...

yes, use LoadPicture to load the file in a StdPicture object, then use the Width and Height properties of StdPicture (although I do not know if LoadPicture works with TIFF files)

"There are two...
Forum: VB How-To April 17th, 2007, 12:49 PM
Replies: 1
Views: 2,197
Posted By marcostraf
did you define "mydate" as string? ...

did you define "mydate" as string?

format(date,"dd/mm/yyyy") works fine for me in the immediate window

"There are two ways to write error-free programs. Only the third one works."
Unknown
Forum: Pro VB 6 April 17th, 2007, 12:45 PM
Replies: 1
Views: 1,145
Posted By marcostraf
what do you mean with "modules"? Are they...

what do you mean with "modules"? Are they standard VB .bas file or classes?

If I understand correctly, you have several "modules" (whatever they are) that they are shared between applications, and...
Forum: Beginning VB 6 April 17th, 2007, 12:38 PM
Replies: 9
Views: 1,272
Posted By marcostraf
for the name, use Dir() for the size: FileLen()...

for the name, use Dir()
for the size: FileLen()
for the type: GetAttr()
for the date: FileDateTime()

"There are two ways to write error-free programs. Only the third one works."
Unknown
Forum: VB How-To April 16th, 2007, 12:22 PM
Replies: 1
Views: 837
Posted By marcostraf
to start with you must have a valid VB copy...

to start with you must have a valid VB copy installed in your computer. I do not know if Microsoft still sells VB6, but I think it is still possible to buy it in the internet, or you can just skip...
Forum: VB.NET 2002/2003 Basics April 10th, 2007, 01:16 PM
Replies: 7
Views: 11,400
Posted By marcostraf
put this code in the MDI form: Dim...

put this code in the MDI form:

Dim activeChild As Form = Me.ActiveMDIChild


"There are two ways to write error-free programs. Only the third one works."
Unknown
Forum: Pro VB 6 April 2nd, 2007, 01:33 PM
Replies: 5
Views: 1,185
Posted By marcostraf
or you can use a MSFlexGrid (it is what I will...

or you can use a MSFlexGrid (it is what I will do, it is much easier to display columns of data)

"There are two ways to write error-free programs. Only the third one works."
Unknown
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 04:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.