Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: BrianWren
Forum: Visual C++ April 28th, 2009, 10:51 AM
Replies: 1
Views: 1,096
Posted By BrianWren
I found out (elsewhere) that strcpy and strcat do...

I found out (elsewhere) that strcpy and strcat do not allocate memory.

In C++, to do the actions I was trying to do, space for the strings should be allocated with new, and the memory thus...
Forum: Visual C++ April 24th, 2009, 04:14 PM
Replies: 1
Views: 1,096
Posted By BrianWren
Strings, pointers and memory

I am trying to use strings of characters where I do not know the lenght before hand; I need dynamic-length strings.

I don't understand why this fails:
Code My...
Forum: Visual C++ April 22nd, 2009, 12:12 PM
Replies: 2
Views: 1,018
Posted By BrianWren
With continued searching, I came across a...

With continued searching, I came across a Support.Microsoft.com page that stated that, though the literature would appear to indicate otherwise, tmpfile() always creates its file in the root folder...
Forum: Visual C++ April 21st, 2009, 04:15 PM
Replies: 2
Views: 1,018
Posted By BrianWren
Waiting, waiting...

Waiting, waiting...
Forum: Pro VB 6 April 21st, 2009, 02:47 PM
Replies: 2
Views: 2,649
Posted By BrianWren
Executing Oracle Stored Procedure

I have an Oracle stored procedure (see below) which I can execute successfully from the simple interface from Oracle called SQL*Plus.

Trying to run this procedure from VB6 is giving me trouble,...
Forum: Visual C++ April 13th, 2009, 04:57 PM
Replies: 2
Views: 1,018
Posted By BrianWren
tmpfile()

When tmpfile() creates a temporary file, how does it decide where to create it?

Is it always the same spot?
Is it following an environment variable?
Does it try different solutions, returning...
Forum: Pro VB 6 April 13th, 2009, 11:23 AM
Replies: 2
Views: 1,096
Posted By BrianWren
Sending Mail with CDO

In Proj.vbp, have the following reference:

Reference=*\G{3FA7DEA7-6438-101B-ACC1-00AA00423326}#1.15#0#_
..\..\..\Program Files\Common Files\System\MSMAPI\1033_
\CDO.DLL#Microsoft CDO 1.21...
Forum: Beginning VB 6 April 13th, 2009, 10:45 AM
Replies: 5
Views: 1,289
Posted By BrianWren
I got an access denied error adding it to the...

I got an access denied error adding it to the toolbox. (Grrrrr...)

I have move to a different approach, and am going to start a new thread in VB 6 Pro on that approach; Hope to meet you there.
Forum: VB How-To April 8th, 2009, 05:15 PM
Replies: 4
Views: 7,900
Posted By BrianWren
I would say that 500mS is a little slow. The...

I would say that 500mS is a little slow. The update would only take place every ½ second.

When I do this, I always make the update 1/10 of a second or less. It just makes for a...
Forum: Beginning VB 6 April 8th, 2009, 05:12 PM
Replies: 5
Views: 1,289
Posted By BrianWren
What's the syntax for that?

What's the syntax for that?
Forum: Pro VB 6 April 8th, 2009, 05:09 PM
Replies: 2
Views: 2,417
Posted By BrianWren
I would add a reference to Windows Scripting...

I would add a reference to Windows Scripting Host, then change everything to: c1 = int(a1) xor int(b1)
linetowrite = linetowrite & chrw(c1)

Dim fso As New FileSystemObject
Dim f ...
Forum: Beginning VB 6 April 8th, 2009, 04:53 PM
Replies: 5
Views: 1,289
Posted By BrianWren
sENDING eMAIL fROM vb6

I have a program with no user interface, which I want to send email.

It runs on a server, being started through Task Scheduler on Reboot.

The entry point is Public Sub Main().

It looks...
Forum: Pro Visual Basic 2005 March 26th, 2009, 11:10 AM
Replies: 4
Views: 1,100
Posted By BrianWren
Proper spelling fixed it—thanks Phil.

Proper spelling fixed it—thanks Phil.
Forum: Pro Visual Basic 2005 March 25th, 2009, 12:07 PM
Replies: 4
Views: 1,100
Posted By BrianWren
Works much better when IDENTIFIED is spelled that...

Works much better when IDENTIFIED is spelled that way, rather than IDENTDDYSHNBCDFFHIED...[:I]

Thanks Phil.
Forum: Pro Visual Basic 2005 March 25th, 2009, 11:55 AM
Replies: 4
Views: 1,100
Posted By BrianWren
DOH! In reality, what I am doing is Dim...

DOH!

In reality, what I am doing is Dim cn As OracleConnection = Nothing
If OpenConnection(cn) Then Exit Sub ' Fn raises error, if nec.
...
...
Private Function OpenConnection(ByRef...
Forum: Pro Visual Basic 2005 March 24th, 2009, 05:36 PM
Replies: 4
Views: 1,100
Posted By BrianWren
Oracle Error When Issuing Command

I have:Dim cn As OracleConnection = Nothing
cn.ConnectionString = "Data Source = DIS;" & _
"User ID = xhyt;" & _
"Password = xhyt"
...
Forum: Pro VB 6 January 29th, 2009, 11:41 AM
Replies: 3
Views: 3,911
Posted By BrianWren
Nope. The previous machine exhibiting this...

Nope.
The previous machine exhibiting this problem (a machine which had worked for design time, but later did not) had Windows 2000.
Current machine has Windows XP Professional, SP2.
Forum: Pro VB 6 January 28th, 2009, 07:02 PM
Replies: 3
Views: 3,911
Posted By BrianWren
MS Windows Common Controls

On my machine, I have


Microsoft Windows Common Controls 5.0 (SP2) [COMCTL32.OCX]
Microsoft Windows Common Controls 2 5.0 (SP2) [COMCT232.OCX]
Microsoft Windows Common Controls 6.0 (SP4)...
Forum: VB Databases Basics September 30th, 2008, 02:51 PM
Replies: 2
Views: 1,186
Posted By BrianWren
What kind of data base is it?

What kind of data base is it?
Forum: VB.NET September 23rd, 2008, 11:31 AM
Replies: 10
Views: 4,395
Posted By BrianWren
When you write this:Sub draw(ByVal gr As...

When you write this:Sub draw(ByVal gr As Graphics)you have told the programming environment to expect to receive a Graphics object. The Sub declaration doesn’t actually cause a Graphics object to...
Forum: BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 September 22nd, 2008, 04:43 PM
Replies: 8
Views: 1,848
Posted By BrianWren
"That codes does *NOT* assign any value...

"That codes does *NOT* assign any value whatsoever to the cust variable" doesn't seem as meaningful to a beginner as explaining that it puts nothing in memory. You and I know what happens, so a...
Forum: BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 September 19th, 2008, 04:54 PM
Replies: 8
Views: 1,848
Posted By BrianWren
Another way to put it. Dim myVar As...

Another way to put it. Dim myVar As myClsNamein any form (with or without new, with or without an assignation) establishes that the variable called myVar can only be an instance of myClsName. ...
Forum: Visual Basic 2005 Basics September 15th, 2008, 04:10 PM
Replies: 17
Views: 3,487
Posted By BrianWren
What is your declaration for ReadProcessMemory? ...

What is your declaration for ReadProcessMemory?
How are you coming up with the value of addy?
I am going to try to duplicate this, so I need a little more info.
What is the process you are trying...
Forum: Visual Basic 2005 Basics September 15th, 2008, 11:40 AM
Replies: 17
Views: 3,487
Posted By BrianWren
I just looked at a posting at Google Groups. ...

I just looked at a posting at Google Groups. That posting indicates that the buffer should be a string... Doesn't make much sense, but it's worth a try: Dim MapNameByte(16) As Byte
' becomes...
Forum: Visual Basic 2005 Basics September 12th, 2008, 05:15 PM
Replies: 17
Views: 3,487
Posted By BrianWren
No, I meant this:Dim sString =...

No, I meant this:Dim sString = System.Text.Encoding.UTF8.GetString(...)Any Dim statement, with or without an assignation (an "= ...") should include a type for the variable being dimensioned.

In...
Showing results 1 to 25 of 500

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.