473,671 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mad Libs-style program problem?

Hi -- I am trying to code a "mad libs" style program, in
which the user puts in nouns, adjectives, etc., into text
boxes. Then the user clicks on a button which opens a
message box. Inside the message box is a story with blanks
filled in by what the user entered into the text boxes.

Only when my message box opens, it does not plug in the
user's words.

Can anyone tell me what I'm doing wrong, or does anyone
have a sample of this kind of code?

Many thanks!

Nov 20 '05 #1
6 4030
Hi Alice,

Sounds pretty simple - you just want to search and replace in a large
string. Please show us your code - specifically the code that parses the
long string - and I'm sure someone here can help.

HTH,

Bernie Yaeger

"Alice" <an*******@disc ussions.microso ft.com> wrote in message
news:05******** *************** *****@phx.gbl.. .
Hi -- I am trying to code a "mad libs" style program, in
which the user puts in nouns, adjectives, etc., into text
boxes. Then the user clicks on a button which opens a
message box. Inside the message box is a story with blanks
filled in by what the user entered into the text boxes.

Only when my message box opens, it does not plug in the
user's words.

Can anyone tell me what I'm doing wrong, or does anyone
have a sample of this kind of code?

Many thanks!

Nov 20 '05 #2
Thanks for responding.

Here is my code:

Public Class frmStoryGenerat or
Inherits System.Windows. Forms.Form
' Declare variables for user input text boxes

Dim gstrSetting As String
Dim gstrActivity As String
Dim gstrVillain As String
Dim gstrPluralNoun1 As String
Dim gstrPluralNoun2 As String
Dim gstrAdj1 As String
Dim gstrAdj2 As String
Dim gstrAdj3 As String
Dim gstrAnimal As String
Dim gstrCountry As String
Dim gstrVerbIng1 As String
Dim gstrVerbIng2 As String
Dim gstrTimeOfYear As String

' Generate story in a message box

Private Sub btnStory_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.T ext = gstrTimeOfYear
txtActivity.Tex t = gstrActivity
txtVillain.Text = gstrVillian
txtPluralNoun1. Text = gstrPluralNoun1
txtPluralNoun2. Text = gstrPluralNoun2
txtAdj1.Text = gstrAdj1
txtAdj2.Text = gstrAdj2
txtAdj3.Text = gstrAdj3
txtAnimal.Text = gstrAnimal
txtCountry.Text = gstrCountry
txtVerbIng1.Tex t = gstrVerbIng1
txtVerbIng2.Tex t = gstrVerbIng2

MessageBox.Show ("Once, when I was in " &
gstrSetting & " in " & gstrTimeOfYear _
& ", I was out " & gstrActivity & " and came across a " &
gstrAdj1 & " sight. Of course, I was alone " _
& " at the time, so I had to face the danger alone. Though
it was a " & gstrAdj2 & " situation, I dove right in." _
& gstrVillain & " was trying to take over the world by " &
gstrVerbIng1 & gstrPluralNoun1 & ". The scheme" _
& " had to be stopped. But there were " & gstrAdj2 & " " &
gstrAdj3 & " in the way, not to mention voracious" _
& gstrPluralNoun2 & ". Still, it was all up to me to stop
it. I was victorious by " & gstrVerbIng2 & " into a large"
_
& " lake full of " & gstrAnimal & " and wrestling them all
while single-handedly convincing the local superhero of " _
& gstrCountry & " to step in and help. We started to
drive " & gstrVillian & " away. But just then, the
superhero " _
& " turned to wood, so it was all up to me. I stuffed the
villian into a large gunnysack and launched him to the
moon." _
& "Believe me, it happened. It's true." _
& " Really. The End.")

End Sub
End Class
-----Original Message-----
Hi Alice,

Sounds pretty simple - you just want to search and replace in a largestring. Please show us your code - specifically the code that parses thelong string - and I'm sure someone here can help.

HTH,

Bernie Yaeger

"Alice" <an*******@disc ussions.microso ft.com> wrote in messagenews:05******* *************** ******@phx.gbl. ..
Hi -- I am trying to code a "mad libs" style program, in
which the user puts in nouns, adjectives, etc., into text boxes. Then the user clicks on a button which opens a
message box. Inside the message box is a story with blanks filled in by what the user entered into the text boxes.

Only when my message box opens, it does not plug in the
user's words.

Can anyone tell me what I'm doing wrong, or does anyone
have a sample of this kind of code?

Many thanks!

.

Nov 20 '05 #3
Hi Alice,

You have your assignments backwards - gstrsetting = txtsetting.text not the
other way around.

Bernie

"Alice" <an*******@disc ussions.microso ft.com> wrote in message
news:04******** *************** *****@phx.gbl.. .
Thanks for responding.

Here is my code:

Public Class frmStoryGenerat or
Inherits System.Windows. Forms.Form
' Declare variables for user input text boxes

Dim gstrSetting As String
Dim gstrActivity As String
Dim gstrVillain As String
Dim gstrPluralNoun1 As String
Dim gstrPluralNoun2 As String
Dim gstrAdj1 As String
Dim gstrAdj2 As String
Dim gstrAdj3 As String
Dim gstrAnimal As String
Dim gstrCountry As String
Dim gstrVerbIng1 As String
Dim gstrVerbIng2 As String
Dim gstrTimeOfYear As String

' Generate story in a message box

Private Sub btnStory_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.T ext = gstrTimeOfYear
txtActivity.Tex t = gstrActivity
txtVillain.Text = gstrVillian
txtPluralNoun1. Text = gstrPluralNoun1
txtPluralNoun2. Text = gstrPluralNoun2
txtAdj1.Text = gstrAdj1
txtAdj2.Text = gstrAdj2
txtAdj3.Text = gstrAdj3
txtAnimal.Text = gstrAnimal
txtCountry.Text = gstrCountry
txtVerbIng1.Tex t = gstrVerbIng1
txtVerbIng2.Tex t = gstrVerbIng2

MessageBox.Show ("Once, when I was in " &
gstrSetting & " in " & gstrTimeOfYear _
& ", I was out " & gstrActivity & " and came across a " &
gstrAdj1 & " sight. Of course, I was alone " _
& " at the time, so I had to face the danger alone. Though
it was a " & gstrAdj2 & " situation, I dove right in." _
& gstrVillain & " was trying to take over the world by " &
gstrVerbIng1 & gstrPluralNoun1 & ". The scheme" _
& " had to be stopped. But there were " & gstrAdj2 & " " &
gstrAdj3 & " in the way, not to mention voracious" _
& gstrPluralNoun2 & ". Still, it was all up to me to stop
it. I was victorious by " & gstrVerbIng2 & " into a large"
_
& " lake full of " & gstrAnimal & " and wrestling them all
while single-handedly convincing the local superhero of " _
& gstrCountry & " to step in and help. We started to
drive " & gstrVillian & " away. But just then, the
superhero " _
& " turned to wood, so it was all up to me. I stuffed the
villian into a large gunnysack and launched him to the
moon." _
& "Believe me, it happened. It's true." _
& " Really. The End.")

End Sub
End Class
-----Original Message-----
Hi Alice,

Sounds pretty simple - you just want to search and

replace in a large
string. Please show us your code - specifically the code

that parses the
long string - and I'm sure someone here can help.

HTH,

Bernie Yaeger

"Alice" <an*******@disc ussions.microso ft.com> wrote in

message
news:05******* *************** ******@phx.gbl. ..
Hi -- I am trying to code a "mad libs" style program, in
which the user puts in nouns, adjectives, etc., into text boxes. Then the user clicks on a button which opens a
message box. Inside the message box is a story with blanks filled in by what the user entered into the text boxes.

Only when my message box opens, it does not plug in the
user's words.

Can anyone tell me what I'm doing wrong, or does anyone
have a sample of this kind of code?

Many thanks!

.

Nov 20 '05 #4
RDI
Why would you need to use replace?

Why not just build the text into the string in the first place.

This is a VERY basic version of what Alice was talking about:

Public Class Form1

Inherits System.Windows. Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.

InitializeCompo nent()

'Add any initialization after the InitializeCompo nent() call

End Sub

'Form overrides dispose to clean up the component list.

Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)

If disposing Then

If Not (components Is Nothing) Then

components.Disp ose()

End If

End If

MyBase.Dispose( disposing)

End Sub

'Required by the Windows Form Designer

Private components As System.Componen tModel.IContain er

'NOTE: The following procedure is required by the Windows Form Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.

Friend WithEvents tbxName As System.Windows. Forms.TextBox

Friend WithEvents Label1 As System.Windows. Forms.Label

Friend WithEvents Label2 As System.Windows. Forms.Label

Friend WithEvents tbxHome As System.Windows. Forms.TextBox

Friend WithEvents RichTextBox1 As System.Windows. Forms.RichTextB ox

Friend WithEvents btnShow As System.Windows. Forms.Button

Friend WithEvents btnOK As System.Windows. Forms.Button

<System.Diagnos tics.DebuggerSt epThrough()> Private Sub InitializeCompo nent()

Me.tbxName = New System.Windows. Forms.TextBox()

Me.Label1 = New System.Windows. Forms.Label()

Me.Label2 = New System.Windows. Forms.Label()

Me.tbxHome = New System.Windows. Forms.TextBox()

Me.RichTextBox1 = New System.Windows. Forms.RichTextB ox()

Me.btnShow = New System.Windows. Forms.Button()

Me.btnOK = New System.Windows. Forms.Button()

Me.SuspendLayou t()

'

'tbxName

'

Me.tbxName.Loca tion = New System.Drawing. Point(88, 24)

Me.tbxName.Name = "tbxName"

Me.tbxName.TabI ndex = 0

Me.tbxName.Text = ""

'

'Label1

'

Me.Label1.Locat ion = New System.Drawing. Point(16, 24)

Me.Label1.Name = "Label1"

Me.Label1.Size = New System.Drawing. Size(56, 23)

Me.Label1.TabIn dex = 1

Me.Label1.Text = "Name"

Me.Label1.TextA lign = System.Drawing. ContentAlignmen t.BottomLeft

'

'Label2

'

Me.Label2.Locat ion = New System.Drawing. Point(16, 56)

Me.Label2.Name = "Label2"

Me.Label2.Size = New System.Drawing. Size(64, 23)

Me.Label2.TabIn dex = 3

Me.Label2.Text = "HomeTown"

Me.Label2.TextA lign = System.Drawing. ContentAlignmen t.BottomLeft

'

'tbxHome

'

Me.tbxHome.Loca tion = New System.Drawing. Point(88, 56)

Me.tbxHome.Name = "tbxHome"

Me.tbxHome.TabI ndex = 2

Me.tbxHome.Text = ""

'

'RichTextBox1

'

Me.RichTextBox1 .Location = New System.Drawing. Point(200, 24)

Me.RichTextBox1 .Name = "RichTextBo x1"

Me.RichTextBox1 .Size = New System.Drawing. Size(208, 96)

Me.RichTextBox1 .TabIndex = 4

Me.RichTextBox1 .Text = ""

'

'btnShow

'

Me.btnShow.Loca tion = New System.Drawing. Point(88, 96)

Me.btnShow.Name = "btnShow"

Me.btnShow.TabI ndex = 5

Me.btnShow.Text = "Show"

'

'btnOK

'

Me.btnOK.Dialog Result = System.Windows. Forms.DialogRes ult.OK

Me.btnOK.Locati on = New System.Drawing. Point(168, 160)

Me.btnOK.Name = "btnOK"

Me.btnOK.TabInd ex = 6

Me.btnOK.Text = "Ok"

'

'Form1

'

Me.AutoScaleBas eSize = New System.Drawing. Size(5, 13)

Me.ClientSize = New System.Drawing. Size(424, 221)

Me.Controls.Add Range(New System.Windows. Forms.Control() {Me.btnOK,
Me.btnShow, Me.RichTextBox1 , Me.Label2, Me.tbxHome, Me.Label1, Me.tbxName})

Me.Name = "Form1"

Me.Text = "Form1"

Me.ResumeLayout (False)

End Sub

#End Region

Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load

End Sub

Private Sub btnShow_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles btnShow.Click

Me.RichTextBox1 .Text = "My name is " & Me.tbxName.Text &
Microsoft.Visua lBasic.ChrW(10) & "I was born in " & Me.tbxHome.Text

End Sub

Private Sub btnOK_Click(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles btnOK.Click

Dispose()

End Sub

End Class
--

RDI

(remove the exclamation from the email address)

"Bernie Yaeger" <be*****@cherwe llinc.com> wrote in message
news:On******** ******@tk2msftn gp13.phx.gbl...
Hi Alice,

You have your assignments backwards - gstrsetting = txtsetting.text not the other way around.

Bernie

"Alice" <an*******@disc ussions.microso ft.com> wrote in message
news:04******** *************** *****@phx.gbl.. .
Thanks for responding.

Here is my code:

Public Class frmStoryGenerat or
Inherits System.Windows. Forms.Form
' Declare variables for user input text boxes

Dim gstrSetting As String
Dim gstrActivity As String
Dim gstrVillain As String
Dim gstrPluralNoun1 As String
Dim gstrPluralNoun2 As String
Dim gstrAdj1 As String
Dim gstrAdj2 As String
Dim gstrAdj3 As String
Dim gstrAnimal As String
Dim gstrCountry As String
Dim gstrVerbIng1 As String
Dim gstrVerbIng2 As String
Dim gstrTimeOfYear As String

' Generate story in a message box

Private Sub btnStory_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.T ext = gstrTimeOfYear
txtActivity.Tex t = gstrActivity
txtVillain.Text = gstrVillian
txtPluralNoun1. Text = gstrPluralNoun1
txtPluralNoun2. Text = gstrPluralNoun2
txtAdj1.Text = gstrAdj1
txtAdj2.Text = gstrAdj2
txtAdj3.Text = gstrAdj3
txtAnimal.Text = gstrAnimal
txtCountry.Text = gstrCountry
txtVerbIng1.Tex t = gstrVerbIng1
txtVerbIng2.Tex t = gstrVerbIng2

MessageBox.Show ("Once, when I was in " &
gstrSetting & " in " & gstrTimeOfYear _
& ", I was out " & gstrActivity & " and came across a " &
gstrAdj1 & " sight. Of course, I was alone " _
& " at the time, so I had to face the danger alone. Though
it was a " & gstrAdj2 & " situation, I dove right in." _
& gstrVillain & " was trying to take over the world by " &
gstrVerbIng1 & gstrPluralNoun1 & ". The scheme" _
& " had to be stopped. But there were " & gstrAdj2 & " " &
gstrAdj3 & " in the way, not to mention voracious" _
& gstrPluralNoun2 & ". Still, it was all up to me to stop
it. I was victorious by " & gstrVerbIng2 & " into a large"
_
& " lake full of " & gstrAnimal & " and wrestling them all
while single-handedly convincing the local superhero of " _
& gstrCountry & " to step in and help. We started to
drive " & gstrVillian & " away. But just then, the
superhero " _
& " turned to wood, so it was all up to me. I stuffed the
villian into a large gunnysack and launched him to the
moon." _
& "Believe me, it happened. It's true." _
& " Really. The End.")

End Sub
End Class
-----Original Message-----
Hi Alice,

Sounds pretty simple - you just want to search and

replace in a large
string. Please show us your code - specifically the code

that parses the
long string - and I'm sure someone here can help.

HTH,

Bernie Yaeger

"Alice" <an*******@disc ussions.microso ft.com> wrote in

message
news:05******* *************** ******@phx.gbl. ..
> Hi -- I am trying to code a "mad libs" style program, in
> which the user puts in nouns, adjectives, etc., into

text
> boxes. Then the user clicks on a button which opens a
> message box. Inside the message box is a story with

blanks
> filled in by what the user entered into the text boxes.
>
> Only when my message box opens, it does not plug in the
> user's words.
>
> Can anyone tell me what I'm doing wrong, or does anyone
> have a sample of this kind of code?
>
> Many thanks!
>
.


Nov 20 '05 #5
Bernie,

You absolutely rock! I can't believe I didn't see that!
Thank you so much! My program works perfectly now.

RDI,
Thank you for showing me an alternative way I could do
this kind of program!

Many thanks,
Alice

-----Original Message-----
Hi Alice,

You have your assignments backwards - gstrsetting = txtsetting.text not theother way around.

Bernie

"Alice" <an*******@disc ussions.microso ft.com> wrote in messagenews:04******* *************** ******@phx.gbl. ..
Thanks for responding.

Here is my code:

Public Class frmStoryGenerat or
Inherits System.Windows. Forms.Form
' Declare variables for user input text boxes

Dim gstrSetting As String
Dim gstrActivity As String
Dim gstrVillain As String
Dim gstrPluralNoun1 As String
Dim gstrPluralNoun2 As String
Dim gstrAdj1 As String
Dim gstrAdj2 As String
Dim gstrAdj3 As String
Dim gstrAnimal As String
Dim gstrCountry As String
Dim gstrVerbIng1 As String
Dim gstrVerbIng2 As String
Dim gstrTimeOfYear As String

' Generate story in a message box

Private Sub btnStory_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.T ext = gstrTimeOfYear
txtActivity.Tex t = gstrActivity
txtVillain.Text = gstrVillian
txtPluralNoun1. Text = gstrPluralNoun1
txtPluralNoun2. Text = gstrPluralNoun2
txtAdj1.Text = gstrAdj1
txtAdj2.Text = gstrAdj2
txtAdj3.Text = gstrAdj3
txtAnimal.Text = gstrAnimal
txtCountry.Text = gstrCountry
txtVerbIng1.Tex t = gstrVerbIng1
txtVerbIng2.Tex t = gstrVerbIng2

MessageBox.Show ("Once, when I was in " &
gstrSetting & " in " & gstrTimeOfYear _
& ", I was out " & gstrActivity & " and came across a " & gstrAdj1 & " sight. Of course, I was alone " _
& " at the time, so I had to face the danger alone. Though it was a " & gstrAdj2 & " situation, I dove right in." _
& gstrVillain & " was trying to take over the world by " & gstrVerbIng1 & gstrPluralNoun1 & ". The scheme" _
& " had to be stopped. But there were " & gstrAdj2 & " " & gstrAdj3 & " in the way, not to mention voracious" _
& gstrPluralNoun2 & ". Still, it was all up to me to stop it. I was victorious by " & gstrVerbIng2 & " into a large" _
& " lake full of " & gstrAnimal & " and wrestling them all while single-handedly convincing the local superhero of " _ & gstrCountry & " to step in and help. We started to
drive " & gstrVillian & " away. But just then, the
superhero " _
& " turned to wood, so it was all up to me. I stuffed the villian into a large gunnysack and launched him to the
moon." _
& "Believe me, it happened. It's true." _
& " Really. The End.")

End Sub
End Class
>-----Original Message-----
>Hi Alice,
>
>Sounds pretty simple - you just want to search and

replace in a large
>string. Please show us your code - specifically the code
that parses the
>long string - and I'm sure someone here can help.
>
>HTH,
>
>Bernie Yaeger
>
>"Alice" <an*******@disc ussions.microso ft.com> wrote in

message
>news:05******* *************** ******@phx.gbl. ..
>> Hi -- I am trying to code a "mad libs" style

program, in >> which the user puts in nouns, adjectives, etc., into

text
>> boxes. Then the user clicks on a button which opens a
>> message box. Inside the message box is a story with

blanks
>> filled in by what the user entered into the text boxes. >>
>> Only when my message box opens, it does not plug in the >> user's words.
>>
>> Can anyone tell me what I'm doing wrong, or does anyone >> have a sample of this kind of code?
>>
>> Many thanks!
>>
>
>
>.
>

.

Nov 20 '05 #6
Hi Alice,

Your very welcome.

Bernie
"Alice" <an*******@disc ussions.microso ft.com> wrote in message
news:02******** *************** *****@phx.gbl.. .
Bernie,

You absolutely rock! I can't believe I didn't see that!
Thank you so much! My program works perfectly now.

RDI,
Thank you for showing me an alternative way I could do
this kind of program!

Many thanks,
Alice

-----Original Message-----
Hi Alice,

You have your assignments backwards - gstrsetting =

txtsetting.text not the
other way around.

Bernie

"Alice" <an*******@disc ussions.microso ft.com> wrote in

message
news:04******* *************** ******@phx.gbl. ..
Thanks for responding.

Here is my code:

Public Class frmStoryGenerat or
Inherits System.Windows. Forms.Form
' Declare variables for user input text boxes

Dim gstrSetting As String
Dim gstrActivity As String
Dim gstrVillain As String
Dim gstrPluralNoun1 As String
Dim gstrPluralNoun2 As String
Dim gstrAdj1 As String
Dim gstrAdj2 As String
Dim gstrAdj3 As String
Dim gstrAnimal As String
Dim gstrCountry As String
Dim gstrVerbIng1 As String
Dim gstrVerbIng2 As String
Dim gstrTimeOfYear As String

' Generate story in a message box

Private Sub btnStory_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.T ext = gstrTimeOfYear
txtActivity.Tex t = gstrActivity
txtVillain.Text = gstrVillian
txtPluralNoun1. Text = gstrPluralNoun1
txtPluralNoun2. Text = gstrPluralNoun2
txtAdj1.Text = gstrAdj1
txtAdj2.Text = gstrAdj2
txtAdj3.Text = gstrAdj3
txtAnimal.Text = gstrAnimal
txtCountry.Text = gstrCountry
txtVerbIng1.Tex t = gstrVerbIng1
txtVerbIng2.Tex t = gstrVerbIng2

MessageBox.Show ("Once, when I was in " &
gstrSetting & " in " & gstrTimeOfYear _
& ", I was out " & gstrActivity & " and came across a " & gstrAdj1 & " sight. Of course, I was alone " _
& " at the time, so I had to face the danger alone. Though it was a " & gstrAdj2 & " situation, I dove right in." _
& gstrVillain & " was trying to take over the world by " & gstrVerbIng1 & gstrPluralNoun1 & ". The scheme" _
& " had to be stopped. But there were " & gstrAdj2 & " " & gstrAdj3 & " in the way, not to mention voracious" _
& gstrPluralNoun2 & ". Still, it was all up to me to stop it. I was victorious by " & gstrVerbIng2 & " into a large" _
& " lake full of " & gstrAnimal & " and wrestling them all while single-handedly convincing the local superhero of " _ & gstrCountry & " to step in and help. We started to
drive " & gstrVillian & " away. But just then, the
superhero " _
& " turned to wood, so it was all up to me. I stuffed the villian into a large gunnysack and launched him to the
moon." _
& "Believe me, it happened. It's true." _
& " Really. The End.")

End Sub
End Class

>-----Original Message-----
>Hi Alice,
>
>Sounds pretty simple - you just want to search and
replace in a large
>string. Please show us your code - specifically the code that parses the
>long string - and I'm sure someone here can help.
>
>HTH,
>
>Bernie Yaeger
>
>"Alice" <an*******@disc ussions.microso ft.com> wrote in
message
>news:05******* *************** ******@phx.gbl. ..
>> Hi -- I am trying to code a "mad libs" style program, in >> which the user puts in nouns, adjectives, etc., into
text
>> boxes. Then the user clicks on a button which opens a
>> message box. Inside the message box is a story with
blanks
>> filled in by what the user entered into the text boxes. >>
>> Only when my message box opens, it does not plug in the >> user's words.
>>
>> Can anyone tell me what I'm doing wrong, or does anyone >> have a sample of this kind of code?
>>
>> Many thanks!
>>
>
>
>.
>

.

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

35
2326
by: Gabriel Zachmann | last post by:
Is there any generic way to use C++ libraries from within Python. I seem to recall that there are tools to generate wrappers for C-libraries semi-automatically. But those were still way too cumbersome, IMHO. What I would like to have is some module (or whatever), with which I can say "load this C++ library", and then, "create that C++ object" or "call method x of C++ object y".
9
1425
by: Robin Becker | last post by:
Does anyone know if it is feasible to have static libraries for both 2.3 and 2.4 compatible extensions. I'm worrying about libjpeg etc in a win32 environment. -- Robin Becker
1
1806
by: Ingo Nolden | last post by:
When I build a static lib how can I force the linker to include other lib modules or at least the symbols that are used in my libs? -- ~ Samba, more than a low cost File and Printer server ~ -- Let us OpenSource -- -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
1
1862
by: miles.wrigley | last post by:
We need a C/C++ compiler: - Compiler will be used to create functions and OBJs/LIBs (C++ code with C language wrapper) that will be linked and called from an embedded application. - Preferred host is Windows PC. - Target must be embedded 486. - Compiler's must do FAR (i.e., protected mode, 48 bit, segment & offset) pointers and other addresses. - Compiler must generate OMF 386 OBJs or LIBs. - Our embedded OS is not from Intel or...
2
1515
by: B Squared | last post by:
I recently installed PHP 5.0.4 on my Fedora system. I compiled in the GD option. (--with-gd). Then I tested the ImageTypes() function. It seems .png and .gif (IMG_PNG and IMG_GIF) are supported, but jpeg (IMG_JPEG) is not. Is this expected? How do I get .jpeg support? -- segway -- Out of curiousity, I checked the php-config file in my ../php/bin dir and here is the libs that are listed:
0
877
by: Bertrand | last post by:
Hi, I have imported several unmanaged C++ LIBs into a mixed C++ DLL. Two LIBs have the class name (CLog) without namespace. Is there a way to assign a namespace to each imported LIB in the mixed DLL project? Thanks!
0
1101
by: ArtiB | last post by:
Hi, I have VC++ Windows form application in VS 2005. I am not able to access some static libs(VC6 migrated) from this application. Getting exception of type 'System.TypeInitializationException' in Unknown Module This assertion comes before executing the code in Main(). So I want to know are there any issues accessing static libs(unmanaged) from .Net application. These static libs use MFC classes..So anything to do with that?? Any...
1
1810
by: Raman | last post by:
Hi All, I have two libs (libFirst.a and libSecond.a). Both libs contains a common function func(). Now I want to link an application "app" with these two libs as gcc -o app libFirst.a libSecond.a app.c. It gives( and it should ) multiple declaration error . Is there any
1
2511
by: tvnaidu | last post by:
I have windows code to port to Linux, there are some static libraries like xyz.lib, also shared libs ABC.dll, I have to convert those static and shared libs (basically static will be used to make shared) to Linux, what is the extension in Linux (shared is .so, static is .lib?), can I get some sample makefile for static libs and shared libs?. thanks.
0
1572
by: tvnaidu | last post by:
created a shared library .so file, using "gcc -shared ...." command, when I did "ldd xyz.so", I cannot see those static libs which are added with -l option, also I gave path -L/opt/lib where I copied all static libs (.a files), how can I see what are libs included in shared lib?. I have another post, where I posted ldd command output.
0
8473
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8911
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2808
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.