Posted: Wed Nov 19, 2008 3:01 pm
We're talking about the PB code not the VB code.
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
SujetMail = "Envoi d'un mail" <---- A quote is present in this line
MailNote\SetProperty("Subject = '" + SujetMail + "'")
Code: Select all
SujetMail = "Envoi d$0027un mail" <---- A quote is present in this line
MailNote\SetProperty("Subject = '" + SujetMail + "'")
Oooohh like meeven if I don't understand half of what you say!!!
Yeeeees !! the only THREAD with one thousand question and no answerKwai, I think we should start a separate thread titled "Kwai chang caine's coding questions!" where you can post away! Better still, perhaps one of the mods will open up a new forum section just for you?
Code: Select all
IncludePath "..\..\"
XIncludeFile "COMate.pbi"
Procedure Get_Processors()
Protected objWMIService.COMateObject, processor.COMateObject
Protected colProcessor.COMateEnumObject
strComputer.s = "."
objWMIService = COMate_GetObject("winmgmts:\\" + strComputer + "\root\cimv2", "")
If objWMIService
colProcessor = objWMIService\CreateEnumeration("ExecQuery('Select * FROM Win32_Processor')")
If colProcessor
processor = colProcessor\GetNextObject()
While processor
Debug processor\GetStringProperty("DeviceID")
processor\Release()
processor = colProcessor\GetNextObject()
Wend
colProcessor\Release()
EndIf
objWMIService\Release()
EndIf
EndProcedure
Get_Processors()
srod wrote:Can you post your code?
Code: Select all
XIncludeFile "COMate.pbi"
Procedure.s WMI_CPU_Info()
Define.COMateObject objWMIService, CPU
cenuCPU.COMateEnumObject
strComputer.s = "."
Net_I_Index$ = Str(Interface_Index)
objWMIService = COMate_GetObject("winmgmts:\" + strComputer + "\root\cimv2", "")
If objWMIService
cenuCPU = objWMIService\CreateEnumeration("ExecQuery('Select * from Win32_Processor')")
If cenuCPU
CPU= cenuCPU\GetNextObject()
While CPU
Debug "Caption = " + CPU\GetStringProperty("Caption")
Debug "Name = " + CPU\GetStringProperty("Name")
Debug "DeviceID = " + CPU\GetStringProperty("DeviceID")
Debug "MaxClockSpeed = " + Str(CPU\GetIntegerProperty("MaxClockSpeed"))
CPU\Release()
CPU = cenuCPU\GetNextObject()
Wend
cenuCPU\Release()
EndIf
objWMIService\Release()
EndIf
EndProcedure
WMI_CPU_Info()