473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 4018
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*******@discussions.microsoft.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 frmStoryGenerator
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.EventArgs) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.Text = gstrTimeOfYear
txtActivity.Text = 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.Text = gstrVerbIng1
txtVerbIng2.Text = 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*******@discussions.microsoft.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*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Thanks for responding.

Here is my code:

Public Class frmStoryGenerator
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.EventArgs) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.Text = gstrTimeOfYear
txtActivity.Text = 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.Text = gstrVerbIng1
txtVerbIng2.Text = 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*******@discussions.microsoft.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.

InitializeComponent()

'Add any initialization after the InitializeComponent() 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.Dispose()

End If

End If

MyBase.Dispose(disposing)

End Sub

'Required by the Windows Form Designer

Private components As System.ComponentModel.IContainer

'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.RichTextBox

Friend WithEvents btnShow As System.Windows.Forms.Button

Friend WithEvents btnOK As System.Windows.Forms.Button

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

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.RichTextBox()

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

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

Me.SuspendLayout()

'

'tbxName

'

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

Me.tbxName.Name = "tbxName"

Me.tbxName.TabIndex = 0

Me.tbxName.Text = ""

'

'Label1

'

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

Me.Label1.Name = "Label1"

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

Me.Label1.TabIndex = 1

Me.Label1.Text = "Name"

Me.Label1.TextAlign = System.Drawing.ContentAlignment.BottomLeft

'

'Label2

'

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

Me.Label2.Name = "Label2"

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

Me.Label2.TabIndex = 3

Me.Label2.Text = "HomeTown"

Me.Label2.TextAlign = System.Drawing.ContentAlignment.BottomLeft

'

'tbxHome

'

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

Me.tbxHome.Name = "tbxHome"

Me.tbxHome.TabIndex = 2

Me.tbxHome.Text = ""

'

'RichTextBox1

'

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

Me.RichTextBox1.Name = "RichTextBox1"

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

Me.RichTextBox1.TabIndex = 4

Me.RichTextBox1.Text = ""

'

'btnShow

'

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

Me.btnShow.Name = "btnShow"

Me.btnShow.TabIndex = 5

Me.btnShow.Text = "Show"

'

'btnOK

'

Me.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK

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

Me.btnOK.Name = "btnOK"

Me.btnOK.TabIndex = 6

Me.btnOK.Text = "Ok"

'

'Form1

'

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

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

Me.Controls.AddRange(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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

End Sub

Private Sub btnShow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnShow.Click

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

End Sub

Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnOK.Click

Dispose()

End Sub

End Class
--

RDI

(remove the exclamation from the email address)

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
Hi Alice,

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

Bernie

"Alice" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Thanks for responding.

Here is my code:

Public Class frmStoryGenerator
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.EventArgs) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.Text = gstrTimeOfYear
txtActivity.Text = 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.Text = gstrVerbIng1
txtVerbIng2.Text = 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*******@discussions.microsoft.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*******@discussions.microsoft.com> wrote in messagenews:04****************************@phx.gbl...
Thanks for responding.

Here is my code:

Public Class frmStoryGenerator
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.EventArgs) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.Text = gstrTimeOfYear
txtActivity.Text = 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.Text = gstrVerbIng1
txtVerbIng2.Text = 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*******@discussions.microsoft.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*******@discussions.microsoft.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*******@discussions.microsoft.com> wrote in

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

Here is my code:

Public Class frmStoryGenerator
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.EventArgs) Handles
btnStory.Click
txtSetting.Text = gstrSetting
txtTimeOfYear.Text = gstrTimeOfYear
txtActivity.Text = 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.Text = gstrVerbIng1
txtVerbIng2.Text = 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*******@discussions.microsoft.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
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...
9
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
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 ~ --...
1
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...
2
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,...
0
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...
0
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...
1
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...
1
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.