15,891,657 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by alonetmr (Top 44 by date)
alonetmr
8-Jul-14 17:56pm
View
thanks again Maciej but it doesn't work :(
alonetmr
8-Jul-14 17:56pm
View
the second solution it doesn't work :(
alonetmr
8-Jul-14 15:12pm
View
Hi Maciej,
I tried your solution but it did not work.
I get an Compilation Error. argument not found.
The error is here: (Afte:=
alonetmr
8-Jul-14 10:25am
View
The problem is here:
Collapse | Copy Code
Workbooks("PGT.xlsx").Worksheets(1).Copy After:=Workbooks("Classeur1.xlsx").ActiveSheet
I get the information in other worksheet. I don't want that. I need my information in the same worksheet where i have the bottom.
By tha way, i get not the same format of the worksheet1. I mean, i want get the values and the same format (colors, size, etc).
Thanks
alonetmr
15-Nov-13 16:36pm
View
Ok, now it works. thank you )
alonetmr
15-Nov-13 16:03pm
View
I followed your suggestion. I put n=2 and I got this:
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12
12^C
Why? is always the same number. thank you
By the way, here is the programme with the modification:
#include<stdio.h>
void numeros_sumados(int n)
{
int i=0;
for (i=n+1; i < n+10;i++)
{
fprintf(stdout,"%d\n",i);
}
//fprintf(stdout,"\n");
}
int main (void)
{
int n;
fprintf(stdout,"Tapez le numero n:\n");
fscanf(stdin,"%d",&n);
numeros_sumados(n);
}
alonetmr
15-Nov-13 15:25pm
View
Hi, thanks for you answer but it doesn't work. I always get one value and the loop never end.
alonetmr
15-Nov-13 15:25pm
View
Hi, thanks for you answer but it doesn't work. I always get one value and the loop never end.
alonetmr
27-Sep-13 5:16am
View
DO you know some application?
alonetmr
24-Sep-13 4:17am
View
Deleted
HI Thomas,
Thanks for you answer. I applied your solution but i got the same result. here is the results. I think that serialize a collection is a god way, but i have the same thing. Here is the result.
-<arrayofdatamesurescapteur xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><datamesurescapteur><datamesurescapteur><datamesurescapteur>-<datamesurescapteur>-<acquisimesur>-<dataacquisition><dates>2013-09-24T09:26:24<capteurmesure>0,4-<dataacquisition><dates>2013-09-24T09:26:24<capteurmesure>0,4-<dataacquisition><dates>2013-09-24T09:26:24<capteurmesure>0,4<datamesurescapteur><datamesurescapteur>
As you can see, is always the same value. I'm sure that Dates and CapteurMesure are fill of information cause i can see all the data in another application.
So i have always the last value.
alonetmr
23-Sep-13 12:59pm
View
Deleted
Config is just an instance of the Class DataAcquisition
alonetmr
18-Sep-13 11:52am
View
Hi, here is the code
Imports System.Xml.Serialization
'<XmlRoot("AuditLogiciel")>
<serializable()>
Public Class DataAcquisition
Public Sub New()
' Rien à faire.
End Sub
#Region "Déclaration"
Public DateData As Date
Public MesureCapteur As String
#End Region
#Region "Propiétés"
'<XmlAttribute("Dates")>
Public Property Dates() As Date
Get
Return DateData
End Get
Set(ByVal value As Date)
DateData = value
End Set
End Property
' <XmlAttribute("CapteurMesure")>
Public Property CapteurMesure() As String
Get
Return MesureCapteur
End Get
Set(ByVal value As String)
MesureCapteur = value
End Set
End Property
#End Region
#Region "Métodes"
#End Region
End Class
In the main i have:
Private Sub MainWindow_Closing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Dim xSerializer As XmlSerializer = New XmlSerializer(GetType(DataAcquisition))
Dim writer As TextWriter = New StreamWriter("nomFichierConfigXml.XML")
xSerializer.Serialize(writer, Config)
writer.Close()
End Sub
alonetmr
18-Sep-13 10:10am
View
Thanks for yours answer.
I have two variable (recorddata1 and recorddata2) which each one has many data. Now, this variables are in the same Namespace (same group). I have one restraint, it is forbiden to make two loop for take information of each variable.
In another word i have to take the data stored in each variable. you have another idea to do that?
After i need to put this information in a ListView.
thanks
alonetmr
18-Sep-13 8:30am
View
yeah, i undestard that point. But, i want to know how i can take the data of Group2 in the new group?
The new group has all data information of both groups 1 and 2. So, what is the property who gives tha acces to the data in Group2.
alonetmr
18-Sep-13 5:47am
View
Ok, thanks for you answer but, when i use your méthode, how i can recover the data in Group2?
alonetmr
6-Sep-13 8:28am
View
Yes, i have not idea how many times i need to iterate my array Data1.
But how i can take 3 bytes in each iteration?
alonetmr
4-Sep-13 3:17am
View
Deleted
IN fact, i made this program. This program can take the data of some instruments.
alonetmr
3-Sep-13 10:01am
View
Deleted
Is god,
i made the same conversion. I just wanted verify
alonetmr
24-Aug-13 16:18pm
View
How i can put an image here to show you the stack trace?
alonetmr
23-Aug-13 11:02am
View
Not, in fact, i erased SpyModem and i tryed just with spycom and it doesn't work.
alonetmr
23-Aug-13 6:40am
View
Ok, i will see that and will you give more information.
Thanks
alonetmr
22-Aug-13 9:19am
View
Hi, the Customer support gived me the DLL Library.
alonetmr
20-Aug-13 8:49am
View
Deleted
how to find this address (0xd0c) in visual studio. How I can know which thread do refer the address (0xd0c) using visual studio.
Thanks
alonetmr
20-Aug-13 8:49am
View
Deleted
how to find this address (0xd0c) in visual studio. How I can know which thread do refer the address (0xd0c) using visual studio.
Thanks
alonetmr
19-Aug-13 2:27am
View
Deleted
Both answers are good!!! But is not enough. I'm not finish yet.
alonetmr
19-Aug-13 2:25am
View
Hi, not. In fact,
The windows1 is within an ViewBox which is call clicking a button in the window1. My mainWindow is other thing.
alonetmr
18-Aug-13 13:13pm
View
I forgot:
The exception is here:
For Each item As ListViewData In Lista.listView1.Items
firstColunm.Add(item.Identifiant)
Next
alonetmr
14-Aug-13 10:36am
View
Hi,
Running= Activated
alonetmr
2-Aug-13 3:20am
View
Thank you Sergey,
But i'm not an computer expert, so, for me is complicated to understand your last solution. Honestly is hard to me apply that solution to my project.
By the way, you have a simply solution?
Thank you
alonetmr
1-Aug-13 14:40pm
View
hi,
In fact, "Acquisition()" is a class.
alonetmr
1-Aug-13 3:40am
View
HI, thank you for you answer but when you said : adding or substracting 1, what means that?
I can't understand your point.
alonetmr
31-Jul-13 11:07am
View
Deleted
Well, i can show you the program:
Imports JRI.Systeme.Communication.SpyRF.Spyder
Imports JRI.Systeme.Communication.SpyRF
Class TestJRIMain
Private WithEvents SpyModem As New Spyder.SpyComm
Private SpyModemem As New Spyder.SpyModemsPlugged
Private typeSonde As String
Private numSerieSonde As String
Private adresseSonde As String
Private TypeModem As Integer
Private numModem As String
Private adresseModem As String
Private BytesNumber As Integer
Private ComportNumber As Integer
Private cualmodem As String
Private valVoie1 As Double
Private valVoie2 As Double
Private compteur As Int16
Private memoryModem As String
Private memoireLue() As Byte
Private memoireEcrite(5) As Byte
Private Sub ButtonRadio_Click(ByVal sender As System.Object, _
ByVal e As System.Windows.RoutedEventArgs) _
Handles ButtonRadio.Click
numSerieSonde = TextBoxNumSerie.Text
adresseSonde = typeSonde + numSerieSonde
SpyModem.GetSatelliteMemory(adresseSonde, "027A", 5, memoireLue)
TextBoxDureeFenetre.Text = memoireLue(0)
TextBoxPeriodeEcoute.Text = memoireLue(1)
TextBoxDureeOuvertureFenetre.Text = memoireLue(2)
ComboBoxNiveauEmission.SelectedIndex = memoireLue(3)
ComboBoxNiveauReception.SelectedIndex = memoireLue(4)
End Sub
Private Sub ButtonLireValeurs_Click(ByVal sender As System.Object, _
ByVal e As System.Windows.RoutedEventArgs) _
Handles ButtonLireValeurs.Click
numSerieSonde = TextBoxNumSerie.Text
adresseSonde = typeSonde + numSerieSonde
Try
SpyModem.GetSatelliteLastMeasurements(adresseSonde, valVoie1, valVoie2)
TextBoxValVoie1.Text = valVoie1
TextBoxValVoie2.Text = valVoie2
TextBox3.Text = adresseSonde
Catch ex As Exception
MsgBox("Erreur lecture valeurs instantanées.")
End Try
End Sub
Private Sub ButtonDecharger_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles ButtonDecharger.Click
SpyModemem.GetItem(BytesNumber, cualmodem)
TextBox1.Text = cualmodem
End Sub
alonetmr
31-Jul-13 11:01am
View
Hi,
I just remove an item and got the following error:
"Argument not specified for parameter 'DeviceId' of 'Public Sub GetItem(Index As Integer, ByRef COMPortNumber As Integer, ByRef DeviceId As String)'.
So, the problem it doesn't came for the numbers of arguments. It must be three (3).
alonetmr
31-Jul-13 10:55am
View
ok, so if is not an array,what could be?
alonetmr
31-Jul-13 10:52am
View
hi,
In fact i have an Library DLL. But how i can found the array in my Library?
Thanks for you answer
alonetmr
31-Jul-13 10:49am
View
hi, sorry, is french. the traduction is:
Index was outside the bounds of the array
alonetmr
31-Jul-13 7:44am
View
Hi,
In fact, these variables:TypeModem, numModem, BytesNumber, memoryModem are not null. The problem comes when I click on the button: ButtonDecharger.
What do you think about this expression?
SpyModem.GetModemMemory(TypeModem, numModem, BytesNumber, memoryModem)
Is just a simple methode. I can't found the problem.
Thanks
alonetmr
29-Jul-13 11:46am
View
Is made a mistake in the comment, is not _with types, is [DataContract]
alonetmr
29-Jul-13 11:34am
View
Thank you again for you answer.
It seems that your method is best to solve my problem. After seeing your suggestion, I found a lot of information online about it. However, when I try to apply this method, I get a problem. When i write : <datacnntract ()=""> _ with types, i get this problem:
Error 1 Type 'DataContract' is not defined.
Why i have this problem?
The same problem for <datamember()>
Thank you
alonetmr
29-Jul-13 10:46am
View
HI Sergey,
Thanks for you answer, but i can't understand your point.
If possible to you to give an exemple with my program?
In another words, you can use the Data Contract with the program that I just put up?
thanks you
alonetmr
29-Jul-13 7:46am
View
Hi,
Yes, I wrote a Sub new in DataAudit Class.
alonetmr
24-Jul-13 15:18pm
View
This solution doesn't work.
Thanks
alonetmr
16-Jul-13 16:22pm
View
When i do the convertion to VB.NET, i have an error with var. I take this example of:
http://www.codeproject.com/Articles/128878/Sample-Code-to-Add-Edit-and-Delete-Rows-in-a-NET-W
alonetmr
16-Jul-13 16:19pm
View
Hi,
Yes, i have a problem with "var", apparently it doesn't exist. Why?
Show More