Bonjour.

J,aimerais savoir a quoi sert le fichier executable C2.exe dans VB ? Car a chaque fois que j'essaie de compiler du code C2.exe plante et le % du CPU pour cette commande monte a 99 %....

Quelqu'un aurait une idée du probleme ?

Voici du code que j'ai fait....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Private Sub Form_Load()
    Dim info1, info2, info3, info4 As String
    params = Split(Command, " ")
 
    If (UBound(params) = -1) Then
 
        MsgBox "Aucun paramètre pour l'impression des PDF.", vbCritical, "Erreur de parametres dans ImpressPDF.EXE"
 
    Else
        j = 1
        For i = 0 To UBound(params)
            If i = 0 Then
                info1 = params(i)
            ElseIf i = 1 Then
                info2 = params(i)
            ElseIf i = 2 Then
                info3 = params(i)
            ElseIf i = 3 Then
                info4 = params(i)
            End If
        Next
 
    End If
 
    If info4 = "Choix1" Then
        Call mdlImpression.creerPDF_Choix1(info1, info2, info3)
    ElseIf info4 = "Choix2" Then
        Call mdlImpression.creerPDF(info1, info2, info3)
    End If
End Sub
Voici la definition de la fonction creerPDF_Choix1 en VB...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
Public Sub creerPDF_Choix1(ByVal noProposition As String, ByVal formulaireID, ByVal marchand As String)
.....
.....
.....
.....
J'essaie de voir ce qui se passe, ou serait le probleme, mais je ne vois pas....

Merci de m'eclairer

AngelEvil!