|
choose a single forum and stick to it!
|
|
|
|
|
By writing code...
What? You thought we were going to do your homework for you?
Project Euler has a couple of problems that are similar. You start by narrowing down the sets of numbers you have to work with.
|
|
|
|
|
Dave Kreskowiak wrote: Project Euler has a couple of problems that are similar.
Indeed. As well as much harder ones. I'm off going to tackle some more of them
|
|
|
|
|
Yeah, they are cool. I've done the first 75 of them in the last couple months, but haven't had time to look at them in the last few weeks.
|
|
|
|
|
I started last year, did almost 100 of them (using C#), created a little article[^], and decided to wait for .NET 4.0 (i.e. BigInteger); I really should start a second stint now.
|
|
|
|
|
hi guys, i have a projetec on vb.net, this project is seted to use .net framework 3.5, but i have to install this application in a windows 2000, this windows cant install .net framework 3.5, so i have to change my project, and that is the problem, a have no ideia, how it is done? thank you very much
|
|
|
|
|
This should have been thought before even starting with the development.
What kind of application is it? Is it using anything new that was introduced in .Net 3.5? If not, just set the target framework to 2.0 and see if application works fine.
|
|
|
|
|
i just used webbrowser, System.Data.OleDb and Npgsql... where can i change this target? thanks
|
|
|
|
|
look for "project properties", there are a couple of ways to get there.
|
|
|
|
|
Well, i tried, but no sucess, it is asking for .net framework 3.5 to be installed
|
|
|
|
|
1. when you change the target setting, you have to rebuild.
2. when you also create an installer, you'd have to modify that one too. Don't ask for details, I don't have them.
|
|
|
|
|
Ok, thank you anyway, i will try again here... hugs
|
|
|
|
|
As Luc told, change the target framework from the project properties. MSDN would help on how to do that.
Also, you can very well use new "compiler features" available with .Net 3.5. Your code will still run fine on a computer with .Net framework 2.0.
|
|
|
|
|
i need help on usb drive. when a user inserts a usb drive, auto run starts and diplays some of the options to select from. what i want is to add my applications exe to the list of auto run when usb drive is inserted in usb port, so that i can select my application and do some aftermath. please help. simply i want usb drive to run my application when i insert it into my computer.
|
|
|
|
|
Please do not cross-post (put the same question in more than one forum). Very very rude!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
Why do programmers often confuse Halloween and Christmas? - Because 31 Oct = 25 Dec.
Business Myths of the Geek #4 'What you think matters.'
|
|
|
|
|
you should pick one forum to ask your question.
|
|
|
|
|
This[^] should get you started.
|
|
|
|
|
Hi everybody,
Once again I need help. I made a COM exposed vb.net lib for an old VB6 app. Which was tested (prior and after COM exposure) using a simple stand-alone .net app with the expected results. Then, used regasm ... to re-generate and register the .tlb file and tested it again using the VB6 app; so far so good.
Copied and registed the new dll and the .tlb files (did registed the .tlb) into two other machines; it all worked as expected. So I said to myself "I am ready to deploy", yeah right!
After following the exact same procedure with tha exact same files in the target machines, all I get is this message: "automation error" (quite explicit, right?)
To rule any missing .net dependencies out, I tested the stand-alone .net app in those machines, and everything works as expected, but can't make the VB6 app work. I ran out of ideas, and of course, bosses want my head!
Can anybody offer any ideas to save my skiny neck? Thank you all so much for your time and interest.
Best regards,
Alex.
|
|
|
|
|
Maybe the vb6 dll does not get registered during the installation.
My signature "sucks" today
|
|
|
|
|
Hi Abhinav,
Thank you for your responce. That was my first thought, no wait, it was not it, my first thought was "what the f..... @!$%%&^*@#$% is going on!" as you very well imagine
I did think of that, so I manually registered the .tlb without positive results.
I can't explain why it works only on some computers. They all (the good ones and the bad ones) have the same .net framework installed, SP, patches, etc. I think it has to do with a VB6 o another COM dll I have not been able to pin-point.
I even used a couple of tools to detect any missing dependecies, both COM and .net, but had no good luck.
|
|
|
|
|
alexvw wrote: Then, used regasm
You'd additionally need to run "regsvr32" for any OLE-controls (ActiveX components and the likes).
Additionally, you might want to check what version of MDAC is installed.
I are Troll
|
|
|
|
|
Good day Eddy,
Thank you for your suggestion, I shall look into it! and will let you know the result.
Best regards.
|
|
|
|
|
What's the VB6 counterpart of the following codes?
To insert a record in database with command object parameters:
dim strSql as string
strSql = "Insert Into tblEmployees (EmpName,DeptartmentID,JoinDate) Values ('" & _
txtName.Text & "'," & Val(cboDepartment.Value) & ",@JoinDate)"
com = CreateCommand(strSql)
com.Parameters.Add(New SqlParameter("@JoinDate", SqlDbType.DateTime))
If (dtpJoinDate.Checked) Then
com.Parameters("@JoinDate").Value = Convert.ToDateTime(dtpJoinDate.Value)
Else
com.Parameters("@JoinDate").Value = DBNull.Value
End If
If com.ExecuteNonQuery = 1 Then
MsgBox("Record saved.")
End If
To obtain a record from database:
Dim drd As SqlDataReader
strSql = "Select EmpName,DeptID,JoinDate From tblEmployees Where EmpID=1001"
drd = CreateReader(strSql)
If drd.Read Then
txtName.Text = drd("EmpName")
cboDepartment.Value = drd("DepartmentID")
If IsDBNull(drd("JoinDate")) Then
dtpJoinDate.ResetText()
dtpJoinDate.Checked = False
Else
dtpJoinDate.Value = drd("JoinDate")
End If
End If
drd.Close()
|
|
|
|
|
See here.
My signature "sucks" today
|
|
|
|
|
You need to include references to SQL in VB6. But I doubt if it is supported..
|
|
|
|