|
Sounds like you need to post in the forum provided by the article author, and see if he can help.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hey everyone,
My application refused to use Copy/Paste feature. I did not write any special code for copying text to the clipboard, since the control is WebBrowser (.Net 2.0). On other machines, Ctrl-C just copies the text to clipboard without any need for additional code, like manual clipboard handling. On my machine, the clipboard did not change its contents. I renamed my Documents and Settings folder and relogged in, thus recreating my account and, more specifically, UserData folder. I can now copy text into the clipboard just fine. However, there are other people having the same problem, so I need to identify the source of the issue, since deleting UserData is not an option. Any suggestions? Is it system permissions for .net?
|
|
|
|
|
Check the settings for the internet cache, the maximum disk space is usually set way too high. When the cache gets too large, it f... messes up some things in the browser. Clear the cache and set it to a reasonable value, like 50 MB.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello, all. I've published some simple stuff, and tried to send it/put on a CD, but every time the other person tries to use my program, it says 'missing files'. What's the problem here? Am I publishing like an idiot? I found nothing on google and more, and though I'd just ask the pros. THanks in advance.
The most knowledge doesn't mean the most wise...
|
|
|
|
|
You've given them your config files, and they have .NET ( the right version ) installed ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I don't think I expained well;after I publish, I copy the files to a disk (is it disk or disc... anyway), and then I go to another computer, put the dis(c) in, and run it. When you try to run the file, it says something along the lines of "Missing files or components"... Something. I don't know what I'm doing wrong.
The most knowledge doesn't mean the most wise...
|
|
|
|
|
You should create a Setup Project for your application. This allows you to build an installer that includes the .NET Framework Redistributable. Running the install app on a client machine will install the .NET Framework on the machine as well as your application if it is not already present. Have a look at this article[^] for more information.
Paul Marfleet
|
|
|
|
|
Yes, I got that. So, you missed some files, or you're missing a dependancy, such as .NET. Have you installed the .NET runtime on the target PC ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Shouldn't programs for Windows be able to run on any PC they're tried?
The most knowledge doesn't mean the most wise...
|
|
|
|
|
You're assuming a lot there. The answer is no. Anyn application written in C++ needs the MSVC runtime libraries to execute, whether they be staticly linked into the .EXE or seperately in the Windows\System32 folder. The same is true for MFC apps, VB6, C#, VB.NET, ..., or ANY application. Some of the runtimes are already installed with Windows, some are not.
The .NET Framework didn't start comming preinstalled with Windows until Windows Server 2003 came out. I think it was included in Service Pack 2 for XP, but I could be wrong.
|
|
|
|
|
So, where would I install this?
The most knowledge doesn't mean the most wise...
|
|
|
|
|
There is no "where". You run the installation for the .NET Framework version you're app is using (.NET 2.0 for C# 2005) and it installs itself. You don't get to specify "where" it installs.
|
|
|
|
|
Hi, all...
I'm writing the Multy Dimentional Matrices by analogy with Matrices, which describe in book of Bjarne Stroustrup ("The C++ Programming Language: Standart 3")
I have class "ValueArray", which implements "valarray" (C++ analog), and "Slice", SliceArray, etc.
I already wrote two dimentional Matrix, but Multy Dimentional Matrix it's problem...
If you read Stroustrup, you saw that there were no implementation of this.
How realize this using "ValueArray" and "Slice" on C# or C++???
|
|
|
|
|
cNoNim wrote: How realize this using "ValueArray" and "Slice" on C# or C++???
Do you have a budget?
My office is using this fantastic library:
http://centerspace.net/products.php?page=1[^]
It's so good that we can do real-time signal processing using .NET.
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual."
- Frank Herbert
|
|
|
|
|
I am writing an application for CE 5.0 and I need to save (and recover) an array of structures to file. Serialization seemed to provide the solution, but it is not supported in the .NET Compact Framework. Can anyone suggest an easy way of doing this?
|
|
|
|
|
I guess you need to define your own file format. I'd use XML, then it's easy to turn the data into a collection of objects that each represent one object to deserialise. I'd write methods in the object to write and read the XML, so you can compartmentalise it easily, your main write code just iterates over the objects and lets them write themselves, your read code, creates a collection of objects by calling the FromXML static method for each node set that represents an object.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
XMLSerialization is supported by .NET Compact Framework if it fits your needs
|
|
|
|
|
I'm going to have to concur with Giorgi - XMLSerialization should do the trick. I'm using it on a .NETCF app and it's great. I just adorned my objects and their properties with the appropriate Xml attributes and the XMLSerializer does the rest.
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual."
- Frank Herbert
|
|
|
|
|
Patrick Sears wrote: I just adorned my objects and their properties with the appropriate Xml attributes
Thanks, XMLSerialization is just what I need, but I don't understand the bit about attributes. Could you please provide more information, or tell me where I might find it?
|
|
|
|
|
Sure!
The XmlSerializer by default will serialize an object's public properties and fields using the names in your object.
Say you have an object called Person, and it has a Name and a Gender.
public class Person
{
private string mName;
private string mGender;
public string Name
{
get;set;
}
public string Gender
{
get;set;
}
}
By default the XmlSerializer will create something that looks like this:
< Person>
<Name>Whatever</Name>
<Gender>Whatever</Gender>
</Person>
But you can adorn the object to change the way the object is serialized. For example, if you want it to be serialized as a "Human" and the Name and Gender properties to be XML attributes instead of XML elements:
[XmlType("Human")]
public class Person
{
private string mName;
private string mGender;
[XmlAttribute("Name")]
public string Name
{
get;set;
}
[XmlAttribute("Gender")]
public string Gender
{
get;set;
}
}
This will create XML that looks like this:
<Human Name="Whatever" Gender="Whatever" />
You can read more about the XmlSerializer and how to use it here:
http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlserializer(vs.80).aspx[^]
and here:
http://msdn2.microsoft.com/en-us/library/ms950721.aspx[^]
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual."
- Frank Herbert
|
|
|
|
|
All is now clear. Many thanks for your help
|
|
|
|
|
Glad I could help
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual."
- Frank Herbert
|
|
|
|
|
|
Backgroundworker is an easy way to open a different thread in an higher level implementation to make an isolated operation. Theading requires sometimes more control about states, semaphors...
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Ultimately there is no difference as both will allocate a thread from the thread pool. The BackgroundWorker component is a "visual" component (something that can be dropped on to a form at design time) that was created to help simplify creating a multi-threaded application.
Using the background worker is not ideal for all situations and using it doesn't mean you shouldn't have an understanding of how threading behaves.
|
|
|
|