Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k325-Mar-04 15:06
schnee2k325-Mar-04 15:06 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart26-Mar-04 3:06
protectorHeath Stewart26-Mar-04 3:06 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart26-Mar-04 3:18
protectorHeath Stewart26-Mar-04 3:18 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k326-Mar-04 4:27
schnee2k326-Mar-04 4:27 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Heath Stewart26-Mar-04 4:31
protectorHeath Stewart26-Mar-04 4:31 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
schnee2k326-Mar-04 4:35
schnee2k326-Mar-04 4:35 
GeneralRe: Passing BStr by refrence to unmanaged dll Pin
Dave Kreskowiak26-Mar-04 7:44
mveDave Kreskowiak26-Mar-04 7:44 
Questiontranslation vb to c# ? Pin
el69os25-Mar-04 8:59
el69os25-Mar-04 8:59 
i have a question ...
could you translate this vb code to c# ? i tried it, but i failed ...

Private Sub Command1_Click()



Dim x As Integer

Dim var1 As Integer

Dim var2 As Integer



List1.Clear

x = Val(Text1.Text)

varX = Int(x / 3) + 1

var1 = 1

var2 = 1

var3 = 1

Do While Not var1 = x

tel = tel + 1

getal1 = var1

var2 = var2 + 1

getal2 = var2

getal3 = Val(x) - Val(getal1) - Val(getal2)

If getal1 <> getal2 And getal1 <> getal3 And getal2 <> getal3 And getal2 < getal3 Then

List1.AddItem getal1 & " + " & getal2 & " + " & getal3

Else

var1 = var1 + 1

var2 = var1

If tel = var3 + 1 Then Exit Do

var3 = tel

End If

Loop

End Sub

I'm making a program that when you enter a number, returns all the possibility's of how to make that number
example: ENTER : 14 Returned items = 1+2+11 = 14
1+3+10 = 14
1+4+9 = 14
1+5+8 = 14
1+6+7 = 14
2+3+9 = 14
2+4+8 = 14 ....
and you can't use the same number twice
... or the same combinations ex. 14 = 1 + 2 + 11 but not 2 + 1 + 11
i really hope somebody can help me !!!!
AnswerRe: translation vb to c# ? Pin
Daniel Turini25-Mar-04 9:09
Daniel Turini25-Mar-04 9:09 
AnswerRe: translation vb to c# ? Pin
Michael Flanakin25-Mar-04 11:14
Michael Flanakin25-Mar-04 11:14 
GeneralRe: translation vb to c# ? Pin
el69os26-Mar-04 1:55
el69os26-Mar-04 1:55 
GeneralRe: translation vb to c# ? Pin
Michael Flanakin26-Mar-04 2:06
Michael Flanakin26-Mar-04 2:06 
AnswerRe: translation vb to c# ? Pin
Jeremy Kimball25-Mar-04 14:04
Jeremy Kimball25-Mar-04 14:04 
GeneralRe: translation vb to c# ? Pin
Michael Flanakin25-Mar-04 18:15
Michael Flanakin25-Mar-04 18:15 
GeneralRe: translation vb to c# ? Pin
Daniel Turini26-Mar-04 0:56
Daniel Turini26-Mar-04 0:56 
GeneralRe: translation vb to c# ? Pin
el69os26-Mar-04 2:01
el69os26-Mar-04 2:01 
AnswerRe: translation vb to c# ? Pin
el69os26-Mar-04 1:57
el69os26-Mar-04 1:57 
Generalnewer version Pin
el69os26-Mar-04 2:05
el69os26-Mar-04 2:05 
GeneralAbout DirectX9 and C# Pin
cemlouis25-Mar-04 8:59
cemlouis25-Mar-04 8:59 
GeneralRe: About DirectX9 and C# Pin
Heath Stewart25-Mar-04 9:19
protectorHeath Stewart25-Mar-04 9:19 
GeneralRe: About DirectX9 and C# Pin
Jeremy Kimball25-Mar-04 9:40
Jeremy Kimball25-Mar-04 9:40 
GeneralDataset not update Pin
terry_cyf25-Mar-04 8:23
terry_cyf25-Mar-04 8:23 
GeneralHTTPModule to filter .asp pages Pin
AWebDude25-Mar-04 8:23
AWebDude25-Mar-04 8:23 
GeneralRe: HTTPModule to filter .asp pages Pin
Heath Stewart25-Mar-04 9:16
protectorHeath Stewart25-Mar-04 9:16 
GeneralRe: HTTPModule to filter .asp pages Pin
AWebDude25-Mar-04 9:42
AWebDude25-Mar-04 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.