|
Hi Luc,
Then, I'll have to check again the project properties: that's where the framework option was grayed and inactive.
For the language, English is the original and, by experience, the best supported. But, in any case, English is not an issue - the framework takes care of the error message translation anyway.
Thanks for the info
Cheers
Olivier
|
|
|
|
|
Last time I looked, you could still download Visual C# 2005 Express, which targets .NET 2.0.
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.”
|
|
|
|
|
hey guys my project is about how to limit the download and the upload from the internet, and it will be run on a server connected on many pcs, so the server will organize the limit of each pc, and manage the download and upload, and if one exceed it limit it sends a warrning message.
But i face a problem during implementation in c++, first i used the buffer to control the limit, but i don t know how i can know if any pc use the internet browser to download or upload and how i can get the data from the internet browser and transfer it to bytes and store it in the buffer:this is my code:
setlimit(int limit, int nbofpc)
{
Float limitbypc;
Limitbypc = limit/nbofpc;
For(int i=0; i<nbofpc;i++)>
Char buffer limitbypc;
Return 0;
}
if(download)
{
void downloadlimit( )
{ AnsiString IP;
For(int i=0; i<nbofpc;>Switch (IP)
{Case ‘10.15.1.157’: bufferlimitbypc = fputs(data);
If(sizeof(data)) == sizeof(buffer)
WriteString ("you can’t download more"); break;
Case ’10.15.1.158’: bufferlimitbypc = fputs(data); break;
If(sizeof(data)) == sizeof(buffer)
WriteString ("you can’t download more"); break;
……………
Case’10.15.1.164’: ……….; break;
}
}
Return 0;}}
if(upload)
{
void uploadlimit( )
{ AnsiString IP;
For(int i=0; i<nbofpc;>Switch (IP)
{Case ‘10.15.1.157’: bufferlimitbypc = fputs(data);
If(sizeof(data)) == sizeof(buffer)
WriteString ("you can’t upload more"); break;
Case ’10.15.1.158’: bufferlimitbypc = fputs(data); break;
If(sizeof(data)) == sizeof(buffer)
WriteString ("you can’t upload more"); break;
……………
Case’10.15.1.164’: ……….; break;
}
}
Return 0;}}
thanks
joseph
|
|
|
|
|
|
Reported as spam. If you want to advertise, buy advertising space like every other respectable business.
|
|
|
|
|
I don't usually reply to advertisements, but this seems one of multiple. I would not advise anybody to ever visit PersiaDevelopers.com. If they cannot advertise respectably, then I don't believe that people should advertise with them. Google indexes the forums, so by the end of the week, it's rather likely that this negative posting will be showing up in people's results. Now, if you want me to delete this post, then STOP SPAMMING THE FORUMS!
|
|
|
|
|
Hi,
I have developed a Smart device application with sql ce database. I have also used opennetcf dll for threadings.
When i compile i get a warning:
"Namespace or type specified in the project-level Imports 'System.Data' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases."
I do not get any file name or project name for this warning.
Please help me understand what this means.
Thanks,
Karthik
|
|
|
|
|
Notice that you will receive the error because you have not referenced the System.Drawing.dll assembly. If you reference this assembly the error message will disappear.
Source[^]
I are troll
|
|
|
|
|
i am sure you meant system.data.... it worked.... i missed referencing it in one of the projects in my solution.
Thanks,
Karthik
|
|
|
|
|
I did but then I copy/pasted the text from the site, didn't notice the drawing instead of the data .
Bad copy/paste! Bad!!
I are troll
|
|
|
|
|
Hi friends...
Please help....
I have created a setup in VB.NET and installing in different machines. Now the problem is that the same setup is working on some machine fine, while same setup is not working. When i am trying to run the application its giving a message that "unable to find a version of the run time to run this application".
And also i want to tell you that all those machine having same configuration and same operating system, same anti virus.
Now please help me... i got frustrated with this kind of error.
krishna veer singh
|
|
|
|
|
my project is about DSL download organiser to limit the download and upload of a pc connected throught a server to the internet, i use the c++ code, and buffers to save data as bytes in it and test if the size < limit or = but i dont know how i can know if a pc download or upload, and how i can copy the data (downloaded) from the internet explorer to the buffer, to test if the size is ok or not.
so what is the function to know if the pc use the internet to download or upload.
what is the function to add the data downloaded to the buffer as bytes.
10x
the code:
if(download) ??????????
{
void downloadlimit( )
{ AnsiString IP;
For(int i=0; i<nbofpc;i++);>
Switch (IP)
{Case ‘10.15.1.157’: buffer[limitbypc] = fputs(data); ?????? how i can copy the data as bytes to the buffer
(If(sizeof(data)) == sizeof(buffer)
WriteString (“you can’t download more”); break;
Case ’10.15.1.158’: buffer[limitbypc] = fputs(data); break;?????????
If(sizeof(data)) == sizeof(buffer)
WriteString (“you can’t download more”); break;
……………
Case’10.15.1.164’: ……….; break;
}
}
Return 0;}}
if(upload) ??????????
{
void uploadlimit( )
{ AnsiString IP;
For(int i=0; i< nbofpc; i++)
Switch (IP)
{Case ‘10.15.1.157’: buffer[limitbypc] = fputs(data); If(sizeof(data)) == sizeof(buffer)
WriteString (“you can’t upload more”); break;
Case ’10.15.1.158’: buffer[limitbypc] = fputs(data); break;?????????
If(sizeof(data)) == sizeof(buffer)
WriteString (“you can’t upload more”); break;
……………
Case’10.15.1.164’: ……….; break;
}
}
Return 0;}}
plz helps me
10x joseph
|
|
|
|
|
Hi,
if you were to:
1. provide a decent subject line, with a real topic, and no "plz" and no "urgent"
2. and put code in a "code block" (which offers proper formatting in a monospaced font with indents), see buttons at the bottom,
then you might get some help.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hello,
I searched a lot through google for the issues on programmatically submitting forms and screen-scrapping in .NET but unfortunately couldn't find any solution for my specific purpose. It is:
I want to fill in a form programmatically via a desktop program, this is ok, but when these input fields have not a specific ID nor a specific name neither the known solutions does not work. The same applies on the button control, it is not a problem to click on a submit button programmatically if it has a specific ID or name but known solutions does not work if it has not.
A further problem arises when an input field or a button is designed in Flash.
As far as I know there are two possible solutions on which I have no experience. First the mouse cursor can be attached to a ghost window in which the page is loaded and the program may make the mouse cursor perform move and click actions via the PostMessage API. Secondly, using a network sniffer I may catch POST strings to create a POST template string and send these strings programmatically.
These methods may be silly or may work, I really do not know.
Any idea or advice would be helpfull.
Best regards and thanks for your help.
.:: Something is Wrong ::.
|
|
|
|
|
Hi,
I have a small app that I would like to try and sell.
So I need a way to manage software licenses, so that only paid up users can use certain features.
The app is just a standard Windows C# Desktop app.
Does the .NET framework have a License manager ?
OR is worth rolling my own ? - can't be that difficult ?
thanks !
______
theory2006
|
|
|
|
|
theory2006 wrote: Does the .NET framework have a License manager ?
No.
theory2006 wrote: OR is worth rolling my own ? - can't be that difficult ?
You have 3 options:
1) Write your own. No, it's probably not that hard to do it to a simple level. Because .net is compiled to IL, any semi competent developer would probably be able to break your protection, but unless your writing a developer tool, most average users wouldn't be able to, and unless you really hit the big time, you probably won't attract the attention of crackers who break it for other people. (and if you do you can deal with improving it in the next version)
2) Buy protection. There are stacks of companies that offer license managers of varying strengths and varying features. Just google for them. Try out a few. Speak with their sales department, and evaluate them.
3) Consider using conditional compilation. You would compile multiple editions of your app that expose different features. it's not possible for the user to crack your app as features you don't want them to use are physically not compiled into the exe. It does mean that to upgrade they would have to download a new version, but unless your app is massive that isn't a real problem. (I wrote an article on it here[^])
Personally, if your just starting out. I'd do either option 1 or option 3. Probably leaning towards option 3 unless you needed to manage lots of different combinations of paid for features at different levels, and want to support dynamic upgrade by just buying a new serial number.
Simon
|
|
|
|
|
Hi,
I am using opennetcf in my Windows CE application.
I declared two threads as below
Private _thrdLineItems As Thread2
Private _thrdUploader As Thread2
and when i write
_thrdLineItems.Sleep(10000)
i get a warning saying that
"Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated."
The compiler is asking me to change _thrdLineItems to Thread2.
Please help me figure out why this is happening and how to resolve it.
Thanks in advance,
Karthik
|
|
|
|
|
Did you instantiate _thrdLineItems before calling Sleep ? In other words, is there a new -statement that creates the thread?
I are troll
|
|
|
|
|
Hi Troll,
Ya i have intiated and started the thread.
karthik
|
|
|
|
|
Thread2.Sleep(10000) Can you give this a try? Source[^]
I are troll
|
|
|
|
|
Thanks much for replying....
Ya would work but i have two threads running.
By writing Thread2.Sleep(10000) i guess the current thread would sleep.
Does it make sense....
Thanks,
Karthik
|
|
|
|
|
The suggestion came from the example on the Microsoft site;
Dim newThread As Thread = New Thread(AddressOf ThreadMethod)
newThread.SetApartmentState(ApartmentState.MTA)
' The following line is ignored since
' ApartmentState can only be set once.
newThread.SetApartmentState(ApartmentState.STA)
Console.WriteLine("ThreadState: {0}, ApartmentState: {1}", _
newThread.ThreadState, newThread.GetApartmentState())
newThread.Start()
' Wait for newThread to start and go to sleep.
Thread.Sleep(300)
Try
' This causes an exception since newThread is sleeping.
newThread.SetApartmentState(ApartmentState.STA)
Catch stateException As ThreadStateException
Console.WriteLine(vbCrLf & "{0} caught:" & vbCrLf & _
"Thread is not In the Unstarted or Running state.", _
stateException.GetType().Name)
Console.WriteLine("ThreadState: {0}, ApartmentState: " & _
"{1}", newThread.ThreadState, newThread.GetApartmentState())
End Try
(Source[^])
It doesn't feel quite logical, as Sleep is a static member. Thread isn't the same thing as Thread2, but I can't see any other differences
I are troll
|
|
|
|
|
thanks for your replies i quite get what that i am trying to do isn't logical as thread2.sleep is static and will always affect the current thread.
Thanks,
Karthik
|
|
|
|
|
Good luck
I are troll
|
|
|
|
|
Hi,
The Thread2.Sleep method is static, puts the current thread to sleep, and cannot be used in the way you were attempting. If you want to put the _thrdLineItems thread to sleep then simply call Thread2.Sleep from inside that thread’s method.
Alan.
|
|
|
|